From 99bcd917957215bf6598438a9a9f27a3dba09f82 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 19 Oct 2023 17:56:25 +0000 Subject: [PATCH 1/2] fix!: delete `BatchDeleteUserLinks`, `DeleteUserLink`, `BatchUpdateUserLinks`, `UpdateUserLink`, `BatchCreateUserLinks`, `CreateUserLink`, `AuditUserLinks`, `ListUserLinks`, `BatchGetUserLinks`, `GetUserLink` from the Admin API v1 alpha as per the announcement in https://bit.ly/46yBIDt feat: add `UpdateDataRedactionSettings`, `CreateRollupProperty`, `GetRollupPropertySourceLink`, `ListRollupPropertySourceLinks`, `CreateRollupPropertySourceLink`, `DeleteRollupPropertySourceLink`, `CreateSubproperty`, `CreateSubpropertyEventFilter`, `CreateSubpropertyEventFilter`, `ListSubpropertyEventFilters`, `UpdateSubpropertyEventFilter`, `DeleteSubpropertyEventFilter` methods to the Admin API v1 alpha feat: add `include_all_users`, `expand_groups` fields to `RunAccessReportRequest` feat: add `DataRedactionSettings`, `RollupPropertySourceLink`, `SubpropertyEventFilterCondition`, `SubpropertyEventFilterExpression`, `SubpropertyEventFilterExpressionList`, `SubpropertyEventFilterClause`, `SubpropertyEventFilter` types feat: add the `DATA_REDACTION_SETTINGS` option to the `ChangeHistoryResourceType` enum feat: add the `data_redaction_settings` field to the `ChangeHistoryResource.resource` oneof field PiperOrigin-RevId: 574877732 Source-Link: https://github.com/googleapis/googleapis/commit/a3006dd1ff2e3c7f4ff7e7538af8adf2ea9e815b Source-Link: https://github.com/googleapis/googleapis-gen/commit/4eb740a4cf21c13d13737b3488fa4c752e13b79d Copy-Tag: eyJwIjoiQW5hbHl0aWNzQWRtaW4vLk93bEJvdC55YW1sIiwiaCI6IjRlYjc0MGE0Y2YyMWMxM2QxMzczN2IzNDg4ZmE0Yzc1MmUxM2I3OWQifQ== --- .../Analytics/Admin/V1Alpha/AccessReport.php | Bin 0 -> 3944 bytes .../Admin/V1Alpha/AnalyticsAdmin.php | 737 ++ .../Analytics/Admin/V1Alpha/Audience.php | Bin 0 -> 5535 bytes .../Analytics/Admin/V1Alpha/ChannelGroup.php | Bin 0 -> 2398 bytes .../Admin/V1Alpha/EventCreateAndEdit.php | Bin 0 -> 1966 bytes .../Admin/V1Alpha/ExpandedDataSet.php | Bin 0 -> 2451 bytes .../Analytics/Admin/V1Alpha/Resources.php | Bin 0 -> 19590 bytes .../Admin/V1Alpha/SubpropertyEventFilter.php | Bin 0 -> 2654 bytes .../Admin/V1alpha/AccessBetweenFilter.php | 121 + .../Analytics/Admin/V1alpha/AccessBinding.php | 198 + .../Admin/V1alpha/AccessDateRange.php | 125 + .../Admin/V1alpha/AccessDimension.php | 81 + .../Admin/V1alpha/AccessDimensionHeader.php | 70 + .../Admin/V1alpha/AccessDimensionValue.php | 71 + .../Analytics/Admin/V1alpha/AccessFilter.php | 208 + .../Admin/V1alpha/AccessFilterExpression.php | 178 + .../V1alpha/AccessFilterExpressionList.php | 67 + .../Admin/V1alpha/AccessInListFilter.php | 101 + .../Analytics/Admin/V1alpha/AccessMetric.php | 80 + .../Admin/V1alpha/AccessMetricHeader.php | 70 + .../Admin/V1alpha/AccessMetricValue.php | 67 + .../Admin/V1alpha/AccessNumericFilter.php | 111 + .../V1alpha/AccessNumericFilter/Operation.php | 85 + .../Analytics/Admin/V1alpha/AccessOrderBy.php | 148 + .../AccessOrderBy/DimensionOrderBy.php | 104 + .../DimensionOrderBy/OrderType.php | 76 + .../V1alpha/AccessOrderBy/MetricOrderBy.php | 70 + .../Analytics/Admin/V1alpha/AccessQuota.php | 283 + .../Admin/V1alpha/AccessQuotaStatus.php | 101 + .../Analytics/Admin/V1alpha/AccessRow.php | 109 + .../Admin/V1alpha/AccessStringFilter.php | 135 + .../V1alpha/AccessStringFilter/MatchType.php | 92 + .../Analytics/Admin/V1alpha/Account.php | 269 + .../Admin/V1alpha/AccountSummary.php | 186 + .../AcknowledgeUserDataCollectionRequest.php | 125 + .../AcknowledgeUserDataCollectionResponse.php | 33 + .../Analytics/Admin/V1alpha/ActionType.php | 68 + .../Analytics/Admin/V1alpha/ActorType.php | 69 + .../Analytics/Admin/V1alpha/AdSenseLink.php | 113 + ...yVideo360AdvertiserLinkProposalRequest.php | 71 + ...Video360AdvertiserLinkProposalResponse.php | 81 + .../Admin/V1alpha/ArchiveAudienceRequest.php | 67 + .../V1alpha/ArchiveCustomDimensionRequest.php | 71 + .../V1alpha/ArchiveCustomMetricRequest.php | 71 + .../Admin/V1alpha/AttributionSettings.php | 240 + ...quisitionConversionEventLookbackWindow.php | 66 + .../AdsWebConversionDataExportScope.php | 77 + .../OtherConversionEventLookbackWindow.php | 73 + .../ReportingAttributionModel.php | 141 + .../Analytics/Admin/V1alpha/Audience.php | 343 + .../AudienceExclusionDurationMode.php | 66 + .../AudienceDimensionOrMetricFilter.php | 350 + .../BetweenFilter.php | 125 + .../InListFilter.php | 112 + .../NumericFilter.php | 114 + .../NumericFilter/Operation.php | 71 + .../NumericValue.php | 111 + .../StringFilter.php | 142 + .../StringFilter/MatchType.php | 85 + .../Admin/V1alpha/AudienceEventFilter.php | 137 + .../Admin/V1alpha/AudienceEventTrigger.php | 101 + .../AudienceEventTrigger/LogCondition.php | 65 + .../Admin/V1alpha/AudienceFilterClause.php | 148 + .../AudienceClauseType.php | 68 + .../V1alpha/AudienceFilterExpression.php | 228 + .../V1alpha/AudienceFilterExpressionList.php | 67 + .../Admin/V1alpha/AudienceFilterScope.php | 71 + .../Admin/V1alpha/AudienceSequenceFilter.php | 150 + .../AudienceSequenceStep.php | 225 + .../Admin/V1alpha/AudienceSimpleFilter.php | 116 + .../BatchCreateAccessBindingsRequest.php | 121 + .../BatchCreateAccessBindingsResponse.php | 67 + .../BatchDeleteAccessBindingsRequest.php | 121 + .../V1alpha/BatchGetAccessBindingsRequest.php | 133 + .../BatchGetAccessBindingsResponse.php | 67 + .../BatchUpdateAccessBindingsRequest.php | 125 + .../BatchUpdateAccessBindingsResponse.php | 67 + .../Analytics/Admin/V1alpha/BigQueryLink.php | 393 + ...yVideo360AdvertiserLinkProposalRequest.php | 71 + .../Admin/V1alpha/ChangeHistoryChange.php | 197 + .../ChangeHistoryResource.php | 847 ++ .../Admin/V1alpha/ChangeHistoryEvent.php | 266 + .../V1alpha/ChangeHistoryResourceType.php | 208 + .../Analytics/Admin/V1alpha/ChannelGroup.php | 215 + .../Admin/V1alpha/ChannelGroupFilter.php | 145 + .../ChannelGroupFilter/InListFilter.php | 75 + .../ChannelGroupFilter/StringFilter.php | 104 + .../StringFilter/MatchType.php | 92 + .../V1alpha/ChannelGroupFilterExpression.php | 192 + .../ChannelGroupFilterExpressionList.php | 67 + .../Analytics/Admin/V1alpha/CoarseValue.php | 71 + .../Admin/V1alpha/ConnectedSiteTag.php | 109 + .../Admin/V1alpha/ConversionEvent.php | 287 + .../ConversionCountingMethod.php | 66 + .../Admin/V1alpha/ConversionValues.php | 254 + .../V1alpha/CreateAccessBindingRequest.php | 119 + .../V1alpha/CreateAdSenseLinkRequest.php | 119 + .../Admin/V1alpha/CreateAudienceRequest.php | 111 + .../V1alpha/CreateChannelGroupRequest.php | 115 + .../V1alpha/CreateConnectedSiteTagRequest.php | 123 + .../CreateConnectedSiteTagResponse.php | 33 + .../V1alpha/CreateConversionEventRequest.php | 115 + .../V1alpha/CreateCustomDimensionRequest.php | 111 + .../V1alpha/CreateCustomMetricRequest.php | 111 + .../Admin/V1alpha/CreateDataStreamRequest.php | 111 + ...yVideo360AdvertiserLinkProposalRequest.php | 111 + ...teDisplayVideo360AdvertiserLinkRequest.php | 111 + .../V1alpha/CreateEventCreateRuleRequest.php | 111 + .../V1alpha/CreateExpandedDataSetRequest.php | 111 + .../V1alpha/CreateFirebaseLinkRequest.php | 115 + .../V1alpha/CreateGoogleAdsLinkRequest.php | 111 + ...CreateMeasurementProtocolSecretRequest.php | 115 + .../Admin/V1alpha/CreatePropertyRequest.php | 81 + .../V1alpha/CreateRollupPropertyRequest.php | 115 + .../V1alpha/CreateRollupPropertyResponse.php | 111 + .../CreateRollupPropertySourceLinkRequest.php | 115 + ...KAdNetworkConversionValueSchemaRequest.php | 115 + .../V1alpha/CreateSearchAds360LinkRequest.php | 111 + .../CreateSubpropertyEventFilterRequest.php | 115 + .../V1alpha/CreateSubpropertyRequest.php | 163 + .../V1alpha/CreateSubpropertyResponse.php | 121 + .../Admin/V1alpha/CustomDimension.php | 301 + .../CustomDimension/DimensionScope.php | 71 + .../Analytics/Admin/V1alpha/CustomMetric.php | 319 + .../V1alpha/CustomMetric/MeasurementUnit.php | 122 + .../V1alpha/CustomMetric/MetricScope.php | 57 + .../CustomMetric/RestrictedMetricType.php | 65 + .../Admin/V1alpha/DataRedactionSettings.php | 210 + .../Admin/V1alpha/DataRetentionSettings.php | 143 + .../RetentionDuration.php | 88 + .../Admin/V1alpha/DataSharingSettings.php | 262 + .../Analytics/Admin/V1alpha/DataStream.php | 356 + .../DataStream/AndroidAppStreamData.php | 112 + .../V1alpha/DataStream/DataStreamType.php | 71 + .../V1alpha/DataStream/IosAppStreamData.php | 112 + .../V1alpha/DataStream/WebStreamData.php | 150 + .../V1alpha/DeleteAccessBindingRequest.php | 75 + .../Admin/V1alpha/DeleteAccountRequest.php | 75 + .../V1alpha/DeleteAdSenseLinkRequest.php | 75 + .../V1alpha/DeleteChannelGroupRequest.php | 71 + .../V1alpha/DeleteConnectedSiteTagRequest.php | 117 + .../V1alpha/DeleteConversionEventRequest.php | 75 + .../Admin/V1alpha/DeleteDataStreamRequest.php | 71 + ...yVideo360AdvertiserLinkProposalRequest.php | 71 + ...teDisplayVideo360AdvertiserLinkRequest.php | 71 + .../V1alpha/DeleteEventCreateRuleRequest.php | 71 + .../V1alpha/DeleteExpandedDataSetRequest.php | 67 + .../V1alpha/DeleteFirebaseLinkRequest.php | 71 + .../V1alpha/DeleteGoogleAdsLinkRequest.php | 67 + ...DeleteMeasurementProtocolSecretRequest.php | 75 + .../Admin/V1alpha/DeletePropertyRequest.php | 75 + .../DeleteRollupPropertySourceLinkRequest.php | 75 + ...KAdNetworkConversionValueSchemaRequest.php | 75 + .../V1alpha/DeleteSearchAds360LinkRequest.php | 71 + .../DeleteSubpropertyEventFilterRequest.php | 79 + .../V1alpha/DisplayVideo360AdvertiserLink.php | 408 + .../DisplayVideo360AdvertiserLinkProposal.php | 490 + .../V1alpha/EnhancedMeasurementSettings.php | 472 + .../Admin/V1alpha/EventCreateRule.php | 257 + .../Analytics/Admin/V1alpha/EventMapping.php | 279 + .../Admin/V1alpha/ExpandedDataSet.php | 339 + .../Admin/V1alpha/ExpandedDataSetFilter.php | 145 + .../ExpandedDataSetFilter/InListFilter.php | 116 + .../ExpandedDataSetFilter/StringFilter.php | 150 + .../StringFilter/MatchType.php | 64 + .../ExpandedDataSetFilterExpression.php | 159 + .../ExpandedDataSetFilterExpressionList.php | 67 + ...AutomatedGa4ConfigurationOptOutRequest.php | 79 + ...utomatedGa4ConfigurationOptOutResponse.php | 68 + .../FetchConnectedGa4PropertyRequest.php | 83 + .../FetchConnectedGa4PropertyResponse.php | 79 + .../Analytics/Admin/V1alpha/FirebaseLink.php | 165 + .../Admin/V1alpha/GetAccessBindingRequest.php | 79 + .../Admin/V1alpha/GetAccountRequest.php | 75 + .../Admin/V1alpha/GetAdSenseLinkRequest.php | 75 + .../V1alpha/GetAttributionSettingsRequest.php | 71 + .../Admin/V1alpha/GetAudienceRequest.php | 71 + .../Admin/V1alpha/GetBigQueryLinkRequest.php | 75 + .../Admin/V1alpha/GetChannelGroupRequest.php | 71 + .../V1alpha/GetConversionEventRequest.php | 75 + .../V1alpha/GetCustomDimensionRequest.php | 71 + .../Admin/V1alpha/GetCustomMetricRequest.php | 71 + .../GetDataRedactionSettingsRequest.php | 79 + .../GetDataRetentionSettingsRequest.php | 79 + .../V1alpha/GetDataSharingSettingsRequest.php | 75 + .../Admin/V1alpha/GetDataStreamRequest.php | 71 + ...yVideo360AdvertiserLinkProposalRequest.php | 71 + ...etDisplayVideo360AdvertiserLinkRequest.php | 71 + .../GetEnhancedMeasurementSettingsRequest.php | 79 + .../V1alpha/GetEventCreateRuleRequest.php | 71 + .../V1alpha/GetExpandedDataSetRequest.php | 71 + .../Admin/V1alpha/GetGlobalSiteTagRequest.php | 79 + .../GetGoogleSignalsSettingsRequest.php | 71 + .../GetMeasurementProtocolSecretRequest.php | 75 + .../Admin/V1alpha/GetPropertyRequest.php | 75 + .../GetRollupPropertySourceLinkRequest.php | 79 + ...KAdNetworkConversionValueSchemaRequest.php | 75 + .../V1alpha/GetSearchAds360LinkRequest.php | 71 + .../GetSubpropertyEventFilterRequest.php | 79 + .../Analytics/Admin/V1alpha/GlobalSiteTag.php | 114 + .../Analytics/Admin/V1alpha/GoogleAdsLink.php | 358 + .../Admin/V1alpha/GoogleSignalsConsent.php | 63 + .../Admin/V1alpha/GoogleSignalsSettings.php | 143 + .../Admin/V1alpha/GoogleSignalsState.php | 62 + .../Analytics/Admin/V1alpha/GroupingRule.php | 111 + .../Admin/V1alpha/IndustryCategory.php | 229 + .../V1alpha/LinkProposalInitiatingProduct.php | 62 + .../Admin/V1alpha/LinkProposalState.php | 97 + .../V1alpha/LinkProposalStatusDetails.php | 135 + .../V1alpha/ListAccessBindingsRequest.php | 167 + .../V1alpha/ListAccessBindingsResponse.php | 109 + .../V1alpha/ListAccountSummariesRequest.php | 125 + .../V1alpha/ListAccountSummariesResponse.php | 105 + .../Admin/V1alpha/ListAccountsRequest.php | 167 + .../Admin/V1alpha/ListAccountsResponse.php | 105 + .../Admin/V1alpha/ListAdSenseLinksRequest.php | 163 + .../V1alpha/ListAdSenseLinksResponse.php | 105 + .../Admin/V1alpha/ListAudiencesRequest.php | 155 + .../Admin/V1alpha/ListAudiencesResponse.php | 105 + .../V1alpha/ListBigQueryLinksRequest.php | 167 + .../V1alpha/ListBigQueryLinksResponse.php | 105 + .../V1alpha/ListChannelGroupsRequest.php | 159 + .../V1alpha/ListChannelGroupsResponse.php | 109 + .../V1alpha/ListConnectedSiteTagsRequest.php | 79 + .../V1alpha/ListConnectedSiteTagsResponse.php | 71 + .../V1alpha/ListConversionEventsRequest.php | 159 + .../V1alpha/ListConversionEventsResponse.php | 105 + .../V1alpha/ListCustomDimensionsRequest.php | 155 + .../V1alpha/ListCustomDimensionsResponse.php | 105 + .../V1alpha/ListCustomMetricsRequest.php | 155 + .../V1alpha/ListCustomMetricsResponse.php | 105 + .../Admin/V1alpha/ListDataStreamsRequest.php | 155 + .../Admin/V1alpha/ListDataStreamsResponse.php | 105 + ...Video360AdvertiserLinkProposalsRequest.php | 163 + ...ideo360AdvertiserLinkProposalsResponse.php | 105 + ...tDisplayVideo360AdvertiserLinksRequest.php | 159 + ...DisplayVideo360AdvertiserLinksResponse.php | 105 + .../V1alpha/ListEventCreateRulesRequest.php | 155 + .../V1alpha/ListEventCreateRulesResponse.php | 109 + .../V1alpha/ListExpandedDataSetsRequest.php | 155 + .../V1alpha/ListExpandedDataSetsResponse.php | 109 + .../V1alpha/ListFirebaseLinksRequest.php | 163 + .../V1alpha/ListFirebaseLinksResponse.php | 113 + .../V1alpha/ListGoogleAdsLinksRequest.php | 155 + .../V1alpha/ListGoogleAdsLinksResponse.php | 105 + .../ListMeasurementProtocolSecretsRequest.php | 163 + ...ListMeasurementProtocolSecretsResponse.php | 105 + .../Admin/V1alpha/ListPropertiesRequest.php | 257 + .../Admin/V1alpha/ListPropertiesResponse.php | 105 + .../ListRollupPropertySourceLinksRequest.php | 167 + .../ListRollupPropertySourceLinksResponse.php | 105 + ...AdNetworkConversionValueSchemasRequest.php | 175 + ...dNetworkConversionValueSchemasResponse.php | 121 + .../V1alpha/ListSearchAds360LinksRequest.php | 159 + .../V1alpha/ListSearchAds360LinksResponse.php | 105 + .../ListSubpropertyEventFiltersRequest.php | 171 + .../ListSubpropertyEventFiltersResponse.php | 105 + .../Admin/V1alpha/MatchingCondition.php | 202 + .../MatchingCondition/ComparisonType.php | 148 + .../V1alpha/MeasurementProtocolSecret.php | 151 + .../Analytics/Admin/V1alpha/NumericValue.php | 108 + .../Admin/V1alpha/ParameterMutation.php | 145 + .../Admin/V1alpha/PostbackWindow.php | 137 + .../Analytics/Admin/V1alpha/Property.php | 607 ++ .../Admin/V1alpha/PropertySummary.php | 189 + .../Analytics/Admin/V1alpha/PropertyType.php | 68 + .../V1alpha/ProvisionAccountTicketRequest.php | 115 + .../ProvisionAccountTicketResponse.php | 67 + .../V1alpha/RollupPropertySourceLink.php | 121 + .../Admin/V1alpha/RunAccessReportRequest.php | 679 ++ .../Admin/V1alpha/RunAccessReportResponse.php | 257 + .../SKAdNetworkConversionValueSchema.php | 309 + .../Admin/V1alpha/SearchAds360Link.php | 489 + .../SearchChangeHistoryEventsRequest.php | 407 + .../SearchChangeHistoryEventsResponse.php | 105 + .../Analytics/Admin/V1alpha/ServiceLevel.php | 61 + ...AutomatedGa4ConfigurationOptOutRequest.php | 113 + ...utomatedGa4ConfigurationOptOutResponse.php | 34 + .../Admin/V1alpha/SubpropertyEventFilter.php | 161 + .../V1alpha/SubpropertyEventFilterClause.php | 118 + .../FilterClauseType.php | 69 + .../SubpropertyEventFilterCondition.php | 142 + .../StringFilter.php | 142 + .../StringFilter/MatchType.php | 92 + .../SubpropertyEventFilterExpression.php | 153 + .../SubpropertyEventFilterExpressionList.php | 67 + .../V1alpha/UpdateAccessBindingRequest.php | 77 + .../Admin/V1alpha/UpdateAccountRequest.php | 137 + .../UpdateAttributionSettingsRequest.php | 137 + .../Admin/V1alpha/UpdateAudienceRequest.php | 137 + .../V1alpha/UpdateChannelGroupRequest.php | 141 + .../V1alpha/UpdateConversionEventRequest.php | 137 + .../V1alpha/UpdateCustomDimensionRequest.php | 129 + .../V1alpha/UpdateCustomMetricRequest.php | 129 + .../UpdateDataRedactionSettingsRequest.php | 137 + .../UpdateDataRetentionSettingsRequest.php | 137 + .../Admin/V1alpha/UpdateDataStreamRequest.php | 129 + ...teDisplayVideo360AdvertiserLinkRequest.php | 129 + ...dateEnhancedMeasurementSettingsRequest.php | 137 + .../V1alpha/UpdateEventCreateRuleRequest.php | 141 + .../V1alpha/UpdateExpandedDataSetRequest.php | 141 + .../V1alpha/UpdateGoogleAdsLinkRequest.php | 133 + .../UpdateGoogleSignalsSettingsRequest.php | 137 + ...UpdateMeasurementProtocolSecretRequest.php | 125 + .../Admin/V1alpha/UpdatePropertyRequest.php | 141 + ...KAdNetworkConversionValueSchemaRequest.php | 125 + .../V1alpha/UpdateSearchAds360LinkRequest.php | 129 + .../UpdateSubpropertyEventFilterRequest.php | 133 + .../acknowledge_user_data_collection.php | 84 + ...play_video360_advertiser_link_proposal.php | 74 + .../archive_audience.php | 64 + .../archive_custom_dimension.php | 68 + .../archive_custom_metric.php | 65 + .../batch_create_access_bindings.php | 90 + .../batch_delete_access_bindings.php | 84 + .../batch_get_access_bindings.php | 85 + .../batch_update_access_bindings.php | 80 + ...play_video360_advertiser_link_proposal.php | 76 + .../create_access_binding.php | 71 + .../create_ad_sense_link.php | 71 + .../create_audience.php | 98 + .../create_channel_group.php | 91 + .../create_connected_site_tag.php | 79 + .../create_conversion_event.php | 70 + .../create_custom_dimension.php | 103 + .../create_custom_metric.php | 104 + .../create_data_stream.php | 73 + ...reate_display_video360_advertiser_link.php | 76 + ...play_video360_advertiser_link_proposal.php | 72 + .../create_event_create_rule.php | 109 + .../create_expanded_data_set.php | 75 + .../create_firebase_link.php | 72 + .../create_google_ads_link.php | 69 + .../create_measurement_protocol_secret.php | 78 + .../create_property.php | 82 + .../create_rollup_property.php | 85 + .../create_rollup_property_source_link.php | 75 + .../create_search_ads360_link.php | 72 + ..._sk_ad_network_conversion_value_schema.php | 76 + .../create_subproperty.php | 92 + .../create_subproperty_event_filter.php | 89 + .../delete_access_binding.php | 66 + .../delete_account.php | 76 + .../delete_ad_sense_link.php | 66 + .../delete_channel_group.php | 65 + .../delete_connected_site_tag.php | 52 + .../delete_conversion_event.php | 69 + .../delete_data_stream.php | 65 + ...elete_display_video360_advertiser_link.php | 68 + ...play_video360_advertiser_link_proposal.php | 69 + .../delete_event_create_rule.php | 69 + .../delete_expanded_data_set.php | 67 + .../delete_firebase_link.php | 65 + .../delete_google_ads_link.php | 64 + .../delete_measurement_protocol_secret.php | 70 + .../delete_property.php | 78 + .../delete_rollup_property_source_link.php | 71 + .../delete_search_ads360_link.php | 68 + ..._sk_ad_network_conversion_value_schema.php | 70 + .../delete_subproperty_event_filter.php | 70 + ...ch_automated_ga4_configuration_opt_out.php | 70 + .../fetch_connected_ga4_property.php | 71 + .../get_access_binding.php | 69 + .../get_account.php | 68 + .../get_ad_sense_link.php | 68 + .../get_attribution_settings.php | 67 + .../get_audience.php | 69 + .../get_big_query_link.php | 68 + .../get_channel_group.php | 67 + .../get_conversion_event.php | 71 + .../get_custom_dimension.php | 70 + .../get_custom_metric.php | 67 + .../get_data_redaction_settings.php | 72 + .../get_data_retention_settings.php | 69 + .../get_data_sharing_settings.php | 69 + .../get_data_stream.php | 67 + .../get_display_video360_advertiser_link.php | 70 + ...play_video360_advertiser_link_proposal.php | 70 + .../get_enhanced_measurement_settings.php | 74 + .../get_event_create_rule.php | 71 + .../get_expanded_data_set.php | 70 + .../get_global_site_tag.php | 70 + .../get_google_signals_settings.php | 67 + .../get_measurement_protocol_secret.php | 72 + .../get_property.php | 68 + .../get_rollup_property_source_link.php | 74 + .../get_search_ads360_link.php | 70 + ..._sk_ad_network_conversion_value_schema.php | 72 + .../list_access_bindings.php | 73 + .../list_account_summaries.php | 58 + .../list_accounts.php | 62 + .../list_ad_sense_links.php | 73 + .../list_audiences.php | 73 + .../list_big_query_links.php | 73 + .../list_channel_groups.php | 72 + .../list_connected_site_tags.php | 55 + .../list_conversion_events.php | 74 + .../list_custom_dimensions.php | 71 + .../list_custom_metrics.php | 71 + .../list_data_streams.php | 71 + ...lay_video360_advertiser_link_proposals.php | 73 + ...list_display_video360_advertiser_links.php | 71 + .../list_event_create_rules.php | 71 + .../list_expanded_data_sets.php | 71 + .../list_firebase_links.php | 73 + .../list_google_ads_links.php | 71 + .../list_measurement_protocol_secrets.php | 74 + .../list_properties.php | 90 + .../list_rollup_property_source_links.php | 74 + .../list_search_ads360_links.php | 71 + ...sk_ad_network_conversion_value_schemas.php | 75 + .../provision_account_ticket.php | 53 + .../run_access_report.php | 65 + .../search_change_history_events.php | 73 + ...et_automated_ga4_configuration_opt_out.php | 70 + .../update_access_binding.php | 56 + .../update_account.php | 71 + .../update_attribution_settings.php | 106 + .../update_audience.php | 95 + .../update_channel_group.php | 84 + .../update_conversion_event.php | 58 + .../update_custom_dimension.php | 57 + .../update_custom_metric.php | 57 + .../update_data_redaction_settings.php | 61 + .../update_data_retention_settings.php | 61 + .../update_data_stream.php | 57 + ...pdate_display_video360_advertiser_link.php | 57 + .../update_enhanced_measurement_settings.php | 78 + .../update_event_create_rule.php | 106 + .../update_expanded_data_set.php | 72 + .../update_google_ads_link.php | 57 + .../update_google_signals_settings.php | 61 + .../update_measurement_protocol_secret.php | 75 + .../update_property.php | 84 + .../update_search_ads360_link.php | 57 + ..._sk_ad_network_conversion_value_schema.php | 64 + .../V1alpha/AnalyticsAdminServiceClient.php | 36 + .../AnalyticsAdminServiceGapicClient.php | 7940 +++++++++++++++ .../v1alpha/src/V1alpha/gapic_metadata.json | 658 ++ ...analytics_admin_service_client_config.json | 685 ++ ...lytics_admin_service_descriptor_config.php | 238 + ...ytics_admin_service_rest_client_config.php | 1536 +++ .../AnalyticsAdminServiceClientTest.php | 8578 +++++++++++++++++ .../Analytics/Admin/V1Beta/AccessReport.php | Bin 0 -> 3919 bytes .../Analytics/Admin/V1Beta/AnalyticsAdmin.php | 318 + .../Analytics/Admin/V1Beta/Resources.php | Bin 0 -> 9580 bytes .../Admin/V1beta/AccessBetweenFilter.php | 121 + .../Admin/V1beta/AccessDateRange.php | 125 + .../Admin/V1beta/AccessDimension.php | 81 + .../Admin/V1beta/AccessDimensionHeader.php | 70 + .../Admin/V1beta/AccessDimensionValue.php | 71 + .../Analytics/Admin/V1beta/AccessFilter.php | 208 + .../Admin/V1beta/AccessFilterExpression.php | 178 + .../V1beta/AccessFilterExpressionList.php | 67 + .../Admin/V1beta/AccessInListFilter.php | 101 + .../Analytics/Admin/V1beta/AccessMetric.php | 80 + .../Admin/V1beta/AccessMetricHeader.php | 70 + .../Admin/V1beta/AccessMetricValue.php | 67 + .../Admin/V1beta/AccessNumericFilter.php | 111 + .../V1beta/AccessNumericFilter/Operation.php | 85 + .../Analytics/Admin/V1beta/AccessOrderBy.php | 148 + .../V1beta/AccessOrderBy/DimensionOrderBy.php | 104 + .../DimensionOrderBy/OrderType.php | 76 + .../V1beta/AccessOrderBy/MetricOrderBy.php | 70 + .../Analytics/Admin/V1beta/AccessQuota.php | 283 + .../Admin/V1beta/AccessQuotaStatus.php | 101 + .../Analytics/Admin/V1beta/AccessRow.php | 109 + .../Admin/V1beta/AccessStringFilter.php | 135 + .../V1beta/AccessStringFilter/MatchType.php | 92 + .../Google/Analytics/Admin/V1beta/Account.php | 269 + .../Analytics/Admin/V1beta/AccountSummary.php | 186 + .../AcknowledgeUserDataCollectionRequest.php | 125 + .../AcknowledgeUserDataCollectionResponse.php | 33 + .../Analytics/Admin/V1beta/ActionType.php | 68 + .../Analytics/Admin/V1beta/ActorType.php | 69 + .../V1beta/ArchiveCustomDimensionRequest.php | 86 + .../V1beta/ArchiveCustomMetricRequest.php | 86 + .../Admin/V1beta/ChangeHistoryChange.php | 197 + .../ChangeHistoryResource.php | 310 + .../Admin/V1beta/ChangeHistoryEvent.php | 266 + .../V1beta/ChangeHistoryResourceType.php | 131 + .../Admin/V1beta/ConversionEvent.php | 287 + .../ConversionCountingMethod.php | 66 + .../V1beta/CreateConversionEventRequest.php | 132 + .../V1beta/CreateCustomDimensionRequest.php | 127 + .../V1beta/CreateCustomMetricRequest.php | 127 + .../Admin/V1beta/CreateDataStreamRequest.php | 127 + .../V1beta/CreateFirebaseLinkRequest.php | 132 + .../V1beta/CreateGoogleAdsLinkRequest.php | 127 + ...CreateMeasurementProtocolSecretRequest.php | 132 + .../Admin/V1beta/CreatePropertyRequest.php | 95 + .../Admin/V1beta/CustomDimension.php | 301 + .../V1beta/CustomDimension/DimensionScope.php | 71 + .../Analytics/Admin/V1beta/CustomMetric.php | 319 + .../V1beta/CustomMetric/MeasurementUnit.php | 122 + .../Admin/V1beta/CustomMetric/MetricScope.php | 57 + .../CustomMetric/RestrictedMetricType.php | 65 + .../Admin/V1beta/DataRetentionSettings.php | 143 + .../RetentionDuration.php | 88 + .../Admin/V1beta/DataSharingSettings.php | 262 + .../Analytics/Admin/V1beta/DataStream.php | 356 + .../DataStream/AndroidAppStreamData.php | 112 + .../V1beta/DataStream/DataStreamType.php | 71 + .../V1beta/DataStream/IosAppStreamData.php | 112 + .../Admin/V1beta/DataStream/WebStreamData.php | 150 + .../Admin/V1beta/DeleteAccountRequest.php | 91 + .../V1beta/DeleteConversionEventRequest.php | 91 + .../Admin/V1beta/DeleteDataStreamRequest.php | 86 + .../V1beta/DeleteFirebaseLinkRequest.php | 86 + .../V1beta/DeleteGoogleAdsLinkRequest.php | 81 + ...DeleteMeasurementProtocolSecretRequest.php | 91 + .../Admin/V1beta/DeletePropertyRequest.php | 91 + .../Analytics/Admin/V1beta/FirebaseLink.php | 165 + .../Admin/V1beta/GetAccountRequest.php | 91 + .../V1beta/GetConversionEventRequest.php | 91 + .../V1beta/GetCustomDimensionRequest.php | 86 + .../Admin/V1beta/GetCustomMetricRequest.php | 86 + .../GetDataRetentionSettingsRequest.php | 96 + .../V1beta/GetDataSharingSettingsRequest.php | 91 + .../Admin/V1beta/GetDataStreamRequest.php | 86 + .../GetMeasurementProtocolSecretRequest.php | 91 + .../Admin/V1beta/GetPropertyRequest.php | 91 + .../Analytics/Admin/V1beta/GoogleAdsLink.php | 358 + .../Admin/V1beta/IndustryCategory.php | 229 + .../V1beta/ListAccountSummariesRequest.php | 125 + .../V1beta/ListAccountSummariesResponse.php | 105 + .../Admin/V1beta/ListAccountsRequest.php | 167 + .../Admin/V1beta/ListAccountsResponse.php | 105 + .../V1beta/ListConversionEventsRequest.php | 174 + .../V1beta/ListConversionEventsResponse.php | 105 + .../V1beta/ListCustomDimensionsRequest.php | 169 + .../V1beta/ListCustomDimensionsResponse.php | 105 + .../Admin/V1beta/ListCustomMetricsRequest.php | 169 + .../V1beta/ListCustomMetricsResponse.php | 105 + .../Admin/V1beta/ListDataStreamsRequest.php | 169 + .../Admin/V1beta/ListDataStreamsResponse.php | 105 + .../Admin/V1beta/ListFirebaseLinksRequest.php | 178 + .../V1beta/ListFirebaseLinksResponse.php | 113 + .../V1beta/ListGoogleAdsLinksRequest.php | 169 + .../V1beta/ListGoogleAdsLinksResponse.php | 105 + .../ListMeasurementProtocolSecretsRequest.php | 179 + ...ListMeasurementProtocolSecretsResponse.php | 105 + .../Admin/V1beta/ListPropertiesRequest.php | 257 + .../Admin/V1beta/ListPropertiesResponse.php | 105 + .../V1beta/MeasurementProtocolSecret.php | 151 + .../Analytics/Admin/V1beta/NumericValue.php | 108 + .../Analytics/Admin/V1beta/Property.php | 611 ++ .../Admin/V1beta/PropertySummary.php | 189 + .../Analytics/Admin/V1beta/PropertyType.php | 68 + .../V1beta/ProvisionAccountTicketRequest.php | 115 + .../V1beta/ProvisionAccountTicketResponse.php | 67 + .../Admin/V1beta/RunAccessReportRequest.php | 583 ++ .../Admin/V1beta/RunAccessReportResponse.php | 257 + .../SearchChangeHistoryEventsRequest.php | 407 + .../SearchChangeHistoryEventsResponse.php | 105 + .../Analytics/Admin/V1beta/ServiceLevel.php | 61 + .../Admin/V1beta/UpdateAccountRequest.php | 156 + .../V1beta/UpdateConversionEventRequest.php | 156 + .../V1beta/UpdateCustomDimensionRequest.php | 146 + .../V1beta/UpdateCustomMetricRequest.php | 146 + .../UpdateDataRetentionSettingsRequest.php | 156 + .../Admin/V1beta/UpdateDataStreamRequest.php | 146 + .../V1beta/UpdateGoogleAdsLinkRequest.php | 151 + ...UpdateMeasurementProtocolSecretRequest.php | 141 + .../Admin/V1beta/UpdatePropertyRequest.php | 161 + .../acknowledge_user_data_collection.php | 87 + .../archive_custom_dimension.php | 73 + .../archive_custom_metric.php | 70 + .../create_conversion_event.php | 74 + .../create_custom_dimension.php | 107 + .../create_custom_metric.php | 108 + .../create_data_stream.php | 77 + .../create_firebase_link.php | 76 + .../create_google_ads_link.php | 73 + .../create_measurement_protocol_secret.php | 79 + .../create_property.php | 85 + .../delete_account.php | 81 + .../delete_conversion_event.php | 74 + .../delete_data_stream.php | 70 + .../delete_firebase_link.php | 70 + .../delete_google_ads_link.php | 69 + .../delete_measurement_protocol_secret.php | 75 + .../delete_property.php | 83 + .../get_account.php | 73 + .../get_conversion_event.php | 76 + .../get_custom_dimension.php | 75 + .../get_custom_metric.php | 72 + .../get_data_retention_settings.php | 74 + .../get_data_sharing_settings.php | 74 + .../get_data_stream.php | 72 + .../get_measurement_protocol_secret.php | 77 + .../get_property.php | 73 + .../list_account_summaries.php | 62 + .../list_accounts.php | 66 + .../list_conversion_events.php | 79 + .../list_custom_dimensions.php | 76 + .../list_custom_metrics.php | 76 + .../list_data_streams.php | 76 + .../list_firebase_links.php | 78 + .../list_google_ads_links.php | 76 + .../list_measurement_protocol_secrets.php | 79 + .../list_properties.php | 95 + .../provision_account_ticket.php | 57 + .../run_access_report.php | 69 + .../search_change_history_events.php | 78 + .../update_account.php | 75 + .../update_conversion_event.php | 62 + .../update_custom_dimension.php | 60 + .../update_custom_metric.php | 60 + .../update_data_retention_settings.php | 62 + .../update_data_stream.php | 60 + .../update_google_ads_link.php | 60 + .../update_measurement_protocol_secret.php | 76 + .../update_property.php | 88 + .../V1beta/AnalyticsAdminServiceClient.php | 36 + .../Client/AnalyticsAdminServiceClient.php | 1969 ++++ .../AnalyticsAdminServiceGapicClient.php | 3310 +++++++ .../v1beta/src/V1beta/gapic_metadata.json | 263 + ...analytics_admin_service_client_config.json | 280 + ...lytics_admin_service_descriptor_config.php | 666 ++ ...ytics_admin_service_rest_client_config.php | 582 ++ .../AnalyticsAdminServiceClientTest.php | 3341 +++++++ .../AnalyticsAdminServiceClientTest.php | 3635 +++++++ 623 files changed, 104893 insertions(+) create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ExpandedDataSet.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Resources.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/SubpropertyEventFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Client/AnalyticsAdminServiceClient.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php create mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php new file mode 100644 index 0000000000000000000000000000000000000000..1eb5b5e489439d98d844373b9fc6170db7d421f8 GIT binary patch literal 3944 zcmbuCQFGfw5Xb8{3Gv!--7C$6FfgiGrs+&^rf#P&NfVG0HFj}q*LFf-%xGl!>(e};Fhva9qOBm zc9qUpVaHVQe3!YFJ5V~KUXS{UfU;?A4TNt)=LD<J_Gus^4KVoRx zO3xew6ai;#dn3nUw(BT-LCvw~`dvjbx$SMwMJcwGiEDMP4l2_wJB<41XM2wZmT!B^ z_3LQ5x!I>I(v<(QemC5fafI5;D$aW_m z2G8?qLP@Nr)LW2|rkHNuw#aoz55<3Rqfa6p)?~wU`jij=l+0%amPp7VIas1jSN<|5 z=zq<@io|2|m>T^D&&RUk4%HxKqH*7MN1pH{UD(Y3e_Z+VQ58F2r7NTgORgXC`0j7Z zt3%dtnL#6$SCfMJ=yG17hdL~q^4Rr+8msdHc<&;>(v@NkvaUm8j;S`Ryfdvdf{__T`f`Ak!Giu=+im3%H_xq~99AkuL*Lh**K-TlXR>vz(JE`v zZ;R^Vi7fGalPoNXAY_H7&WVCYx1|0t2iK*lrxJ{^rd*HTy4amWL&_GmXH)eQCtsUD z$W~m|bm5KXJmehlR0y%BsQ2JTt*$q;R=HL^N9$*YS_QR6X)AiOX|zgO6_s8A5`7xA zhM^0yB=+gdenZzy6U4`VnHn#sza}Pfoho4RIhL>Q4h>m2{4%*aH_ zP2*w;J%vnMF>(Xac<(-X7;`C!J!J(lT^AoBG`3X&+h`i|jb}~xul|#SWmyz8zf1k% zm>j^Oya>a~X=}Dx2$$#ObsB!57fnb-_pdl+>B7#%h|yg>g=S#Biw_-nJlAf+@~K_V zz024BO+fBd6hAAGcd>p%+HGt|ToBo7c$Tt-(%bo+7yk3UgZEY{`XJa(YK=W!lV|%0 zR;*U3V^tp>=#BC&mikTjU{`DE2DS~o+AO!qN4jy!WR9faor!(2n1u|_whX2-RyW{= z%y*!iRpRoIKA#-a7O&!yk6PfB>heSzXy%dlpjt!%LJcX+<)G>}X;rY1)s|wdG*Re*vPaTHC&-Wu5upoTc zU4r)wr~&m)FhuJ6t}mm-Vd`6IF%h|NSH3zffj@%xW1*kn%IC+$x$38rjK+1w*E?zx z;G?H2lC?mtLCU8?6Gt$oFEn2$jzPuI^9`j|4C_VCf?_zUC%)dX2JWakS&Ed6zI$do uH9b3;Q2CVUb+*K4<8?ZV7(a6#+=)i0dvY?14RWs?;)JD~*IvR)fd2sW#q8Sv literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php new file mode 100644 index 000000000000..07477e991b81 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php @@ -0,0 +1,737 @@ +internalAddGeneratedFile( + ' +ت +4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alpha-google/analytics/admin/v1alpha/audience.proto2google/analytics/admin/v1alpha/channel_group.proto:google/analytics/admin/v1alpha/event_create_and_edit.proto6google/analytics/admin/v1alpha/expanded_data_set.proto.google/analytics/admin/v1alpha/resources.proto=google/analytics/admin/v1alpha/subproperty_event_filter.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"à +RunAccessReportRequest +entity ( C + +dimensions ( 2/.google.analytics.admin.v1alpha.AccessDimension= +metrics ( 2,.google.analytics.admin.v1alpha.AccessMetricD + date_ranges ( 2/.google.analytics.admin.v1alpha.AccessDateRangeP +dimension_filter ( 26.google.analytics.admin.v1alpha.AccessFilterExpressionM + metric_filter ( 26.google.analytics.admin.v1alpha.AccessFilterExpression +offset ( +limit ( + time_zone ( @ + order_bys + ( 2-.google.analytics.admin.v1alpha.AccessOrderBy +return_entity_quota ( +include_all_users (BàA + expand_groups (BàA"¿ +RunAccessReportResponseP +dimension_headers ( 25.google.analytics.admin.v1alpha.AccessDimensionHeaderJ +metric_headers ( 22.google.analytics.admin.v1alpha.AccessMetricHeader7 +rows ( 2).google.analytics.admin.v1alpha.AccessRow + row_count (: +quota ( 2+.google.analytics.admin.v1alpha.AccessQuota"P +GetAccountRequest; +name ( B-àAúA\' +%analyticsadmin.googleapis.com/Account"R +ListAccountsRequest + page_size ( + +page_token (  + show_deleted ("j +ListAccountsResponse9 +accounts ( 2\'.google.analytics.admin.v1alpha.Account +next_page_token ( "S +DeleteAccountRequest; +name ( B-àAúA\' +%analyticsadmin.googleapis.com/Account"‹ +UpdateAccountRequest= +account ( 2\'.google.analytics.admin.v1alpha.AccountBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"o +ProvisionAccountTicketRequest8 +account ( 2\'.google.analytics.admin.v1alpha.Account + redirect_uri ( "; +ProvisionAccountTicketResponse +account_ticket_id ( "R +GetPropertyRequest< +name ( B.àAúA( +&analyticsadmin.googleapis.com/Property"i +ListPropertiesRequest +filter ( BàA + page_size ( + +page_token (  + show_deleted ("o +ListPropertiesResponse< + +properties ( 2(.google.analytics.admin.v1alpha.Property +next_page_token ( "Ž +UpdatePropertyRequest? +property ( 2(.google.analytics.admin.v1alpha.PropertyBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"X +CreatePropertyRequest? +property ( 2(.google.analytics.admin.v1alpha.PropertyBàA"U +DeletePropertyRequest< +name ( B.àAúA( +&analyticsadmin.googleapis.com/Property"© +CreateFirebaseLinkRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkH + firebase_link ( 2,.google.analytics.admin.v1alpha.FirebaseLinkBàA"] +DeleteFirebaseLinkRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/FirebaseLink"… +ListFirebaseLinksRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLink + page_size ( + +page_token ( "z +ListFirebaseLinksResponseD +firebase_links ( 2,.google.analytics.admin.v1alpha.FirebaseLink +next_page_token ( "\\ +GetGlobalSiteTagRequestA +name ( B3àAúA- ++analyticsadmin.googleapis.com/GlobalSiteTag"® +CreateGoogleAdsLinkRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLinkK +google_ads_link ( 2-.google.analytics.admin.v1alpha.GoogleAdsLinkBàA"š +UpdateGoogleAdsLinkRequestF +google_ads_link ( 2-.google.analytics.admin.v1alpha.GoogleAdsLink4 + update_mask ( 2.google.protobuf.FieldMaskBàA"_ +DeleteGoogleAdsLinkRequestA +name ( B3àAúA- ++analyticsadmin.googleapis.com/GoogleAdsLink"‡ +ListGoogleAdsLinksRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLink + page_size ( + +page_token ( "~ +ListGoogleAdsLinksResponseG +google_ads_links ( 2-.google.analytics.admin.v1alpha.GoogleAdsLink +next_page_token ( "h +GetDataSharingSettingsRequestG +name ( B9àAúA3 +1analyticsadmin.googleapis.com/DataSharingSettings"D +ListAccountSummariesRequest + page_size ( + +page_token ( "‚ +ListAccountSummariesResponseI +account_summaries ( 2..google.analytics.admin.v1alpha.AccountSummary +next_page_token ( "† +$AcknowledgeUserDataCollectionRequest@ +property ( B.àAúA( +&analyticsadmin.googleapis.com/Property +acknowledgement ( BàA"\' +%AcknowledgeUserDataCollectionResponse"ƒ + SearchChangeHistoryEventsRequest> +account ( B-àAúA\' +%analyticsadmin.googleapis.com/Account@ +property ( B.àAúA( +&analyticsadmin.googleapis.com/PropertyU + resource_type (29.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeBàA? +action (2*.google.analytics.admin.v1alpha.ActionTypeBàA + actor_email ( BàA= +earliest_change_time ( 2.google.protobuf.TimestampBàA; +latest_change_time ( 2.google.protobuf.TimestampBàA + page_size (BàA + +page_token ( BàA" +!SearchChangeHistoryEventsResponseQ +change_history_events ( 22.google.analytics.admin.v1alpha.ChangeHistoryEvent +next_page_token ( "t +#GetMeasurementProtocolSecretRequestM +name ( B?àAúA9 +7analyticsadmin.googleapis.com/MeasurementProtocolSecret"Þ +&CreateMeasurementProtocolSecretRequestO +parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecretc +measurement_protocol_secret ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecretBàA"w +&DeleteMeasurementProtocolSecretRequestM +name ( B?àAúA9 +7analyticsadmin.googleapis.com/MeasurementProtocolSecret"à +&UpdateMeasurementProtocolSecretRequestc +measurement_protocol_secret ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecretBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"Ÿ +%ListMeasurementProtocolSecretsRequestO +parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecret + page_size ( + +page_token ( "¢ +&ListMeasurementProtocolSecretsResponse_ +measurement_protocol_secrets ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecret +next_page_token ( "‚ +*GetSKAdNetworkConversionValueSchemaRequestT +name ( BFàAúA@ +>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema"û +-CreateSKAdNetworkConversionValueSchemaRequestV +parent ( BFàAúA@>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchemar +#skadnetwork_conversion_value_schema ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaBàA"… +-DeleteSKAdNetworkConversionValueSchemaRequestT +name ( BFàAúA@ +>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema"Ù +-UpdateSKAdNetworkConversionValueSchemaRequestr +#skadnetwork_conversion_value_schema ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"­ +,ListSKAdNetworkConversionValueSchemasRequestV +parent ( BFàAúA@>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema + page_size ( + +page_token ( "¸ +-ListSKAdNetworkConversionValueSchemasResponsen +$skadnetwork_conversion_value_schemas ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema +next_page_token ( "l +GetGoogleSignalsSettingsRequestI +name ( B;àAúA5 +3analyticsadmin.googleapis.com/GoogleSignalsSettings"· +"UpdateGoogleSignalsSettingsRequest[ +google_signals_settings ( 25.google.analytics.admin.v1alpha.GoogleSignalsSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"µ +CreateConversionEventRequestN +conversion_event ( 2/.google.analytics.admin.v1alpha.ConversionEventBàAE +parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent"¤ +UpdateConversionEventRequestN +conversion_event ( 2/.google.analytics.admin.v1alpha.ConversionEventBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"` +GetConversionEventRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/ConversionEvent"c +DeleteConversionEventRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/ConversionEvent"‹ +ListConversionEventsRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent + page_size ( + +page_token ( "ƒ +ListConversionEventsResponseJ +conversion_events ( 2/.google.analytics.admin.v1alpha.ConversionEvent +next_page_token ( "| +\'GetDisplayVideo360AdvertiserLinkRequestQ +name ( BCàAúA= +;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink"§ +)ListDisplayVideo360AdvertiserLinksRequestS +parent ( BCàAúA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink + page_size ( + +page_token ( "° +*ListDisplayVideo360AdvertiserLinksResponsei +"display_video_360_advertiser_links ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink +next_page_token ( "ð +*CreateDisplayVideo360AdvertiserLinkRequestS +parent ( BCàAúA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkm +!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkBàA" +*DeleteDisplayVideo360AdvertiserLinkRequestQ +name ( BCàAúA= +;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink"Ì +*UpdateDisplayVideo360AdvertiserLinkRequesth +!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink4 + update_mask ( 2.google.protobuf.FieldMaskBàA"Œ +/GetDisplayVideo360AdvertiserLinkProposalRequestY +name ( BKàAúAE +Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"· +1ListDisplayVideo360AdvertiserLinkProposalsRequest[ +parent ( BKàAúAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal + page_size ( + +page_token ( "É +2ListDisplayVideo360AdvertiserLinkProposalsResponsez ++display_video_360_advertiser_link_proposals ( 2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal +next_page_token ( "‘ +2CreateDisplayVideo360AdvertiserLinkProposalRequest[ +parent ( BKàAúAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal~ +*display_video_360_advertiser_link_proposal ( 2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalBàA" +2DeleteDisplayVideo360AdvertiserLinkProposalRequestY +name ( BKàAúAE +Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" +3ApproveDisplayVideo360AdvertiserLinkProposalRequestY +name ( BKàAúAE +Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"  +4ApproveDisplayVideo360AdvertiserLinkProposalResponseh +!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" +2CancelDisplayVideo360AdvertiserLinkProposalRequestY +name ( BKàAúAE +Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"b +GetSearchAds360LinkRequestD +name ( B6àAúA0 +.analyticsadmin.googleapis.com/SearchAds360Link" +ListSearchAds360LinksRequestF +parent ( B6àAúA0.analyticsadmin.googleapis.com/SearchAds360Link + page_size ( + +page_token ( "ˆ +ListSearchAds360LinksResponseN +search_ads_360_links ( 20.google.analytics.admin.v1alpha.SearchAds360Link +next_page_token ( "» +CreateSearchAds360LinkRequestF +parent ( B6àAúA0.analyticsadmin.googleapis.com/SearchAds360LinkR +search_ads_360_link ( 20.google.analytics.admin.v1alpha.SearchAds360LinkBàA"e +DeleteSearchAds360LinkRequestD +name ( B6àAúA0 +.analyticsadmin.googleapis.com/SearchAds360Link"¤ +UpdateSearchAds360LinkRequestM +search_ads_360_link ( 20.google.analytics.admin.v1alpha.SearchAds360Link4 + update_mask ( 2.google.protobuf.FieldMaskBàA"µ +CreateCustomDimensionRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimensionN +custom_dimension ( 2/.google.analytics.admin.v1alpha.CustomDimensionBàA"Ÿ +UpdateCustomDimensionRequestI +custom_dimension ( 2/.google.analytics.admin.v1alpha.CustomDimension4 + update_mask ( 2.google.protobuf.FieldMaskBàA"‹ +ListCustomDimensionsRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimension + page_size ( + +page_token ( "ƒ +ListCustomDimensionsResponseJ +custom_dimensions ( 2/.google.analytics.admin.v1alpha.CustomDimension +next_page_token ( "d +ArchiveCustomDimensionRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/CustomDimension"` +GetCustomDimensionRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/CustomDimension"© +CreateCustomMetricRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetricH + custom_metric ( 2,.google.analytics.admin.v1alpha.CustomMetricBàA"– +UpdateCustomMetricRequestC + custom_metric ( 2,.google.analytics.admin.v1alpha.CustomMetric4 + update_mask ( 2.google.protobuf.FieldMaskBàA"… +ListCustomMetricsRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetric + page_size ( + +page_token ( "z +ListCustomMetricsResponseD +custom_metrics ( 2,.google.analytics.admin.v1alpha.CustomMetric +next_page_token ( "^ +ArchiveCustomMetricRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/CustomMetric"Z +GetCustomMetricRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/CustomMetric"l +GetDataRetentionSettingsRequestI +name ( B;àAúA5 +3analyticsadmin.googleapis.com/DataRetentionSettings"· +"UpdateDataRetentionSettingsRequest[ +data_retention_settings ( 25.google.analytics.admin.v1alpha.DataRetentionSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"¡ +CreateDataStreamRequest@ +parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStreamD + data_stream ( 2*.google.analytics.admin.v1alpha.DataStreamBàA"Y +DeleteDataStreamRequest> +name ( B0àAúA* +(analyticsadmin.googleapis.com/DataStream" +UpdateDataStreamRequest? + data_stream ( 2*.google.analytics.admin.v1alpha.DataStream4 + update_mask ( 2.google.protobuf.FieldMaskBàA" +ListDataStreamsRequest@ +parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStream + page_size ( + +page_token ( "t +ListDataStreamsResponse@ + data_streams ( 2*.google.analytics.admin.v1alpha.DataStream +next_page_token ( "V +GetDataStreamRequest> +name ( B0àAúA* +(analyticsadmin.googleapis.com/DataStream"R +GetAudienceRequest< +name ( B.àAúA( +&analyticsadmin.googleapis.com/Audience"} +ListAudiencesRequest> +parent ( B.àAúA(&analyticsadmin.googleapis.com/Audience + page_size ( + +page_token ( "m +ListAudiencesResponse; + audiences ( 2(.google.analytics.admin.v1alpha.Audience +next_page_token ( "˜ +CreateAudienceRequest> +parent ( B.àAúA(&analyticsadmin.googleapis.com/Audience? +audience ( 2(.google.analytics.admin.v1alpha.AudienceBàA"Ž +UpdateAudienceRequest? +audience ( 2(.google.analytics.admin.v1alpha.AudienceBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"V +ArchiveAudienceRequest< +name ( B.àAúA(&analyticsadmin.googleapis.com/Audience"h +GetAttributionSettingsRequestG +name ( B9àAúA3 +1analyticsadmin.googleapis.com/AttributionSettings"° + UpdateAttributionSettingsRequestV +attribution_settings ( 23.google.analytics.admin.v1alpha.AttributionSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"\\ +GetAccessBindingRequestA +name ( B3àAúA- ++analyticsadmin.googleapis.com/AccessBinding"¨ +BatchGetAccessBindingsRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingB +names ( B3àAúA- ++analyticsadmin.googleapis.com/AccessBinding"h +BatchGetAccessBindingsResponseF +access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"‡ +ListAccessBindingsRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBinding + page_size ( + +page_token ( "} +ListAccessBindingsResponseF +access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding +next_page_token ( "­ +CreateAccessBindingRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingJ +access_binding ( 2-.google.analytics.admin.v1alpha.AccessBindingBàA"º + BatchCreateAccessBindingsRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingQ +requests ( 2:.google.analytics.admin.v1alpha.CreateAccessBindingRequestBàA"k +!BatchCreateAccessBindingsResponseF +access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"h +UpdateAccessBindingRequestJ +access_binding ( 2-.google.analytics.admin.v1alpha.AccessBindingBàA"º + BatchUpdateAccessBindingsRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingQ +requests ( 2:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestBàA"k +!BatchUpdateAccessBindingsResponseF +access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"_ +DeleteAccessBindingRequestA +name ( B3àAúA- ++analyticsadmin.googleapis.com/AccessBinding"º + BatchDeleteAccessBindingsRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingQ +requests ( 2:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestBàA"¶ +CreateExpandedDataSetRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/ExpandedDataSetO +expanded_data_set ( 2/.google.analytics.admin.v1alpha.ExpandedDataSetBàA"¥ +UpdateExpandedDataSetRequestO +expanded_data_set ( 2/.google.analytics.admin.v1alpha.ExpandedDataSetBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"c +DeleteExpandedDataSetRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/ExpandedDataSet"` +GetExpandedDataSetRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/ExpandedDataSet"‹ +ListExpandedDataSetsRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/ExpandedDataSet + page_size ( + +page_token ( "„ +ListExpandedDataSetsResponseK +expanded_data_sets ( 2/.google.analytics.admin.v1alpha.ExpandedDataSet +next_page_token ( "© +CreateChannelGroupRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/ChannelGroupH + channel_group ( 2,.google.analytics.admin.v1alpha.ChannelGroupBàA"› +UpdateChannelGroupRequestH + channel_group ( 2,.google.analytics.admin.v1alpha.ChannelGroupBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"] +DeleteChannelGroupRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/ChannelGroup"Z +GetChannelGroupRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/ChannelGroup"… +ListChannelGroupsRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/ChannelGroup + page_size ( + +page_token ( "z +ListChannelGroupsResponseD +channel_groups ( 2,.google.analytics.admin.v1alpha.ChannelGroup +next_page_token ( "S +)SetAutomatedGa4ConfigurationOptOutRequest +property ( BàA +opt_out (", +*SetAutomatedGa4ConfigurationOptOutResponse"D ++FetchAutomatedGa4ConfigurationOptOutRequest +property ( BàA"? +,FetchAutomatedGa4ConfigurationOptOutResponse +opt_out ("Z +GetBigQueryLinkRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/BigQueryLink"… +ListBigQueryLinksRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/BigQueryLink + page_size ( + +page_token ( "z +ListBigQueryLinksResponseD +bigquery_links ( 2,.google.analytics.admin.v1alpha.BigQueryLink +next_page_token ( "x +%GetEnhancedMeasurementSettingsRequestO +name ( BAàAúA; +9analyticsadmin.googleapis.com/EnhancedMeasurementSettings"É +(UpdateEnhancedMeasurementSettingsRequestg +enhanced_measurement_settings ( 2;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"l +GetDataRedactionSettingsRequestI +name ( B;àAúA5 +3analyticsadmin.googleapis.com/DataRedactionSettings"· +"UpdateDataRedactionSettingsRequest[ +data_redaction_settings ( 25.google.analytics.admin.v1alpha.DataRedactionSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"„ +CreateConnectedSiteTagRequest +property ( Q +connected_site_tag ( 20.google.analytics.admin.v1alpha.ConnectedSiteTagBàA" +CreateConnectedSiteTagResponse"A +DeleteConnectedSiteTagRequest +property (  +tag_id ( "0 +ListConnectedSiteTagsRequest +property ( "n +ListConnectedSiteTagsResponseM +connected_site_tags ( 20.google.analytics.admin.v1alpha.ConnectedSiteTag"¥ +CreateAdSenseLinkRequestA +parent ( B1àAúA+)analyticsadmin.googleapis.com/AdSenseLinkF + adsense_link ( 2+.google.analytics.admin.v1alpha.AdSenseLinkBàA"X +GetAdSenseLinkRequest? +name ( B1àAúA+ +)analyticsadmin.googleapis.com/AdSenseLink"[ +DeleteAdSenseLinkRequest? +name ( B1àAúA+ +)analyticsadmin.googleapis.com/AdSenseLink"ƒ +ListAdSenseLinksRequestA +parent ( B1àAúA+)analyticsadmin.googleapis.com/AdSenseLink + page_size ( + +page_token ( "w +ListAdSenseLinksResponseB + adsense_links ( 2+.google.analytics.admin.v1alpha.AdSenseLink +next_page_token ( "d + FetchConnectedGa4PropertyRequest@ +property ( B.àAúA( +&analyticsadmin.googleapis.com/Property"b +!FetchConnectedGa4PropertyResponse= +property ( B+úA( +&analyticsadmin.googleapis.com/Property"¶ +CreateEventCreateRuleRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/EventCreateRuleO +event_create_rule ( 2/.google.analytics.admin.v1alpha.EventCreateRuleBàA"¥ +UpdateEventCreateRuleRequestO +event_create_rule ( 2/.google.analytics.admin.v1alpha.EventCreateRuleBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"c +DeleteEventCreateRuleRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/EventCreateRule"` +GetEventCreateRuleRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/EventCreateRule"‹ +ListEventCreateRulesRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/EventCreateRule + page_size ( + +page_token ( "„ +ListEventCreateRulesResponseK +event_create_rules ( 2/.google.analytics.admin.v1alpha.EventCreateRule +next_page_token ( "… +CreateRollupPropertyRequestF +rollup_property ( 2(.google.analytics.admin.v1alpha.PropertyBàA +source_properties ( BàA"Á +CreateRollupPropertyResponseA +rollup_property ( 2(.google.analytics.admin.v1alpha.Property^ +rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink"r +"GetRollupPropertySourceLinkRequestL +name ( B>àAúA8 +6analyticsadmin.googleapis.com/RollupPropertySourceLink"§ +$ListRollupPropertySourceLinksRequestN +parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLink + page_size (BàA + +page_token ( BàA"  +%ListRollupPropertySourceLinksResponse^ +rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink +next_page_token ( "Û +%CreateRollupPropertySourceLinkRequestN +parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLinkb +rollup_property_source_link ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLinkBàA"u +%DeleteRollupPropertySourceLinkRequestL +name ( B>àAúA8 +6analyticsadmin.googleapis.com/RollupPropertySourceLink"ý +CreateSubpropertyRequest> +parent ( B.àAúA( +&analyticsadmin.googleapis.com/PropertyB + subproperty ( 2(.google.analytics.admin.v1alpha.PropertyBàA] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"´ +CreateSubpropertyResponse= + subproperty ( 2(.google.analytics.admin.v1alpha.PropertyX +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter"Ò +#CreateSubpropertyEventFilterRequestL +parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"n + GetSubpropertyEventFilterRequestJ +name ( B<àAúA6 +4analyticsadmin.googleapis.com/SubpropertyEventFilter"£ +"ListSubpropertyEventFiltersRequestL +parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter + page_size (BàA + +page_token ( BàA"™ +#ListSubpropertyEventFiltersResponseY +subproperty_event_filters ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter +next_page_token ( "º +#UpdateSubpropertyEventFilterRequest] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"q +#DeleteSubpropertyEventFilterRequestJ +name ( B<àAúA6 +4analyticsadmin.googleapis.com/SubpropertyEventFilter2ñè +AnalyticsAdminService“ + +GetAccount1.google.analytics.admin.v1alpha.GetAccountRequest\'.google.analytics.admin.v1alpha.Account")‚Óä“/v1alpha/{name=accounts/*}ÚAname” + ListAccounts3.google.analytics.admin.v1alpha.ListAccountsRequest4.google.analytics.admin.v1alpha.ListAccountsResponse"‚Óä“/v1alpha/accountsˆ + DeleteAccount4.google.analytics.admin.v1alpha.DeleteAccountRequest.google.protobuf.Empty")‚Óä“*/v1alpha/{name=accounts/*}ÚAname¹ + UpdateAccount4.google.analytics.admin.v1alpha.UpdateAccountRequest\'.google.analytics.admin.v1alpha.Account"I‚Óä“-2"/v1alpha/{account.name=accounts/*}:accountÚAaccount,update_maskÌ +ProvisionAccountTicket=.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest>.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse"3‚Óä“-"(/v1alpha/accounts:provisionAccountTicket:*´ +ListAccountSummaries;.google.analytics.admin.v1alpha.ListAccountSummariesRequest<.google.analytics.admin.v1alpha.ListAccountSummariesResponse"!‚Óä“/v1alpha/accountSummaries˜ + GetProperty2.google.analytics.admin.v1alpha.GetPropertyRequest(.google.analytics.admin.v1alpha.Property"+‚Óä“/v1alpha/{name=properties/*}ÚAnameœ +ListProperties5.google.analytics.admin.v1alpha.ListPropertiesRequest6.google.analytics.admin.v1alpha.ListPropertiesResponse"‚Óä“/v1alpha/properties£ +CreateProperty5.google.analytics.admin.v1alpha.CreatePropertyRequest(.google.analytics.admin.v1alpha.Property"0‚Óä“"/v1alpha/properties:propertyÚApropertyž +DeleteProperty5.google.analytics.admin.v1alpha.DeletePropertyRequest(.google.analytics.admin.v1alpha.Property"+‚Óä“*/v1alpha/{name=properties/*}ÚAnameÁ +UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"N‚Óä“12%/v1alpha/{property.name=properties/*}:propertyÚAproperty,update_maskÙ +CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"Z‚Óä“=",/v1alpha/{parent=properties/*}/firebaseLinks: firebase_linkÚAparent,firebase_link¤ +DeleteFirebaseLink9.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/firebaseLinks/*}ÚAnameÇ +ListFirebaseLinks8.google.analytics.admin.v1alpha.ListFirebaseLinksRequest9.google.analytics.admin.v1alpha.ListFirebaseLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/firebaseLinksÚAparentà +GetGlobalSiteTag7.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest-.google.analytics.admin.v1alpha.GlobalSiteTag"G‚Óä“:8/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}ÚAnameá +CreateGoogleAdsLink:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest-.google.analytics.admin.v1alpha.GoogleAdsLink"_‚Óä“@"-/v1alpha/{parent=properties/*}/googleAdsLinks:google_ads_linkÚAparent,google_ads_linkö +UpdateGoogleAdsLink:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest-.google.analytics.admin.v1alpha.GoogleAdsLink"t‚Óä“P2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:google_ads_linkÚAgoogle_ads_link,update_mask§ +DeleteGoogleAdsLink:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.google.protobuf.Empty"<‚Óä“/*-/v1alpha/{name=properties/*/googleAdsLinks/*}ÚAnameË +ListGoogleAdsLinks9.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest:.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse">‚Óä“/-/v1alpha/{parent=properties/*}/googleAdsLinksÚAparentË +GetDataSharingSettings=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest3.google.analytics.admin.v1alpha.DataSharingSettings"=‚Óä“0./v1alpha/{name=accounts/*/dataSharingSettings}ÚAnameö +GetMeasurementProtocolSecretC.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"V‚Óä“IG/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}ÚAname‰ +ListMeasurementProtocolSecretsE.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestF.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse"X‚Óä“IG/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecretsÚAparent¸ +CreateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"‘‚Óä“f"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretÚA"parent,measurement_protocol_secretÙ +DeleteMeasurementProtocolSecretF.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.google.protobuf.Empty"V‚Óä“I*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}ÚAnameÚ +UpdateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"³‚Óä“‚2c/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretÚA\'measurement_protocol_secret,update_mask÷ +AcknowledgeUserDataCollectionD.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestE.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse"I‚Óä“C">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:*‘ +#GetSKAdNetworkConversionValueSchemaJ.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"\\‚Óä“OM/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}ÚAnameã +&CreateSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"§‚Óä“t"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schemaÚA*parent,skadnetwork_conversion_value_schemaí +&DeleteSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.google.protobuf.Empty"\\‚Óä“O*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}ÚAname +&UpdateSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"Ñ‚Ó䓘2q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schemaÚA/skadnetwork_conversion_value_schema,update_mask¤ +%ListSKAdNetworkConversionValueSchemasL.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequestM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse"^‚Óä“OM/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchemaÚAparentä +SearchChangeHistoryEvents@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestA.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse"B‚Óä“<"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:*Õ +GetGoogleSignalsSettings?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"A‚Óä“42/v1alpha/{name=properties/*/googleSignalsSettings}ÚAname¬ +UpdateGoogleSignalsSettingsB.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"‘‚Óä“e2J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:google_signals_settingsÚA#google_signals_settings,update_maskë +CreateConversionEvent<.google.analytics.admin.v1alpha.CreateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"c‚Óä“C"//v1alpha/{parent=properties/*}/conversionEvents:conversion_eventÚAparent,conversion_event +UpdateConversionEvent<.google.analytics.admin.v1alpha.UpdateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"y‚Óä“T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:conversion_eventÚAconversion_event,update_maskÀ +GetConversionEvent9.google.analytics.admin.v1alpha.GetConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent">‚Óä“1//v1alpha/{name=properties/*/conversionEvents/*}ÚAname­ +DeleteConversionEvent<.google.analytics.admin.v1alpha.DeleteConversionEventRequest.google.protobuf.Empty">‚Óä“1*//v1alpha/{name=properties/*/conversionEvents/*}ÚAnameÓ +ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/conversionEventsÚAparentø + GetDisplayVideo360AdvertiserLinkG.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"L‚Óä“?=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}ÚAname‹ +"ListDisplayVideo360AdvertiserLinksI.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse"N‚Óä“?=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinksÚAparentÆ +#CreateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"“‚Óä“b"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_linkÚA(parent,display_video_360_advertiser_link× +#DeleteDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}ÚAnameî +#UpdateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"»‚Óä“„2_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_linkÚA-display_video_360_advertiser_link,update_mask˜ +(GetDisplayVideo360AdvertiserLinkProposalO.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"T‚Óä“GE/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}ÚAname« +*ListDisplayVideo360AdvertiserLinkProposalsQ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequestR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse"V‚Óä“GE/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposalsÚAparentø ++CreateDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"­‚Óä“s"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposalÚA1parent,display_video_360_advertiser_link_proposalï ++DeleteDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.google.protobuf.Empty"T‚Óä“G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}ÚAname³ +,ApproveDisplayVideo360AdvertiserLinkProposalS.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequestT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse"X‚Óä“R"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:*¡ ++CancelDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"W‚Óä“Q"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:*ë +CreateCustomDimension<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"c‚Óä“C"//v1alpha/{parent=properties/*}/customDimensions:custom_dimensionÚAparent,custom_dimension +UpdateCustomDimension<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"y‚Óä“T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:custom_dimensionÚAcustom_dimension,update_maskÓ +ListCustomDimensions;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/customDimensionsÚAparentº +ArchiveCustomDimension=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.google.protobuf.Empty"I‚Óä“<"7/v1alpha/{name=properties/*/customDimensions/*}:archive:*ÚAnameÀ +GetCustomDimension9.google.analytics.admin.v1alpha.GetCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension">‚Óä“1//v1alpha/{name=properties/*/customDimensions/*}ÚAnameÙ +CreateCustomMetric9.google.analytics.admin.v1alpha.CreateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"Z‚Óä“=",/v1alpha/{parent=properties/*}/customMetrics: custom_metricÚAparent,custom_metricì +UpdateCustomMetric9.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"m‚Óä“K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}: custom_metricÚAcustom_metric,update_maskÇ +ListCustomMetrics8.google.analytics.admin.v1alpha.ListCustomMetricsRequest9.google.analytics.admin.v1alpha.ListCustomMetricsResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/customMetricsÚAparent± +ArchiveCustomMetric:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.google.protobuf.Empty"F‚Óä“9"4/v1alpha/{name=properties/*/customMetrics/*}:archive:*ÚAname´ +GetCustomMetric6.google.analytics.admin.v1alpha.GetCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric";‚Óä“.,/v1alpha/{name=properties/*/customMetrics/*}ÚAnameÕ +GetDataRetentionSettings?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"A‚Óä“42/v1alpha/{name=properties/*/dataRetentionSettings}ÚAname¬ +UpdateDataRetentionSettingsB.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"‘‚Óä“e2J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settingsÚA#data_retention_settings,update_maskÍ +CreateDataStream7.google.analytics.admin.v1alpha.CreateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"T‚Óä“9"*/v1alpha/{parent=properties/*}/dataStreams: data_streamÚAparent,data_streamž +DeleteDataStream7.google.analytics.admin.v1alpha.DeleteDataStreamRequest.google.protobuf.Empty"9‚Óä“,**/v1alpha/{name=properties/*/dataStreams/*}ÚAnameÞ +UpdateDataStream7.google.analytics.admin.v1alpha.UpdateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"e‚Óä“E26/v1alpha/{data_stream.name=properties/*/dataStreams/*}: data_streamÚAdata_stream,update_mask¿ +ListDataStreams6.google.analytics.admin.v1alpha.ListDataStreamsRequest7.google.analytics.admin.v1alpha.ListDataStreamsResponse";‚Óä“,*/v1alpha/{parent=properties/*}/dataStreamsÚAparent¬ + GetDataStream4.google.analytics.admin.v1alpha.GetDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"9‚Óä“,*/v1alpha/{name=properties/*/dataStreams/*}ÚAname¤ + GetAudience2.google.analytics.admin.v1alpha.GetAudienceRequest(.google.analytics.admin.v1alpha.Audience"7‚Óä“*(/v1alpha/{name=properties/*/audiences/*}ÚAname· + ListAudiences4.google.analytics.admin.v1alpha.ListAudiencesRequest5.google.analytics.admin.v1alpha.ListAudiencesResponse"9‚Óä“*(/v1alpha/{parent=properties/*}/audiencesÚAparent¿ +CreateAudience5.google.analytics.admin.v1alpha.CreateAudienceRequest(.google.analytics.admin.v1alpha.Audience"L‚Óä“4"(/v1alpha/{parent=properties/*}/audiences:audienceÚAparent,audienceÍ +UpdateAudience5.google.analytics.admin.v1alpha.UpdateAudienceRequest(.google.analytics.admin.v1alpha.Audience"Z‚Óä“=21/v1alpha/{audience.name=properties/*/audiences/*}:audienceÚAaudience,update_maskž +ArchiveAudience6.google.analytics.admin.v1alpha.ArchiveAudienceRequest.google.protobuf.Empty";‚Óä“5"0/v1alpha/{name=properties/*/audiences/*}:archive:*Ä +GetSearchAds360Link:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"?‚Óä“20/v1alpha/{name=properties/*/searchAds360Links/*}ÚAname× +ListSearchAds360Links<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse"A‚Óä“20/v1alpha/{parent=properties/*}/searchAds360LinksÚAparentõ +CreateSearchAds360Link=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"j‚Óä“G"0/v1alpha/{parent=properties/*}/searchAds360Links:search_ads_360_linkÚAparent,search_ads_360_link° +DeleteSearchAds360Link=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.google.protobuf.Empty"?‚Óä“2*0/v1alpha/{name=properties/*/searchAds360Links/*}ÚAname +UpdateSearchAds360Link=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"ƒ‚Óä“[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:search_ads_360_linkÚAsearch_ads_360_link,update_maskÍ +GetAttributionSettings=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest3.google.analytics.admin.v1alpha.AttributionSettings"?‚Óä“20/v1alpha/{name=properties/*/attributionSettings}ÚAname› +UpdateAttributionSettings@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest3.google.analytics.admin.v1alpha.AttributionSettings"†‚Óä“]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:attribution_settingsÚA attribution_settings,update_maskð +RunAccessReport6.google.analytics.admin.v1alpha.RunAccessReportRequest7.google.analytics.admin.v1alpha.RunAccessReportResponse"l‚Óä“f"./v1alpha/{entity=properties/*}:runAccessReport:*Z1",/v1alpha/{entity=accounts/*}:runAccessReport:*Ÿ +CreateAccessBinding:.google.analytics.admin.v1alpha.CreateAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"œ‚Óä“~"+/v1alpha/{parent=accounts/*}/accessBindings:access_bindingZ?"-/v1alpha/{parent=properties/*}/accessBindings:access_bindingÚAparent,access_bindingç +GetAccessBinding7.google.analytics.admin.v1alpha.GetAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"k‚Óä“^+/v1alpha/{name=accounts/*/accessBindings/*}Z/-/v1alpha/{name=properties/*/accessBindings/*}ÚAname· +UpdateAccessBinding:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"´‚Óä“œ2:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:access_bindingZN2"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:* +BatchGetAccessBindings=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse"v‚Óä“p4/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ86/v1alpha/{parent=properties/*}/accessBindings:batchGet¥ +BatchUpdateAccessBindings@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequestA.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse"‚‚Óä“|"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:*Z>"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:*ú +BatchDeleteAccessBindings@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.google.protobuf.Empty"‚‚Óä“|"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:*Z>"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:*À +GetExpandedDataSet9.google.analytics.admin.v1alpha.GetExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet">‚Óä“1//v1alpha/{name=properties/*/expandedDataSets/*}ÚAnameÓ +ListExpandedDataSets;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/expandedDataSetsÚAparentí +CreateExpandedDataSet<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet"e‚Óä“D"//v1alpha/{parent=properties/*}/expandedDataSets:expanded_data_setÚAparent,expanded_data_set„ +UpdateExpandedDataSet<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet"|‚Óä“V2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:expanded_data_setÚAexpanded_data_set,update_mask­ +DeleteExpandedDataSet<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.google.protobuf.Empty">‚Óä“1*//v1alpha/{name=properties/*/expandedDataSets/*}ÚAname´ +GetChannelGroup6.google.analytics.admin.v1alpha.GetChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup";‚Óä“.,/v1alpha/{name=properties/*/channelGroups/*}ÚAnameÇ +ListChannelGroups8.google.analytics.admin.v1alpha.ListChannelGroupsRequest9.google.analytics.admin.v1alpha.ListChannelGroupsResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/channelGroupsÚAparentÙ +CreateChannelGroup9.google.analytics.admin.v1alpha.CreateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"Z‚Óä“=",/v1alpha/{parent=properties/*}/channelGroups: channel_groupÚAparent,channel_groupì +UpdateChannelGroup9.google.analytics.admin.v1alpha.UpdateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"m‚Óä“K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}: channel_groupÚAchannel_group,update_mask¤ +DeleteChannelGroup9.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/channelGroups/*}ÚAnameþ +"SetAutomatedGa4ConfigurationOptOutI.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequestJ.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse"A‚Óä“;"6/v1alpha/properties:setAutomatedGa4ConfigurationOptOut:*† +$FetchAutomatedGa4ConfigurationOptOutK.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse"C‚Óä“="8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:*´ +GetBigQueryLink6.google.analytics.admin.v1alpha.GetBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink";‚Óä“.,/v1alpha/{name=properties/*/bigQueryLinks/*}ÚAnameÇ +ListBigQueryLinks8.google.analytics.admin.v1alpha.ListBigQueryLinksRequest9.google.analytics.admin.v1alpha.ListBigQueryLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/bigQueryLinksÚAparentû +GetEnhancedMeasurementSettingsE.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"U‚Óä“HF/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}ÚAnameå +!UpdateEnhancedMeasurementSettingsH.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"¸‚Óä“…2d/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:enhanced_measurement_settingsÚA)enhanced_measurement_settings,update_maskÎ +CreateConnectedSiteTag=.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest>.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse"5‚Óä“/"*/v1alpha/properties:createConnectedSiteTag:*¦ +DeleteConnectedSiteTag=.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.google.protobuf.Empty"5‚Óä“/"*/v1alpha/properties:deleteConnectedSiteTag:*Ê +ListConnectedSiteTags<.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest=.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse"4‚Óä“.")/v1alpha/properties:listConnectedSiteTags:*× +FetchConnectedGa4Property@.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequestA.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse"5‚Óä“/-/v1alpha/properties:fetchConnectedGa4Property° +GetAdSenseLink5.google.analytics.admin.v1alpha.GetAdSenseLinkRequest+.google.analytics.admin.v1alpha.AdSenseLink":‚Óä“-+/v1alpha/{name=properties/*/adSenseLinks/*}ÚAnameÓ +CreateAdSenseLink8.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest+.google.analytics.admin.v1alpha.AdSenseLink"W‚Óä“;"+/v1alpha/{parent=properties/*}/adSenseLinks: adsense_linkÚAparent,adsense_link¡ +DeleteAdSenseLink8.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.google.protobuf.Empty":‚Óä“-*+/v1alpha/{name=properties/*/adSenseLinks/*}ÚAnameà +ListAdSenseLinks7.google.analytics.admin.v1alpha.ListAdSenseLinksRequest8.google.analytics.admin.v1alpha.ListAdSenseLinksResponse"<‚Óä“-+/v1alpha/{parent=properties/*}/adSenseLinksÚAparentÎ +GetEventCreateRule9.google.analytics.admin.v1alpha.GetEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"L‚Óä“?=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameá +ListEventCreateRules;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse"N‚Óä“?=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRulesÚAparentû +CreateEventCreateRule<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"s‚Óä“R"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:event_create_ruleÚAparent,event_create_rule“ +UpdateEventCreateRule<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"Š‚Óä“d2O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:event_create_ruleÚAevent_create_rule,update_mask» +DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameº +UpdateDataRedactionSettingsB.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"Ÿ‚Óä“s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:data_redaction_settingsÚA#data_redaction_settings,update_maskã +GetDataRedactionSettings?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"O‚Óä“B@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}ÚAnameÆ +CreateRollupProperty;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse"3‚Óä“-"(/v1alpha/properties:createRollupProperty:*ä +GetRollupPropertySourceLinkB.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"G‚Óä“:8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAname÷ +ListRollupPropertySourceLinksD.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestE.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse"I‚Óä“:8/v1alpha/{parent=properties/*}/rollupPropertySourceLinksÚAparent¦ +CreateRollupPropertySourceLinkE.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"‚‚Óä“W"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:rollup_property_source_linkÚA"parent,rollup_property_source_linkÈ +DeleteRollupPropertySourceLinkE.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.google.protobuf.Empty"G‚Óä“:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAnameº +CreateSubproperty8.google.analytics.admin.v1alpha.CreateSubpropertyRequest9.google.analytics.admin.v1alpha.CreateSubpropertyResponse"0‚Óä“*"%/v1alpha/properties:createSubproperty:* +DeleteSubpropertyEventFilterC.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.google.protobuf.Empty"E‚Óä“8*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}ÚAname— +CreateSubpropertyEventFilterC.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest6.google.analytics.admin.v1alpha.SubpropertyEventFilter"z‚Óä“R"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:subproperty_event_filterÚAparent,subproperty_event_filterüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{ +"com.google.analytics.admin.v1alphaBAnalyticsAdminProtoPZ>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php new file mode 100644 index 0000000000000000000000000000000000000000..3a94ac8194dd576ddee1f7860580341096b14f0a GIT binary patch literal 5535 zcmcIo&3D^W7O(9%#Mh1+6lfh62GvuhDMM{A91bU?fNU#?i@$0+O_?!ADAKc|b7V$LX8fWTh+N|QI`|juOe!WjVa}FK& zqqsvX;;KH;#e-wfKO~~#+PS%{C8A&0Nkwlq{9=tD6CU*cdQ}sMi3Yfw7AmX1hJ1`AR^n4Wsi#H5UF)YJ3RMYql zExId?RnsGQ`7G^tW@)}*TOz&CMfEmsiJT{;z2VsCfxBX;R*yOb9WrWKK5jFNXn-<^@TbWwDPKXa`+OmE8IB>HbO z&uNY^+BS%(*T|uIWZ3T3))T9qFgfpPp9GOy_*UeO#tgB8UYswGdGYqAM&L6^*CQ8g zBcwJXqo|2D;U90q?f(l)!XG$!If7o9L9ZM@uecGibBu}`Sjk~n46arfC^51XJuroT zFa0MAZ-roM7*k?-XlB<%yt;;l+9M1E0;?YWv?j`!9TbvcVl!K9mH)R|rb4D2UGW_fsoWM!{2 z=*jiwc2jPwT@o^omLE#>;aWnt4B48z)9ehC{pN6YEh(%*M(#9%pD7^+EA?(?C?Un# z5~beWYqgZVydyvCt)+{fLoNvoK>1;6IZ%;4{`yB9#CV2*CC5B z`{+Z3+fE~!!c4gWIo-yVK!S71A+dX@mW7OM1&76-ldyUUkr=d$jj?5wjG-i7-M?te zPDv*nro&J-IIpo88WwAm87US{P)EX-ggql;N(_ z!4R)OZl^CxL%GjSmWsb8VD(gnVF84(YfocQcp1hB8m#zsETk_(NG%6IF*0VAy!5vO ztcPV|?L7{kUUzPkV01 zpq2!Rdf2HI)E7f=rk8!Ts3*?p`6%WK$nh|9s1$hb`e0GUF*IRiT81SGj*<^=oEK0U z17QdP7Z-CGFQ3`!bNj6HO9EaC#SVbq;Y3*uhhvtr!Xe}% z7M@QW51Vodr^PSAd*=+X(X==?W!{a1rl&iwuGtn2$SNJLB5(0Lf0noAf`*Ty&kgqwk)?mf9K^v=H`SR(gfqO=D2OH<$JwBX=Bv`8X2+$JTlScMLRHJ&C=@MRMUQ!+guu6JlSQHs%B z#VgQcNr#XZHsPA8dvt^GY<#{jzGK6#LM#=hWu5gfmbNME^{c$SVe_P6VGB{Vx^ND} zoy{ws30KJ@&79Hs=ZTV2TPJLl%2&4+4P=B_Ipi1C*fw&b($c~{KG#)3EroZm7h%YKgLswi zga40DDr)eEhKJ$5C-3|kn|QekSQ{7KhU<}0+szi;2L^RqC!Sg){tTm=^Xcfy*z70+ zsVyt=1GEFpyA8LVO+3JD1RaRG$hqWFz2C)^MZ#?}pdPHHYBMOI8=e8G+G^;g9(~;F zCI0fMX4*47yha^4vCq6}qLZVCP5MIV9Nb|sa1IWZS?B-YX7sG}E`QmJJp`Wn2*@b; KQ{4%i0Q?tE9~gQ7 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php new file mode 100644 index 0000000000000000000000000000000000000000..fd598deea7fe53be1dc3ac7e8bdd046ca157b7b6 GIT binary patch literal 2398 zcmb_e&2HO95VkB?utu`#FhJnAMX^-^L@81UQEqaal(J}9fPVy=PMtyku_9N}0u)J* zOQULPpqF0z2z`Ox`#d@K);H+>P&5rC4P3_;ORL#$zM1)EW?#MzrU5)cJ>roNGvc7p z9I+`uLFhBz_FXiJ$72#A+n)v0C1C@h?g=_RF_F>jo8R!OkspUPX`_knPh8T(9(L!9 z+EEibGwL-jpJO+e;-)>to=04368dq_knjK=o{=cPHbK2X=ZG-uV1|c1i8Ry~NJCv9 z4c|Q11=0?H?cyjxdkV290O1`V{ujg}m)a;|m@`0+X=G84GKyXLGY@SSjj1bsn|seY6FoSo|$3aVvYHzUs6A8 zx38nR2Km_4Q<9YQgSTWVzI#QJz;(w-+dnDAAis{L62Eh`Pqiq}ZHfQ^WS)SFmid9byLa`kfSb>qK1HI|_oXA(!@ z9;|3@p-Mf=r4d^|=l?f!-#g?uDfBkLSQOF{jk1;Fu%%A%y}tThU)%nD6)IUK+6Z8V znLV}GJW$5fR{xISHI4+L$pJfg?pM=b?Gn2&k=ZNBv)XStD5YlFHas}e&AkK5d^<3# z^W(FDvDe@48{N$ntpsbvg}!HQ=Cm)M+%bCn<1_1rzIm{@s%=2YIPNB2^I8Sg_fC#Y zom*@cg!TUU;h}YE^o)za<{IZw9q6ZKUr*19+mE1qA_9J4--_S#Lt2H2CAOV zERxdSQc`?*7si}z7m7*O6r{9Ux5qnJ=@g+LnALuP8?#%f{bq)EyK2f~CKy%7a_dgf z)PBuDMeYnf3r=H~Xb+*{&?s>6Jlkec?&koRT&g--Wc z;aq8$3%l$j>xL^-mbj!Hz=m9{V#0+ytgQkUeYy4QQtphBQwh(W9kuS zYmNI}7eD6P&fhwQZ_}}?rm`BLIG|C3zZ04_LVLkieLzA+Nz{Coe4bw|o&(Z5|H00_ z4z4GRB-O^Gm*ekdK_!rDD5~u(G literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php new file mode 100644 index 0000000000000000000000000000000000000000..0de4d453c68a1e2cf4d20dd1071c3caf37718178 GIT binary patch literal 1966 zcmbVNO>f&q5UniRvBr)~Z_!jvQg^EaumUs^oZjR*EiKUs0b624I&A`>#EM)=3s59M zE)A%Gjy?3+|Iz={bN@hZMVFsatE5exBf9k^{+@&rJ2&Xn4%`u-+ z><1qAEYHECXgsC?w!E3o92zt*?(}i5Z(yaP8lQ>K(2D|#w(!LBCJt>9mpF6ItguP! z8FQPrr^NB6q)Bh7%S|hw;uMp(wn=Tq8_6*ME}7BLCl zgjB$+`;H^m;>>e#9ME?yT7QC5%-Hv_?}@~m`jhO~7>}SHt&u#(Jc#J(=@GRp}l2OOL zpi^?oyr9)u-f9W*uFwI^3jEfnBo$Aev+UxsZ5Q{v6mqE-%wnD=@OuSX|6eEQIE`%- z8fzpPYh)U`f0SeUtQlmyQ;F47IMhfWWF{(f9mR_9TyzgAer~LmaH(FoDE}&Npoef! z*v(twM6|k5?ACrR!@-K?29ZP2A#BDPUV@a-F&x@7;+i{PR5<*MwVB=1$sqWJ>!O?xnRdEzh5u#TCNpreME=dhlUkGiO;6!s^!h z9jfJ-%G1~Ssq~xtV+o!X~#l+s3Oa(1RxM_KU?#VbAjZB@bUpRl6&;F-<VO<&Ayrus|oIbxzLCd!*g!^uENSp*IOERwF~t8#=5?UFu8)x56s5 z$K0)6KBbO7qE+^*PhFeYrcDJkLnd?;0>GtX7W&j;Is@rmuSY1 zPwNux0Kjr+7?O63+QKszOu!o;_~%dh4!1}sC=wwLd1!K%3r-#W8)kS&2Gj`|VqD)l zn7EeUo=fC`bJt>($0Wj(dms89Dso5?c3mkF3S@L#!2+aev{+~b+!tQZ#jUm4kcm`U z`K9tW4lCjKfK(!mwc0h3heQMuwium|fQd=q9w^=tV3z(eR%z#RVQwZ)I;QIlclj@J3e0%9-)sR zA3Hp<;5RpdJlSaEVN3EW|B-fKjt2qOR+&?+WVFxWj*Wc;ZR@$}SXkUjJe8A> zV}{q=ikEWpB@XxI2e0K`%wzENQN2WeG~tl&eE4dYzSOq%WsKU z<98?{WWp+qd$r#;K3)phl>@w+`RSSEcoRE0Ex8T7YcCn(ojhh#I)48k{@>3l8NPm$ XPOh(_>Af)Q-#O^j&S)IZUn_z)O5t;G}*lr&-&2^(?G*9|gy|->O zj;+@Ei}#FX=g3&^nqpvYjgw}qWgMHmj!`!go0Uw->>CZEZ|rSyDtod+Wltt5d(YmJ ziOLhk>P@59OH>_d>@$|Y|2l*Hrd3b$`UaLxyl(Y$t7Y{qqiKByd-^bOU^IIsW}hE> zFlg2LR=bs;32LiuK6scAG->SXoi=3fVZ!07LSlhP_6n`O*#(n(IkQ*qTAhBoTfxwD z`q1pV!lWk;9@@(iIqM+tK=7DOpJVdFM87*Qy{jh@U9&&vww`dliNLA*uf6G|wkHo7 zmWi#U)5A>;XqyL$m%FxAn>>1VmRRI^|SedG875_RY9bd65O?Dm3}O)UrB|~s|$_N4@sqj zZ&*o(%rQxC^g34@9jC3EP#t^j`(bl!{m{wX=snY!ci)-UvDObr4fK6m4{XABJOdnO zX1{Xga?b|uu-(SMbr z(ihl*y;&k0pTV1j)QWvlf&^AwbM?rbHRxcMrp{+Yr<-+$U2RysPSZHiIUAQ8HfE&j zY@ur&!dL3`cEgO%(i`apyV5Y5Ca#Y7WjvVUYp0){$xqlDu1*M*5CSwhR&Nd0$-1*) z$q+m5t$$|!>oob-vuqAJ4$bbL1W6>%79mUiTJN89%=i-4UP?W3Wa6$os*P(7%^Kzq zr?Y<9PAMgvh*!2Gq$y71I=kF4y3k#Ig#2)4CBMMASc$h8X^UO6T8%-k-#yXmILO0x z_k>G%DfMpHP7C(LtUXV<#pX#5^zXD=X8a1Bomk{1TdWVd;Hr*A=v?RModgN@%R8g)@+aoLj#I=h z?soVYE~LI3c7{VDYdhw?#tG1~{7ce4yA8+JZCec;7r+Q{I@^WRM;9QD%atH+m))I^L2j>`MUN zw_zR_gJxeJbgekw%!l3qhxf?s8|GI zyDgV-+qt?9Mpg@wF9*mrR z*v596S!4?yqfY)~gk9aR&#!2;o(J7qxGk~Dx6Jy;6#(V(-tW`hLFvYsY_QeI+Z*BM zaqtEmog<#HMdzp9#P8GOpGMf?X0yF-G&QSl){Mh3+v>F}1ft$;rQ2t6lf6Be!BNs5 z26H&}2-Xk1oF#u01+P4TlpDQqM-YdwaizA8%`Ryyw<8e>+-FkVXz9n`7?x3QB4_IN z;^ZJiR3m-F?i!7rPVsgdxu5kNWSfYF%$Bj=MEo<(DP)iaJ~NsF)9-tPr@m+)C;V^d ztR%b1m8#v<&11uA>PDl1xV0CbcYR9w=u9?4PiRD-?+2fd2<>dCLy5$1EZMWw=s#xI zb#7}%M%QW`A~WmbKfNGjdYir06QlG`tp1U1)9MX6op!hHN}F8GoRng#L4$!2ScfgM zq4$iY*>mU6Vb4kLur~tdv`&1(`O!;{*y};VA&ADH-X9XD zEhT-(<{ZB5+xYFD$q%Lu0{u}2m#38VCn%(P7fev3B{yFnO`NAR@lI(NK42ppqti?n zdSK${&n?7R^V|ZjdVHS#f?U(k4@T2}966K!Ai};hS^DD{IkLq$?M1ro35iDc1W)35 zr-LrvFw%C~@oDncFR_HSB{#}u|C4t2dA8kp0b_$t=I&OjAHnklxtI#O-f8#x`v`*I zV_J>&Cpu+CB%X!TTBxqtQ+N1GCsjK~5iD`3UYMd(VmJNl^^dxy$?u|zle>>xq0?zn zdgsVT9D0vmS##;1;K2VX!k$h(@K8a&xahg}LXK|zv)*%~(GrJyj(few&-XO>n-R8D z895WmoX>AI!d+2l=Iqm=o&=c8e;mM#`2FSHETlSf$)848?A&y}gW!QUqE>cbwM^Uk zX!>marSC=}(gwR)ZyR0Y07JuEO1&MXlvzH9>%Gv(99t4N*)a~E?poUwhhiiOp=%{E ziClfN4J+}+ICB*F>O=06|B1+VWEM6j)*eN&W+;^aoUer7ZqElx5lR;& z^AQrv$Xp>Ca*L7tjPur=E8fzD9LY!VHY2f^?ps(qbEj}-eB(G7-#Gp(`Mnt?5f*-E z<}JjM-4nijiLn_crIXeXXYvsO_7J{hLez$Ph#7Uz5`dPtFCK;+yG%1E>y_dxHUMIy z3mQD+5IJ73}7Iv&UC*{}``wbuox~Ct9tv9l1@gw;|iCqtPF2&fK1C)x3 zRZ6qVU=RM8pZZd2HEcO-52N}1EOyJG259!64P;30ZadjR7_9&n*G8UI?V^%&#BRDv z83z!Uvl8jsLh2W{(#k(Avzx&@q=yk2IgEwW-dkZCwBsS5LtpWPG(zzngiXf9%i&ba zR@mZ55@^F!p^n3wY=TUlE&I{{4m&QS-U;Jn)0=XD(#Pz!lLR2DM=6hRd+vWZShG22N#K>1tjRR`^UVKvOQ{`mcOk+mR-=v!n=lmqjGX(9Dt*cv$jn?EBuAS1g} zC=T>qk6cCKcp*7voez;}wlh zMedD>wyMd%3WrElT;ha6oh{EeInssQYV3y5$IkZ$qg%bfX@%Ys@^G$aqeXTNpgw?W zWaffFAVxPi#ZWa=Mhm<4xq7RI@mriysGlN->lCpCnSJZ<+XE9-7B2VO(~-$ohhL*f zw#*ysp4kHBI`-zZ4%b!1IoVL$T(OCG%)=wWp%OO4O*&MGwkk$_{*F?=uPKzLx2U+ zM{g~;J7}8mdz?(TJ`S4~s+g94DZ_^GPV!%(?B2u+At)_fVT+!-$A!~*o$_@gaqf)* zujnb!QmAMb2|^G`5x<-dLWc`omiSuhO( z!NO^ze-~-#??l*>$!Y0iDStdBC!KUx6V7kTcWh8_n*81@dt>6-&h2~AlWwq=$sXKL z0QCl=Kj`TV^hjCFo*nLnUaw>z4htHmkP`&xfTGd_ed1t~78f8etR54pe$rF6(nD2?TNsiGpQ{U1 zyL9(VZnI(QQ((8ixnmhq%Sa}PRknaz6jD-|Z|QNpBP(pLe8wGmsQL5uv< zQtAsAB7&XMT&@IZ^Gx1nk0*<2lm(|G`gX9u1Onm{MDizO4x<@wkZ@jMOXxg9TOom2 z9F!F%fliGX>VoqZirkQL2IwLBPDGD0W#Mjc5RtYa@j6f=uKP==r(weK@ww*a=o(SU zIJ`V$FC+XinoU$?sDSJ%w{tX#n_nbZL4%2t=yM{{eReljC@E#G_F7gw*IzQvW*r@$ zW0$ryr5c-&@UKEmDaE4GX}C|`<1~D97-=|vGK4fvlmBp;T@_*xFvI`b*?oh>yh-W+ z{@p&tuS|E0g5NbymbwiZr28|H>L>=?z)RtMZe9t1BH=BgDsjNEUwV!{Qyaw*F!>x{ z>!p-@A)bNr+N8uAwp~@ARyDZJ0{x%2W$7xL(`x8XlB+p* zPW;MlSF1`nyDKznLs4q6C~5OTQPEYZyh4bv1#AcW-1+KH^uACd-LmGHW2~DT>QARM) zuSZZaUkpi9%Y<7)S>uJ(KjFFDT=MrL?ArPHN%l$=3WJLqH+XKlD)WDgsvZ=nwxjAL zwOq?(RS|8S9A4*(8>&Jei3BcuN9fra>;Qd58Mpf}s?=brk$ zeYksjVW%6g{+c{o2zR{QV!*?eqP>c@72x|3_9pN831>b~9nu428*xjy4 zjZ+kjdJ)}Y^m;e#IH&Y^IH)>gJt8X+QE>_UMufdi*EjV(drpU&0YG4CY84gx0zZE=6lZIt}y2zxN?38HfLWjXt`?SfX|*5-+!dDNg6Rdp*PXSej7 zLOG}I_-=wPvBwvh{UvzGU9#IRvoBm|;^TM4%$el>L|8Ih7o_)DO0DG);9qb@DYiD{ zJcp$Sdh({7gGvV%z{~~ad|=OsCec%PXRH!RZ?nC(s!Bzz^2A53;RefW^FuAEIi=`3 zxrgkHicIar<(#foH{~*}yKG)AmzAQ%uQEMXE#P9qSv_E{j~`l;aT#Wdh3pnC|A|C5 z3RQO~!EuQRL!-NH+0BsjewSg@+rv2$&+$ zJ$7g8W+B`-yAi}QVtC_B{w53QuJrgU=lYQz1}9z~r|Aq${ujEUQEo>&Z3azXaIFaG zF3~m5@0od&76LwSSY)%^Hri2f>qj5Vr+*JnOXlO0DD3kPn1L;u+-Kr}=pbT~wu?Q86o4WJ6qxc~_Nl#OGQGx)OPI=-gS{UfL~Vm|#_ zu+Z;D*awqQoJj|<6>NJH1ZhFvl&m`?WKS0AI-Lw}E^OiB5wqcZjNu1v+^>A-bIr?r zgX^*jf6h>6xSc5ZD!@TH0~HXT4xnSqt~NVoB$VeNd(|g7{rpg&PB>2g(C6lfXiA(< z|LU3iD`99E1$R}45l1MJa#0DB?9Y)&{y4%GJeB1jY2e!}gPQ`(9T6?Qlyv1fEAE_! zlNH5F|Gi+gjbU+{Jh`VleoEcn@hS{;(5X1h^88OP5Ktb(FTi>6Cl`2~h`yxtGW@sD z?Vm*0`;%E7yIv`ne{v*2{9!ZVmCK86^F|ed)73j;C#K@#UakJwC48*r|IGDOb`O#H zHlT}LJuBCgO%?w*mo&@UHMOMH5YZvfK=hN@)(~T9_=*hipFO`I7xj`{-BM~A!VLf~ z8-=nAoE%sV((b$>7i;;fTvY^~Q&Y0}vRYI(cM*93>#0@cXG#&V6+jvuK?BKIVYlRJ zO)P?ZT&dRNLYYvd7~M2dMgd#9oP~`-jo1OkgD@w9oI^}10;L2F04yrTB*69?D!_bV z8Nq3JE4Dz3ZOSEpLsu!i&#ReCL9wSQ1;Vgmi-Zy60X^|~o4~9P)GpC71>&fz)cA`U z#bRnHwoHr_2ye5DcrWLPvN(esL;RuEMZi<+7( zD7D?#b*e2?AXNSofp$qQYOx#AGF!kmfkhpt6OJu*Qv$S9RW=kt(v;XO4ugRL{kTm6 z)+n6RVsTpLt7^uUYHk~cPQ{8l1jK21wNgRdBet@7z^-bZPm?LS1or!^fVxK!shvL` zz-v3Yl*@8)w^qn%_-GOP5Fp<$_#D1Q`&Dda^{Z@Nc6)N^z_T^A8ibrV=yQZ`W>+Kp znX8$$U7@YTqN^3gKnw5&Z-AwbAhSGy3Bci?o>_y`1Kej6fy77ZkM7jeYDF=$* zpJjIf`%U=@NG~Y#-&FK`K?B>nIxs-MNsv+Sl5&<;mars*U8w?X2b_d8udzj>Hwq;p zIuv6IW&o{o1d0TKKfFTUb=nWL!Y1Sl87no)*ECoJ)WnlR2+)3>0DdnVi$!Z{RxM&8 z_Fscp&@`C8TGHJ@01N{h*-r(Q2?N36JTV!9Z0_QV(i`m6TtTZ8wv;z+~VHl`@`XIfOgJuw7ztj}UUUa=9<>5Q6y{8o6?C z3Oj0b%bU_YlZ(K3wQOD~$*~oJ46z}UUF`F|O9~-x=Y+k!%z38DqArwFuWlEW*uB*r zlSXS`ybOn2*sm4j5`119w&fe8l;up38^C$J!YPTDGpj#{Aamp$#&$6c_z~6Z2=n$) zg#KYue!TxYf6h4jzufKs6O5rox$baeWc4$4&s*$1S8JEvWsgWrTt&hS1s@APhl(zg z3qH@!B8f*0Re7h3n-*#WkOHG1(@W&op!)DE1aIIK+`dY#Ep~bJ z*YFLB6Blu3M(}~{k%GJz)MxayTFv2pukJ!l=ca1g8D}uO8%)#rB`8qX?%zCbi|P*6hKCrLQ^Mcb+NPTUWo};5 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/SubpropertyEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/SubpropertyEventFilter.php new file mode 100644 index 0000000000000000000000000000000000000000..e31511a976f64955e778dbfcc70fb91ebcf8dba5 GIT binary patch literal 2654 zcmb_e-EJF26wW$7B*$s$tRM|3DuWxTDFRzHTsck4+TJ9V9LGwW5{ji|ydK*lZFW{W zvk{^41wu$%@DMx$7l<2fc#>Z84oJ-GpPj~`Qc~ZncjwG^zVn@PX3o>+-q3@GXpgwW z$Aa`w_X3F_L7vY9vzddsLBCIYWV17mI>av^R69h?!!|N&_4X%nD`$aklQJ4GHgHH0 zyV$u9)aFIpJELy#{0VlvAujTuD=|IdiwldK6IWP$>IexKdIE6q8Q~tb3EFE_4v4@# zEO2Kp1nn3JXva{Xofl6G1-cDjJD78HJO(!v_HGCbuK>xP7jzwJBQCI{g*GX-s7nRK z4*fyKyMy}J;Y31Rwe1J4Ehux5+HmOFWa}}CFqQ45$D}?xC?VNWl1aHbbyvnE8Fy-g z+dlOK^IOuiTpkdS3a!3uJ&xTfINC>B5yx`*3dtQL{D4e)N6054@ZIf@w*nZY|2oqo z^k`?75~o)oLwrt|UoMZM8iQQ7^@zlIp1LcP;`3)T4&3PV(l})*$X3cs@q7fo-G!Z7 zm5cr$+FnSjtq@jQA+ENK4-kpH1N{?h3~tXjHV)%{_p=%9N#gVqKFymMXKajm*ZM z8CagQ)fvDU7WU8*7hYt!QhM<&*%S^Gd|RT240Ijl&#@DbP?Ct1ejiqB%!$Q`%cXqh zWL?R!s5WT%pEX!YG4u^sJ22YSeXIRV%d}3K$1Ss3->sXq+>E{i^X92hZRa%oE@Ug_ zUcGs2eO+(w=Q8>oSTdWn_;prahQ;b(vu#L=+?=xBJ!v$oBXiF@ZRO@A$(5FI)UF%p zw}r|w0CP#4xBOojxaQ0-zxQOla8(4Su*iIC;IqIBlaMXdZYJ#*vq8C#34RGHE)y0> zeT8ynOJCgaVp zxm0sjw#}`htt`lj@VF_j>_xkuynBSlIMbq?72UcPoBHg(xMV0!ex6wRFd-)IT zALDlozDzHH=njYuW9(60kW)+XnwaV_Yf5google.analytics.admin.v1alpha.AccessBetweenFilter + */ +class AccessBetweenFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + protected $from_value = null; + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + protected $to_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\NumericValue $from_value + * Begins with this number. + * @type \Google\Analytics\Admin\V1alpha\NumericValue $to_value + * Ends with this number. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * @return \Google\Analytics\Admin\V1alpha\NumericValue|null + */ + public function getFromValue() + { + return $this->from_value; + } + + public function hasFromValue() + { + return isset($this->from_value); + } + + public function clearFromValue() + { + unset($this->from_value); + } + + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * @param \Google\Analytics\Admin\V1alpha\NumericValue $var + * @return $this + */ + public function setFromValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); + $this->from_value = $var; + + return $this; + } + + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * @return \Google\Analytics\Admin\V1alpha\NumericValue|null + */ + public function getToValue() + { + return $this->to_value; + } + + public function hasToValue() + { + return isset($this->to_value); + } + + public function clearToValue() + { + unset($this->to_value); + } + + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * @param \Google\Analytics\Admin\V1alpha\NumericValue $var + * @return $this + */ + public function setToValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); + $this->to_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php new file mode 100644 index 000000000000..bd42946d1eaf --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php @@ -0,0 +1,198 @@ +google.analytics.admin.v1alpha.AccessBinding + */ +class AccessBinding extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this binding. + * Format: accounts/{account}/accessBindings/{access_binding} or + * properties/{property}/accessBindings/{access_binding} + * Example: + * "accounts/100/accessBindings/200" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * A list of roles for to grant to the parent resource. + * Valid values: + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data + * For users, if an empty list of roles is set, this AccessBinding will be + * deleted. + * + * Generated from protobuf field repeated string roles = 3; + */ + private $roles; + protected $access_target; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $user + * If set, the email address of the user to set roles for. + * Format: "someuser@gmail.com" + * @type string $name + * Output only. Resource name of this binding. + * Format: accounts/{account}/accessBindings/{access_binding} or + * properties/{property}/accessBindings/{access_binding} + * Example: + * "accounts/100/accessBindings/200" + * @type array|\Google\Protobuf\Internal\RepeatedField $roles + * A list of roles for to grant to the parent resource. + * Valid values: + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data + * For users, if an empty list of roles is set, this AccessBinding will be + * deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * If set, the email address of the user to set roles for. + * Format: "someuser@gmail.com" + * + * Generated from protobuf field string user = 2; + * @return string + */ + public function getUser() + { + return $this->readOneof(2); + } + + public function hasUser() + { + return $this->hasOneof(2); + } + + /** + * If set, the email address of the user to set roles for. + * Format: "someuser@gmail.com" + * + * Generated from protobuf field string user = 2; + * @param string $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Output only. Resource name of this binding. + * Format: accounts/{account}/accessBindings/{access_binding} or + * properties/{property}/accessBindings/{access_binding} + * Example: + * "accounts/100/accessBindings/200" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this binding. + * Format: accounts/{account}/accessBindings/{access_binding} or + * properties/{property}/accessBindings/{access_binding} + * Example: + * "accounts/100/accessBindings/200" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * A list of roles for to grant to the parent resource. + * Valid values: + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data + * For users, if an empty list of roles is set, this AccessBinding will be + * deleted. + * + * Generated from protobuf field repeated string roles = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * A list of roles for to grant to the parent resource. + * Valid values: + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data + * For users, if an empty list of roles is set, this AccessBinding will be + * deleted. + * + * Generated from protobuf field repeated string roles = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->roles = $arr; + + return $this; + } + + /** + * @return string + */ + public function getAccessTarget() + { + return $this->whichOneof("access_target"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php new file mode 100644 index 000000000000..d0e653ce6bc2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.AccessDateRange + */ +class AccessDateRange extends \Google\Protobuf\Internal\Message +{ + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * + * Generated from protobuf field string start_date = 1; + */ + protected $start_date = ''; + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * + * Generated from protobuf field string end_date = 2; + */ + protected $end_date = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $start_date + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * @type string $end_date + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * + * Generated from protobuf field string start_date = 1; + * @return string + */ + public function getStartDate() + { + return $this->start_date; + } + + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * + * Generated from protobuf field string start_date = 1; + * @param string $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkString($var, True); + $this->start_date = $var; + + return $this; + } + + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * + * Generated from protobuf field string end_date = 2; + * @return string + */ + public function getEndDate() + { + return $this->end_date; + } + + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * + * Generated from protobuf field string end_date = 2; + * @param string $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkString($var, True); + $this->end_date = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php new file mode 100644 index 000000000000..44449e85e67d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php @@ -0,0 +1,81 @@ +google.analytics.admin.v1alpha.AccessDimension + */ +class AccessDimension extends \Google\Protobuf\Internal\Message +{ + /** + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php new file mode 100644 index 000000000000..be9a5f3aee35 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php @@ -0,0 +1,70 @@ +google.analytics.admin.v1alpha.AccessDimensionHeader + */ +class AccessDimensionHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension's name; for example 'userEmail'. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * The dimension's name; for example 'userEmail'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The dimension's name; for example 'userEmail'. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * The dimension's name; for example 'userEmail'. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php new file mode 100644 index 000000000000..d68f8597b18e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.AccessDimensionValue + */ +class AccessDimensionValue extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php new file mode 100644 index 000000000000..82da5e23d402 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php @@ -0,0 +1,208 @@ +google.analytics.admin.v1alpha.AccessFilter + */ +class AccessFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension name or metric name. + * + * Generated from protobuf field string field_name = 1; + */ + protected $field_name = ''; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AccessStringFilter $string_filter + * Strings related filter. + * @type \Google\Analytics\Admin\V1alpha\AccessInListFilter $in_list_filter + * A filter for in list values. + * @type \Google\Analytics\Admin\V1alpha\AccessNumericFilter $numeric_filter + * A filter for numeric or date values. + * @type \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $between_filter + * A filter for two values. + * @type string $field_name + * The dimension name or metric name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Strings related filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * @return \Google\Analytics\Admin\V1alpha\AccessStringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(2); + } + + public function hasStringFilter() + { + return $this->hasOneof(2); + } + + /** + * Strings related filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * @param \Google\Analytics\Admin\V1alpha\AccessStringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessStringFilter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for in list values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\AccessInListFilter|null + */ + public function getInListFilter() + { + return $this->readOneof(3); + } + + public function hasInListFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for in list values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\AccessInListFilter $var + * @return $this + */ + public function setInListFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessInListFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A filter for numeric or date values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * @return \Google\Analytics\Admin\V1alpha\AccessNumericFilter|null + */ + public function getNumericFilter() + { + return $this->readOneof(4); + } + + public function hasNumericFilter() + { + return $this->hasOneof(4); + } + + /** + * A filter for numeric or date values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * @param \Google\Analytics\Admin\V1alpha\AccessNumericFilter $var + * @return $this + */ + public function setNumericFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A filter for two values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * @return \Google\Analytics\Admin\V1alpha\AccessBetweenFilter|null + */ + public function getBetweenFilter() + { + return $this->readOneof(5); + } + + public function hasBetweenFilter() + { + return $this->hasOneof(5); + } + + /** + * A filter for two values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * @param \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $var + * @return $this + */ + public function setBetweenFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBetweenFilter::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The dimension name or metric name. + * + * Generated from protobuf field string field_name = 1; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * The dimension name or metric name. + * + * Generated from protobuf field string field_name = 1; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php new file mode 100644 index 000000000000..fbdd935d575e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php @@ -0,0 +1,178 @@ +google.analytics.admin.v1alpha.AccessFilterExpression + */ +class AccessFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $one_expression; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $and_group + * Each of the FilterExpressions in the and_group has an AND relationship. + * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $or_group + * Each of the FilterExpressions in the or_group has an OR relationship. + * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $not_expression + * The FilterExpression is NOT of not_expression. + * @type \Google\Analytics\Admin\V1alpha\AccessFilter $access_filter + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Each of the FilterExpressions in the and_group has an AND relationship. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList|null + */ + public function getAndGroup() + { + return $this->readOneof(1); + } + + public function hasAndGroup() + { + return $this->hasOneof(1); + } + + /** + * Each of the FilterExpressions in the and_group has an AND relationship. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $var + * @return $this + */ + public function setAndGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Each of the FilterExpressions in the or_group has an OR relationship. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(2); + } + + public function hasOrGroup() + { + return $this->hasOneof(2); + } + + /** + * Each of the FilterExpressions in the or_group has an OR relationship. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The FilterExpression is NOT of not_expression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(3); + } + + public function hasNotExpression() + { + return $this->hasOneof(3); + } + + /** + * The FilterExpression is NOT of not_expression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * @return \Google\Analytics\Admin\V1alpha\AccessFilter|null + */ + public function getAccessFilter() + { + return $this->readOneof(4); + } + + public function hasAccessFilter() + { + return $this->hasOneof(4); + } + + /** + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * @param \Google\Analytics\Admin\V1alpha\AccessFilter $var + * @return $this + */ + public function setAccessFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneExpression() + { + return $this->whichOneof("one_expression"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php new file mode 100644 index 000000000000..2eb4395ffca0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.AccessFilterExpressionList + */ +class AccessFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + private $expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions + * A list of filter expressions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExpressions() + { + return $this->expressions; + } + + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); + $this->expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php new file mode 100644 index 000000000000..dee5bd8ea6dd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php @@ -0,0 +1,101 @@ +google.analytics.admin.v1alpha.AccessInListFilter + */ +class AccessInListFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The list of string values. Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + */ + private $values; + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * The list of string values. Must be non-empty. + * @type bool $case_sensitive + * If true, the string value is case sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The list of string values. Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The list of string values. Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php new file mode 100644 index 000000000000..190ee537d233 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php @@ -0,0 +1,80 @@ +google.analytics.admin.v1alpha.AccessMetric + */ +class AccessMetric extends \Google\Protobuf\Internal\Message +{ + /** + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php new file mode 100644 index 000000000000..e05c29ae718d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php @@ -0,0 +1,70 @@ +google.analytics.admin.v1alpha.AccessMetricHeader + */ +class AccessMetricHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The metric's name; for example 'accessCount'. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * The metric's name; for example 'accessCount'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The metric's name; for example 'accessCount'. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * The metric's name; for example 'accessCount'. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php new file mode 100644 index 000000000000..abb0fb9e2ec1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.AccessMetricValue + */ +class AccessMetricValue extends \Google\Protobuf\Internal\Message +{ + /** + * The measurement value. For example, this value may be '13'. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The measurement value. For example, this value may be '13'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The measurement value. For example, this value may be '13'. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The measurement value. For example, this value may be '13'. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php new file mode 100644 index 000000000000..9187c504683a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.AccessNumericFilter + */ +class AccessNumericFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + */ + protected $operation = 0; + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $operation + * The operation type for this filter. + * @type \Google\Analytics\Admin\V1alpha\NumericValue $value + * A numeric value or a date value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * @return int + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * @param int $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter\Operation::class); + $this->operation = $var; + + return $this; + } + + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; + * @return \Google\Analytics\Admin\V1alpha\NumericValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; + * @param \Google\Analytics\Admin\V1alpha\NumericValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php new file mode 100644 index 000000000000..c6d1fa905dea --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php @@ -0,0 +1,85 @@ +google.analytics.admin.v1alpha.AccessNumericFilter.Operation + */ +class Operation +{ + /** + * Unspecified. + * + * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; + */ + const OPERATION_UNSPECIFIED = 0; + /** + * Equal + * + * Generated from protobuf enum EQUAL = 1; + */ + const EQUAL = 1; + /** + * Less than + * + * Generated from protobuf enum LESS_THAN = 2; + */ + const LESS_THAN = 2; + /** + * Less than or equal + * + * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; + */ + const LESS_THAN_OR_EQUAL = 3; + /** + * Greater than + * + * Generated from protobuf enum GREATER_THAN = 4; + */ + const GREATER_THAN = 4; + /** + * Greater than or equal + * + * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; + */ + const GREATER_THAN_OR_EQUAL = 5; + + private static $valueToName = [ + self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', + self::EQUAL => 'EQUAL', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operation::class, \Google\Analytics\Admin\V1alpha\AccessNumericFilter_Operation::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php new file mode 100644 index 000000000000..6703b77c9b81 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php @@ -0,0 +1,148 @@ +google.analytics.admin.v1alpha.AccessOrderBy + */ +class AccessOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * + * Generated from protobuf field bool desc = 3; + */ + protected $desc = false; + protected $one_order_by; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy $metric + * Sorts results by a metric's values. + * @type \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy $dimension + * Sorts results by a dimension's values. + * @type bool $desc + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Sorts results by a metric's values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * @return \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy|null + */ + public function getMetric() + { + return $this->readOneof(1); + } + + public function hasMetric() + { + return $this->hasOneof(1); + } + + /** + * Sorts results by a metric's values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * @param \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Sorts results by a dimension's values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * @return \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy|null + */ + public function getDimension() + { + return $this->readOneof(2); + } + + public function hasDimension() + { + return $this->hasOneof(2); + } + + /** + * Sorts results by a dimension's values. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * @param \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * + * Generated from protobuf field bool desc = 3; + * @return bool + */ + public function getDesc() + { + return $this->desc; + } + + /** + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * + * Generated from protobuf field bool desc = 3; + * @param bool $var + * @return $this + */ + public function setDesc($var) + { + GPBUtil::checkBool($var); + $this->desc = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneOrderBy() + { + return $this->whichOneof("one_order_by"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php new file mode 100644 index 000000000000..3d1c23f4cc16 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php @@ -0,0 +1,104 @@ +google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + */ +class DimensionOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + */ + protected $order_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * A dimension name in the request to order by. + * @type int $order_type + * Controls the rule for dimension value ordering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * @return int + */ + public function getOrderType() + { + return $this->order_type; + } + + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * @param int $var + * @return $this + */ + public function setOrderType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy\OrderType::class); + $this->order_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DimensionOrderBy::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_DimensionOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php new file mode 100644 index 000000000000..40d8927a3f97 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php @@ -0,0 +1,76 @@ +google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + */ +class OrderType +{ + /** + * Unspecified. + * + * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; + */ + const ORDER_TYPE_UNSPECIFIED = 0; + /** + * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + * "b" < "z". + * + * Generated from protobuf enum ALPHANUMERIC = 1; + */ + const ALPHANUMERIC = 1; + /** + * Case insensitive alphanumeric sort by lower case Unicode code point. + * For example, "2" < "A" < "b" < "X" < "z". + * + * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + const CASE_INSENSITIVE_ALPHANUMERIC = 2; + /** + * Dimension values are converted to numbers before sorting. For example + * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + * "25". Non-numeric dimension values all have equal ordering value below + * all numeric values. + * + * Generated from protobuf enum NUMERIC = 3; + */ + const NUMERIC = 3; + + private static $valueToName = [ + self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', + self::ALPHANUMERIC => 'ALPHANUMERIC', + self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', + self::NUMERIC => 'NUMERIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OrderType::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_DimensionOrderBy_OrderType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php new file mode 100644 index 000000000000..e210588587b2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php @@ -0,0 +1,70 @@ +google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + */ +class MetricOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * A metric name in the request to order by. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricOrderBy::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_MetricOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php new file mode 100644 index 000000000000..388a200c0f81 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php @@ -0,0 +1,283 @@ +google.analytics.admin.v1alpha.AccessQuota + */ +class AccessQuota extends \Google\Protobuf\Internal\Message +{ + /** + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + protected $tokens_per_day = null; + /** + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + protected $tokens_per_hour = null; + /** + * Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + protected $concurrent_requests = null; + /** + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + */ + protected $server_errors_per_project_per_hour = null; + /** + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + */ + protected $tokens_per_project_per_hour = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_day + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_hour + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $concurrent_requests + * Properties can use up to 50 concurrent requests. + * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $server_errors_per_project_per_hour + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_project_per_hour + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null + */ + public function getTokensPerDay() + { + return $this->tokens_per_day; + } + + public function hasTokensPerDay() + { + return isset($this->tokens_per_day); + } + + public function clearTokensPerDay() + { + unset($this->tokens_per_day); + } + + /** + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var + * @return $this + */ + public function setTokensPerDay($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); + $this->tokens_per_day = $var; + + return $this; + } + + /** + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null + */ + public function getTokensPerHour() + { + return $this->tokens_per_hour; + } + + public function hasTokensPerHour() + { + return isset($this->tokens_per_hour); + } + + public function clearTokensPerHour() + { + unset($this->tokens_per_hour); + } + + /** + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var + * @return $this + */ + public function setTokensPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); + $this->tokens_per_hour = $var; + + return $this; + } + + /** + * Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null + */ + public function getConcurrentRequests() + { + return $this->concurrent_requests; + } + + public function hasConcurrentRequests() + { + return isset($this->concurrent_requests); + } + + public function clearConcurrentRequests() + { + unset($this->concurrent_requests); + } + + /** + * Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var + * @return $this + */ + public function setConcurrentRequests($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); + $this->concurrent_requests = $var; + + return $this; + } + + /** + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null + */ + public function getServerErrorsPerProjectPerHour() + { + return $this->server_errors_per_project_per_hour; + } + + public function hasServerErrorsPerProjectPerHour() + { + return isset($this->server_errors_per_project_per_hour); + } + + public function clearServerErrorsPerProjectPerHour() + { + unset($this->server_errors_per_project_per_hour); + } + + /** + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var + * @return $this + */ + public function setServerErrorsPerProjectPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); + $this->server_errors_per_project_per_hour = $var; + + return $this; + } + + /** + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null + */ + public function getTokensPerProjectPerHour() + { + return $this->tokens_per_project_per_hour; + } + + public function hasTokensPerProjectPerHour() + { + return isset($this->tokens_per_project_per_hour); + } + + public function clearTokensPerProjectPerHour() + { + unset($this->tokens_per_project_per_hour); + } + + /** + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var + * @return $this + */ + public function setTokensPerProjectPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); + $this->tokens_per_project_per_hour = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php new file mode 100644 index 000000000000..ee0694f48b7e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php @@ -0,0 +1,101 @@ +google.analytics.admin.v1alpha.AccessQuotaStatus + */ +class AccessQuotaStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + */ + protected $consumed = 0; + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + */ + protected $remaining = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $consumed + * Quota consumed by this request. + * @type int $remaining + * Quota remaining after this request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + * @return int + */ + public function getConsumed() + { + return $this->consumed; + } + + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + * @param int $var + * @return $this + */ + public function setConsumed($var) + { + GPBUtil::checkInt32($var); + $this->consumed = $var; + + return $this; + } + + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + * @return int + */ + public function getRemaining() + { + return $this->remaining; + } + + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + * @param int $var + * @return $this + */ + public function setRemaining($var) + { + GPBUtil::checkInt32($var); + $this->remaining = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php new file mode 100644 index 000000000000..15f63e19b860 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1alpha.AccessRow + */ +class AccessRow extends \Google\Protobuf\Internal\Message +{ + /** + * List of dimension values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + */ + private $dimension_values; + /** + * List of metric values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + private $metric_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values + * List of dimension values. These values are in the same order as specified + * in the request. + * @type array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values + * List of metric values. These values are in the same order as specified + * in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * List of dimension values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionValues() + { + return $this->dimension_values; + } + + /** + * List of dimension values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimensionValue::class); + $this->dimension_values = $arr; + + return $this; + } + + /** + * List of metric values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricValues() + { + return $this->metric_values; + } + + /** + * List of metric values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetricValue::class); + $this->metric_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php new file mode 100644 index 000000000000..511a01168a39 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php @@ -0,0 +1,135 @@ +google.analytics.admin.v1alpha.AccessStringFilter + */ +class AccessStringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + */ + protected $match_type = 0; + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * The match type for this filter. + * @type string $value + * The string value used for the matching. + * @type bool $case_sensitive + * If true, the string value is case sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessStringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php new file mode 100644 index 000000000000..69c13e765d72 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php @@ -0,0 +1,92 @@ +google.analytics.admin.v1alpha.AccessStringFilter.MatchType + */ +class MatchType +{ + /** + * Unspecified + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full match for the regular expression with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + /** + * Partial match for the regular expression with the string value. + * + * Generated from protobuf enum PARTIAL_REGEXP = 6; + */ + const PARTIAL_REGEXP = 6; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\AccessStringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php new file mode 100644 index 000000000000..cf1546349336 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php @@ -0,0 +1,269 @@ +google.analytics.admin.v1alpha.Account + */ +class Account extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Time when this account was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when account payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Required. Human-readable display name for this account. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Country of business. Must be a Unicode CLDR region code. + * + * Generated from protobuf field string region_code = 5; + */ + protected $region_code = ''; + /** + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * + * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deleted = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this account was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when account payload fields were last updated. + * @type string $display_name + * Required. Human-readable display name for this account. + * @type string $region_code + * Country of business. Must be a Unicode CLDR region code. + * @type bool $deleted + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Time when this account was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this account was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when account payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when account payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Required. Human-readable display name for this account. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Human-readable display name for this account. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Country of business. Must be a Unicode CLDR region code. + * + * Generated from protobuf field string region_code = 5; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Country of business. Must be a Unicode CLDR region code. + * + * Generated from protobuf field string region_code = 5; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * + * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getDeleted() + { + return $this->deleted; + } + + /** + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * + * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setDeleted($var) + { + GPBUtil::checkBool($var); + $this->deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php new file mode 100644 index 000000000000..9b8c7fc6efc8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php @@ -0,0 +1,186 @@ +google.analytics.admin.v1alpha.AccountSummary + */ +class AccountSummary extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * + * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { + */ + protected $account = ''; + /** + * Display name for the account referred to in this account summary. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * List of summaries for child accounts of this account. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + private $property_summaries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * @type string $account + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * @type string $display_name + * Display name for the account referred to in this account summary. + * @type array<\Google\Analytics\Admin\V1alpha\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $property_summaries + * List of summaries for child accounts of this account. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * + * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * + * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Display name for the account referred to in this account summary. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name for the account referred to in this account summary. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * List of summaries for child accounts of this account. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPropertySummaries() + { + return $this->property_summaries; + } + + /** + * List of summaries for child accounts of this account. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + * @param array<\Google\Analytics\Admin\V1alpha\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPropertySummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\PropertySummary::class); + $this->property_summaries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php new file mode 100644 index 000000000000..98b1ece2a495 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + */ +class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property for which to acknowledge user data collection. + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $property = ''; + /** + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * + * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $acknowledgement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Required. The property for which to acknowledge user data collection. + * @type string $acknowledgement + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property for which to acknowledge user data collection. + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Required. The property for which to acknowledge user data collection. + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * + * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAcknowledgement() + { + return $this->acknowledgement; + } + + /** + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * + * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAcknowledgement($var) + { + GPBUtil::checkString($var, True); + $this->acknowledgement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php new file mode 100644 index 000000000000..4d03c2d230b9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php @@ -0,0 +1,33 @@ +google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + */ +class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php new file mode 100644 index 000000000000..49253924461b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php @@ -0,0 +1,68 @@ +google.analytics.admin.v1alpha.ActionType + */ +class ActionType +{ + /** + * Action type unknown or not specified. + * + * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; + */ + const ACTION_TYPE_UNSPECIFIED = 0; + /** + * Resource was created in this change. + * + * Generated from protobuf enum CREATED = 1; + */ + const CREATED = 1; + /** + * Resource was updated in this change. + * + * Generated from protobuf enum UPDATED = 2; + */ + const UPDATED = 2; + /** + * Resource was deleted in this change. + * + * Generated from protobuf enum DELETED = 3; + */ + const DELETED = 3; + + private static $valueToName = [ + self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', + self::CREATED => 'CREATED', + self::UPDATED => 'UPDATED', + self::DELETED => 'DELETED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php new file mode 100644 index 000000000000..f2bc347c5a68 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php @@ -0,0 +1,69 @@ +google.analytics.admin.v1alpha.ActorType + */ +class ActorType +{ + /** + * Unknown or unspecified actor type. + * + * Generated from protobuf enum ACTOR_TYPE_UNSPECIFIED = 0; + */ + const ACTOR_TYPE_UNSPECIFIED = 0; + /** + * Changes made by the user specified in actor_email. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + /** + * Changes made by the Google Analytics system. + * + * Generated from protobuf enum SYSTEM = 2; + */ + const SYSTEM = 2; + /** + * Changes made by Google Analytics support team staff. + * + * Generated from protobuf enum SUPPORT = 3; + */ + const SUPPORT = 3; + + private static $valueToName = [ + self::ACTOR_TYPE_UNSPECIFIED => 'ACTOR_TYPE_UNSPECIFIED', + self::USER => 'USER', + self::SYSTEM => 'SYSTEM', + self::SUPPORT => 'SUPPORT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php new file mode 100644 index 000000000000..d761b682fb8d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php @@ -0,0 +1,113 @@ +google.analytics.admin.v1alpha.AdSenseLink + */ +class AdSenseLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this AdSense Link resource. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/6789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The AdSense ad client code that the GA4 property is linked to. + * Example format: "ca-pub-1234567890" + * + * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $ad_client_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this AdSense Link resource. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/6789 + * @type string $ad_client_code + * Immutable. The AdSense ad client code that the GA4 property is linked to. + * Example format: "ca-pub-1234567890" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this AdSense Link resource. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/6789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this AdSense Link resource. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/6789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The AdSense ad client code that the GA4 property is linked to. + * Example format: "ca-pub-1234567890" + * + * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdClientCode() + { + return $this->ad_client_code; + } + + /** + * Immutable. The AdSense ad client code that the GA4 property is linked to. + * Example format: "ca-pub-1234567890" + * + * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdClientCode($var) + { + GPBUtil::checkString($var, True); + $this->ad_client_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php new file mode 100644 index 000000000000..a52787771996 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + */ +class ApproveDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php new file mode 100644 index 000000000000..43bf9175e1d0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php @@ -0,0 +1,81 @@ +google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + */ +class ApproveDisplayVideo360AdvertiserLinkProposalResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The DisplayVideo360AdvertiserLink created as a result of approving the + * proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + */ + protected $display_video_360_advertiser_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link + * The DisplayVideo360AdvertiserLink created as a result of approving the + * proposal. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The DisplayVideo360AdvertiserLink created as a result of approving the + * proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null + */ + public function getDisplayVideo360AdvertiserLink() + { + return $this->display_video_360_advertiser_link; + } + + public function hasDisplayVideo360AdvertiserLink() + { + return isset($this->display_video_360_advertiser_link); + } + + public function clearDisplayVideo360AdvertiserLink() + { + unset($this->display_video_360_advertiser_link); + } + + /** + * The DisplayVideo360AdvertiserLink created as a result of approving the + * proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); + $this->display_video_360_advertiser_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php new file mode 100644 index 000000000000..e87bb551c107 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.ArchiveAudienceRequest + */ +class ArchiveAudienceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234/audiences/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Example format: properties/1234/audiences/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234/audiences/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Example format: properties/1234/audiences/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php new file mode 100644 index 000000000000..900c05da853a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + */ +class ArchiveCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php new file mode 100644 index 000000000000..d304ca488199 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + */ +class ArchiveCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php new file mode 100644 index 000000000000..f166baedc5d9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php @@ -0,0 +1,240 @@ +google.analytics.admin.v1alpha.AttributionSettings + */ +class AttributionSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this attribution settings resource. + * Format: properties/{property_id}/attributionSettings + * Example: "properties/1000/attributionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The lookback window configuration for acquisition conversion + * events. The default window size is 30 days. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $acquisition_conversion_event_lookback_window = 0; + /** + * Required. The lookback window for all other, non-acquisition conversion + * events. The default window size is 90 days. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $other_conversion_event_lookback_window = 0; + /** + * Required. The reporting attribution model used to calculate conversion + * credit in this property's reports. + * Changing the attribution model will apply to both historical and future + * data. These changes will be reflected in reports with conversion and + * revenue data. User and session data will be unaffected. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $reporting_attribution_model = 0; + /** + * Required. The Conversion Export Scope for data exported to linked Ads + * Accounts. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ads_web_conversion_data_export_scope = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this attribution settings resource. + * Format: properties/{property_id}/attributionSettings + * Example: "properties/1000/attributionSettings" + * @type int $acquisition_conversion_event_lookback_window + * Required. The lookback window configuration for acquisition conversion + * events. The default window size is 30 days. + * @type int $other_conversion_event_lookback_window + * Required. The lookback window for all other, non-acquisition conversion + * events. The default window size is 90 days. + * @type int $reporting_attribution_model + * Required. The reporting attribution model used to calculate conversion + * credit in this property's reports. + * Changing the attribution model will apply to both historical and future + * data. These changes will be reflected in reports with conversion and + * revenue data. User and session data will be unaffected. + * @type int $ads_web_conversion_data_export_scope + * Required. The Conversion Export Scope for data exported to linked Ads + * Accounts. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this attribution settings resource. + * Format: properties/{property_id}/attributionSettings + * Example: "properties/1000/attributionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this attribution settings resource. + * Format: properties/{property_id}/attributionSettings + * Example: "properties/1000/attributionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The lookback window configuration for acquisition conversion + * events. The default window size is 30 days. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getAcquisitionConversionEventLookbackWindow() + { + return $this->acquisition_conversion_event_lookback_window; + } + + /** + * Required. The lookback window configuration for acquisition conversion + * events. The default window size is 30 days. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setAcquisitionConversionEventLookbackWindow($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\AcquisitionConversionEventLookbackWindow::class); + $this->acquisition_conversion_event_lookback_window = $var; + + return $this; + } + + /** + * Required. The lookback window for all other, non-acquisition conversion + * events. The default window size is 90 days. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOtherConversionEventLookbackWindow() + { + return $this->other_conversion_event_lookback_window; + } + + /** + * Required. The lookback window for all other, non-acquisition conversion + * events. The default window size is 90 days. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOtherConversionEventLookbackWindow($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\OtherConversionEventLookbackWindow::class); + $this->other_conversion_event_lookback_window = $var; + + return $this; + } + + /** + * Required. The reporting attribution model used to calculate conversion + * credit in this property's reports. + * Changing the attribution model will apply to both historical and future + * data. These changes will be reflected in reports with conversion and + * revenue data. User and session data will be unaffected. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getReportingAttributionModel() + { + return $this->reporting_attribution_model; + } + + /** + * Required. The reporting attribution model used to calculate conversion + * credit in this property's reports. + * Changing the attribution model will apply to both historical and future + * data. These changes will be reflected in reports with conversion and + * revenue data. User and session data will be unaffected. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setReportingAttributionModel($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\ReportingAttributionModel::class); + $this->reporting_attribution_model = $var; + + return $this; + } + + /** + * Required. The Conversion Export Scope for data exported to linked Ads + * Accounts. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getAdsWebConversionDataExportScope() + { + return $this->ads_web_conversion_data_export_scope; + } + + /** + * Required. The Conversion Export Scope for data exported to linked Ads + * Accounts. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setAdsWebConversionDataExportScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\AdsWebConversionDataExportScope::class); + $this->ads_web_conversion_data_export_scope = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php new file mode 100644 index 000000000000..27addf5b305e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php @@ -0,0 +1,66 @@ +google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + */ +class AcquisitionConversionEventLookbackWindow +{ + /** + * Lookback window size unspecified. + * + * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + /** + * 7-day lookback window. + * + * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + */ + const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + /** + * 30-day lookback window. + * + * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + */ + const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + + private static $valueToName = [ + self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED', + self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS', + self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AcquisitionConversionEventLookbackWindow::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_AcquisitionConversionEventLookbackWindow::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php new file mode 100644 index 000000000000..71ce27a0c6dc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php @@ -0,0 +1,77 @@ +google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + */ +class AdsWebConversionDataExportScope +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; + */ + const ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; + /** + * No data export scope selected yet. + * Export scope can never be changed back to this value. + * + * Generated from protobuf enum NOT_SELECTED_YET = 1; + */ + const NOT_SELECTED_YET = 1; + /** + * Paid and organic channels are eligible to receive conversion credit, but + * only credit assigned to Google Ads channels will appear in your Ads + * accounts. To learn more, see [Paid and Organic + * channels](https://support.google.com/analytics/answer/10632359). + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS = 2; + */ + const PAID_AND_ORGANIC_CHANNELS = 2; + /** + * Only Google Ads paid channels are eligible to receive conversion credit. + * To learn more, see [Google Paid + * channels](https://support.google.com/analytics/answer/10632359). + * + * Generated from protobuf enum GOOGLE_PAID_CHANNELS = 3; + */ + const GOOGLE_PAID_CHANNELS = 3; + + private static $valueToName = [ + self::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED => 'ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED', + self::NOT_SELECTED_YET => 'NOT_SELECTED_YET', + self::PAID_AND_ORGANIC_CHANNELS => 'PAID_AND_ORGANIC_CHANNELS', + self::GOOGLE_PAID_CHANNELS => 'GOOGLE_PAID_CHANNELS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AdsWebConversionDataExportScope::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_AdsWebConversionDataExportScope::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php new file mode 100644 index 000000000000..9524df564097 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php @@ -0,0 +1,73 @@ +google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + */ +class OtherConversionEventLookbackWindow +{ + /** + * Lookback window size unspecified. + * + * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + /** + * 30-day lookback window. + * + * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + */ + const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + /** + * 60-day lookback window. + * + * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + */ + const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + /** + * 90-day lookback window. + * + * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + */ + const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + + private static $valueToName = [ + self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED', + self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS', + self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS', + self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OtherConversionEventLookbackWindow::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_OtherConversionEventLookbackWindow::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php new file mode 100644 index 000000000000..8a38d59cf52f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php @@ -0,0 +1,141 @@ +google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + */ +class ReportingAttributionModel +{ + /** + * Reporting attribution model unspecified. + * + * Generated from protobuf enum REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + const REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + /** + * Data-driven attribution distributes credit for the conversion based on + * data for each conversion event. Each Data-driven model is specific to + * each advertiser and each conversion event. + * Previously CROSS_CHANNEL_DATA_DRIVEN + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; + */ + const PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; + /** + * Ignores direct traffic and attributes 100% of the conversion value to the + * last channel that the customer clicked through (or engaged view through + * for YouTube) before converting. + * Previously CROSS_CHANNEL_LAST_CLICK + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; + */ + const PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; + /** + * Starting in June 2023, new properties can no longer use this model. + * See + * [Analytics + * Help](https://support.google.com/analytics/answer/9164320#040623) + * for more details. + * Starting in September 2023, we will sunset this model for all properties. + * Gives all credit for the conversion to the first channel that a customer + * clicked (or engaged view through for YouTube) before converting. + * Previously CROSS_CHANNEL_FIRST_CLICK + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; + */ + const PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; + /** + * Starting in June 2023, new properties can no longer use this model. + * See + * [Analytics + * Help](https://support.google.com/analytics/answer/9164320#040623) + * for more details. + * Starting in September 2023, we will sunset this model for all properties. + * Distributes the credit for the conversion equally across all the channels + * a customer clicked (or engaged view through for YouTube) before + * converting. + * Previously CROSS_CHANNEL_LINEAR + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; + */ + const PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; + /** + * Starting in June 2023, new properties can no longer use this model. + * See + * [Analytics + * Help](https://support.google.com/analytics/answer/9164320#040623) + * for more details. + * Starting in September 2023, we will sunset this model for all properties. + * Attributes 40% credit to the first and last interaction, and the + * remaining 20% credit is distributed evenly to the middle interactions. + * Previously CROSS_CHANNEL_POSITION_BASED + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; + */ + const PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; + /** + * Starting in June 2023, new properties can no longer use this model. + * See + * [Analytics + * Help](https://support.google.com/analytics/answer/9164320#040623) + * for more details. + * Starting in September 2023, we will sunset this model for all properties. + * Gives more credit to the touchpoints that happened closer in time to + * the conversion. + * Previously CROSS_CHANNEL_TIME_DECAY + * + * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; + */ + const PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; + /** + * Attributes 100% of the conversion value to the last Google Paid channel + * that the customer clicked through before converting. + * Previously ADS_PREFERRED_LAST_CLICK + * + * Generated from protobuf enum GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; + */ + const GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; + + private static $valueToName = [ + self::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED => 'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED', + self::PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN => 'PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN', + self::PAID_AND_ORGANIC_CHANNELS_LAST_CLICK => 'PAID_AND_ORGANIC_CHANNELS_LAST_CLICK', + self::PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK => 'PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK', + self::PAID_AND_ORGANIC_CHANNELS_LINEAR => 'PAID_AND_ORGANIC_CHANNELS_LINEAR', + self::PAID_AND_ORGANIC_CHANNELS_POSITION_BASED => 'PAID_AND_ORGANIC_CHANNELS_POSITION_BASED', + self::PAID_AND_ORGANIC_CHANNELS_TIME_DECAY => 'PAID_AND_ORGANIC_CHANNELS_TIME_DECAY', + self::GOOGLE_PAID_CHANNELS_LAST_CLICK => 'GOOGLE_PAID_CHANNELS_LAST_CLICK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReportingAttributionModel::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_ReportingAttributionModel::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php new file mode 100644 index 000000000000..07840fea614f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php @@ -0,0 +1,343 @@ +google.analytics.admin.v1alpha.Audience + */ +class Audience extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this Audience resource. + * Format: properties/{propertyId}/audiences/{audienceId} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the Audience. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. The description of the Audience. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $description = ''; + /** + * Required. Immutable. The duration a user should stay in an Audience. It + * cannot be set to more than 540 days. + * + * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $membership_duration_days = 0; + /** + * Output only. It is automatically set by GA to false if this is an NPA + * Audience and is excluded from ads personalization. + * + * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ads_personalization_enabled = false; + /** + * Optional. Specifies an event to log when a user joins the Audience. If not + * set, no event is logged when a user joins the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $event_trigger = null; + /** + * Immutable. Specifies how long an exclusion lasts for users that meet the + * exclusion filter. It is applied to all EXCLUDE filter clauses and is + * ignored when there is no EXCLUDE filter clause in the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $exclusion_duration_mode = 0; + /** + * Required. Immutable. Unordered list. Filter clauses that define the + * Audience. All clauses will be AND’ed together. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $filter_clauses; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this Audience resource. + * Format: properties/{propertyId}/audiences/{audienceId} + * @type string $display_name + * Required. The display name of the Audience. + * @type string $description + * Required. The description of the Audience. + * @type int $membership_duration_days + * Required. Immutable. The duration a user should stay in an Audience. It + * cannot be set to more than 540 days. + * @type bool $ads_personalization_enabled + * Output only. It is automatically set by GA to false if this is an NPA + * Audience and is excluded from ads personalization. + * @type \Google\Analytics\Admin\V1alpha\AudienceEventTrigger $event_trigger + * Optional. Specifies an event to log when a user joins the Audience. If not + * set, no event is logged when a user joins the Audience. + * @type int $exclusion_duration_mode + * Immutable. Specifies how long an exclusion lasts for users that meet the + * exclusion filter. It is applied to all EXCLUDE filter clauses and is + * ignored when there is no EXCLUDE filter clause in the Audience. + * @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses + * Required. Immutable. Unordered list. Filter clauses that define the + * Audience. All clauses will be AND’ed together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this Audience resource. + * Format: properties/{propertyId}/audiences/{audienceId} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this Audience resource. + * Format: properties/{propertyId}/audiences/{audienceId} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the Audience. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the Audience. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The description of the Audience. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Required. The description of the Audience. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Immutable. The duration a user should stay in an Audience. It + * cannot be set to more than 540 days. + * + * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getMembershipDurationDays() + { + return $this->membership_duration_days; + } + + /** + * Required. Immutable. The duration a user should stay in an Audience. It + * cannot be set to more than 540 days. + * + * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setMembershipDurationDays($var) + { + GPBUtil::checkInt32($var); + $this->membership_duration_days = $var; + + return $this; + } + + /** + * Output only. It is automatically set by GA to false if this is an NPA + * Audience and is excluded from ads personalization. + * + * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getAdsPersonalizationEnabled() + { + return $this->ads_personalization_enabled; + } + + /** + * Output only. It is automatically set by GA to false if this is an NPA + * Audience and is excluded from ads personalization. + * + * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setAdsPersonalizationEnabled($var) + { + GPBUtil::checkBool($var); + $this->ads_personalization_enabled = $var; + + return $this; + } + + /** + * Optional. Specifies an event to log when a user joins the Audience. If not + * set, no event is logged when a user joins the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Analytics\Admin\V1alpha\AudienceEventTrigger|null + */ + public function getEventTrigger() + { + return $this->event_trigger; + } + + public function hasEventTrigger() + { + return isset($this->event_trigger); + } + + public function clearEventTrigger() + { + unset($this->event_trigger); + } + + /** + * Optional. Specifies an event to log when a user joins the Audience. If not + * set, no event is logged when a user joins the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Analytics\Admin\V1alpha\AudienceEventTrigger $var + * @return $this + */ + public function setEventTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger::class); + $this->event_trigger = $var; + + return $this; + } + + /** + * Immutable. Specifies how long an exclusion lasts for users that meet the + * exclusion filter. It is applied to all EXCLUDE filter clauses and is + * ignored when there is no EXCLUDE filter clause in the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getExclusionDurationMode() + { + return $this->exclusion_duration_mode; + } + + /** + * Immutable. Specifies how long an exclusion lasts for users that meet the + * exclusion filter. It is applied to all EXCLUDE filter clauses and is + * ignored when there is no EXCLUDE filter clause in the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setExclusionDurationMode($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\Audience\AudienceExclusionDurationMode::class); + $this->exclusion_duration_mode = $var; + + return $this; + } + + /** + * Required. Immutable. Unordered list. Filter clauses that define the + * Audience. All clauses will be AND’ed together. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterClauses() + { + return $this->filter_clauses; + } + + /** + * Required. Immutable. Unordered list. Filter clauses that define the + * Audience. All clauses will be AND’ed together. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @param array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterClauses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceFilterClause::class); + $this->filter_clauses = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php new file mode 100644 index 000000000000..21f2bcb25177 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php @@ -0,0 +1,66 @@ +google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + */ +class AudienceExclusionDurationMode +{ + /** + * Not specified. + * + * Generated from protobuf enum AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + */ + const AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + /** + * Exclude users from the Audience during periods when they meet the + * filter clause. + * + * Generated from protobuf enum EXCLUDE_TEMPORARILY = 1; + */ + const EXCLUDE_TEMPORARILY = 1; + /** + * Exclude users from the Audience if they've ever met the filter clause. + * + * Generated from protobuf enum EXCLUDE_PERMANENTLY = 2; + */ + const EXCLUDE_PERMANENTLY = 2; + + private static $valueToName = [ + self::AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED => 'AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED', + self::EXCLUDE_TEMPORARILY => 'EXCLUDE_TEMPORARILY', + self::EXCLUDE_PERMANENTLY => 'EXCLUDE_PERMANENTLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AudienceExclusionDurationMode::class, \Google\Analytics\Admin\V1alpha\Audience_AudienceExclusionDurationMode::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php new file mode 100644 index 000000000000..40a3b3c74607 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php @@ -0,0 +1,350 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + */ +class AudienceDimensionOrMetricFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The dimension name or metric name to filter. If the + * field name refers to a custom dimension or metric, a scope prefix will be + * added to the front of the custom dimensions or metric name. For more on + * scope prefixes or custom dimensions/metrics, reference the [Google + * Analytics Data API documentation] + * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $field_name = ''; + /** + * Optional. Indicates whether this filter needs dynamic evaluation or not. If + * set to true, users join the Audience if they ever met the condition (static + * evaluation). If unset or set to false, user evaluation for an Audience is + * dynamic; users are added to an Audience when they meet the conditions and + * then removed when they no longer meet them. + * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + * + * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $at_any_point_in_time = false; + /** + * Optional. If set, specifies the time window for which to evaluate data in + * number of days. If not set, then audience data is evaluated against + * lifetime data (For example, infinite time window). + * For example, if set to 1 day, only the current day's data is evaluated. The + * reference point is the current day when at_any_point_in_time is unset or + * false. + * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + * greater than 60 days. + * + * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $in_any_n_day_period = 0; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter $string_filter + * A filter for a string-type dimension that matches a particular pattern. + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter $in_list_filter + * A filter for a string dimension that matches a particular list of + * options. + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter $numeric_filter + * A filter for numeric or date values on a dimension or metric. + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter $between_filter + * A filter for numeric or date values between certain values on a dimension + * or metric. + * @type string $field_name + * Required. Immutable. The dimension name or metric name to filter. If the + * field name refers to a custom dimension or metric, a scope prefix will be + * added to the front of the custom dimensions or metric name. For more on + * scope prefixes or custom dimensions/metrics, reference the [Google + * Analytics Data API documentation] + * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). + * @type bool $at_any_point_in_time + * Optional. Indicates whether this filter needs dynamic evaluation or not. If + * set to true, users join the Audience if they ever met the condition (static + * evaluation). If unset or set to false, user evaluation for an Audience is + * dynamic; users are added to an Audience when they meet the conditions and + * then removed when they no longer meet them. + * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + * @type int $in_any_n_day_period + * Optional. If set, specifies the time window for which to evaluate data in + * number of days. If not set, then audience data is evaluated against + * lifetime data (For example, infinite time window). + * For example, if set to 1 day, only the current day's data is evaluated. The + * reference point is the current day when at_any_point_in_time is unset or + * false. + * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + * greater than 60 days. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(2); + } + + public function hasStringFilter() + { + return $this->hasOneof(2); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for a string dimension that matches a particular list of + * options. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter|null + */ + public function getInListFilter() + { + return $this->readOneof(3); + } + + public function hasInListFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for a string dimension that matches a particular list of + * options. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter $var + * @return $this + */ + public function setInListFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A filter for numeric or date values on a dimension or metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter|null + */ + public function getNumericFilter() + { + return $this->readOneof(4); + } + + public function hasNumericFilter() + { + return $this->hasOneof(4); + } + + /** + * A filter for numeric or date values on a dimension or metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter $var + * @return $this + */ + public function setNumericFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A filter for numeric or date values between certain values on a dimension + * or metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter|null + */ + public function getBetweenFilter() + { + return $this->readOneof(5); + } + + public function hasBetweenFilter() + { + return $this->hasOneof(5); + } + + /** + * A filter for numeric or date values between certain values on a dimension + * or metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter $var + * @return $this + */ + public function setBetweenFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Required. Immutable. The dimension name or metric name to filter. If the + * field name refers to a custom dimension or metric, a scope prefix will be + * added to the front of the custom dimensions or metric name. For more on + * scope prefixes or custom dimensions/metrics, reference the [Google + * Analytics Data API documentation] + * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * Required. Immutable. The dimension name or metric name to filter. If the + * field name refers to a custom dimension or metric, a scope prefix will be + * added to the front of the custom dimensions or metric name. For more on + * scope prefixes or custom dimensions/metrics, reference the [Google + * Analytics Data API documentation] + * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * Optional. Indicates whether this filter needs dynamic evaluation or not. If + * set to true, users join the Audience if they ever met the condition (static + * evaluation). If unset or set to false, user evaluation for an Audience is + * dynamic; users are added to an Audience when they meet the conditions and + * then removed when they no longer meet them. + * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + * + * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAtAnyPointInTime() + { + return $this->at_any_point_in_time; + } + + /** + * Optional. Indicates whether this filter needs dynamic evaluation or not. If + * set to true, users join the Audience if they ever met the condition (static + * evaluation). If unset or set to false, user evaluation for an Audience is + * dynamic; users are added to an Audience when they meet the conditions and + * then removed when they no longer meet them. + * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + * + * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAtAnyPointInTime($var) + { + GPBUtil::checkBool($var); + $this->at_any_point_in_time = $var; + + return $this; + } + + /** + * Optional. If set, specifies the time window for which to evaluate data in + * number of days. If not set, then audience data is evaluated against + * lifetime data (For example, infinite time window). + * For example, if set to 1 day, only the current day's data is evaluated. The + * reference point is the current day when at_any_point_in_time is unset or + * false. + * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + * greater than 60 days. + * + * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getInAnyNDayPeriod() + { + return $this->in_any_n_day_period; + } + + /** + * Optional. If set, specifies the time window for which to evaluate data in + * number of days. If not set, then audience data is evaluated against + * lifetime data (For example, infinite time window). + * For example, if set to 1 day, only the current day's data is evaluated. The + * reference point is the current day when at_any_point_in_time is unset or + * false. + * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + * greater than 60 days. + * + * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setInAnyNDayPeriod($var) + { + GPBUtil::checkInt32($var); + $this->in_any_n_day_period = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php new file mode 100644 index 000000000000..65db89b7a769 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + */ +class BetweenFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Begins with this number, inclusive. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $from_value = null; + /** + * Required. Ends with this number, inclusive. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $to_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $from_value + * Required. Begins with this number, inclusive. + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $to_value + * Required. Ends with this number, inclusive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. Begins with this number, inclusive. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null + */ + public function getFromValue() + { + return $this->from_value; + } + + public function hasFromValue() + { + return isset($this->from_value); + } + + public function clearFromValue() + { + unset($this->from_value); + } + + /** + * Required. Begins with this number, inclusive. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var + * @return $this + */ + public function setFromValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); + $this->from_value = $var; + + return $this; + } + + /** + * Required. Ends with this number, inclusive. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null + */ + public function getToValue() + { + return $this->to_value; + } + + public function hasToValue() + { + return isset($this->to_value); + } + + public function clearToValue() + { + unset($this->to_value); + } + + /** + * Required. Ends with this number, inclusive. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var + * @return $this + */ + public function setToValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); + $this->to_value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BetweenFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_BetweenFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php new file mode 100644 index 000000000000..a3669928d13c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php @@ -0,0 +1,112 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + */ +class InListFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * Required. The list of possible string values to match against. Must be + * non-empty. + * @type bool $case_sensitive + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_InListFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php new file mode 100644 index 000000000000..e1ef6d8bf551 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php @@ -0,0 +1,114 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + */ +class NumericFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The operation applied to a numeric filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $operation = 0; + /** + * Required. The numeric or date value to match against. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $operation + * Required. The operation applied to a numeric filter. + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $value + * Required. The numeric or date value to match against. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. The operation applied to a numeric filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOperation() + { + return $this->operation; + } + + /** + * Required. The operation applied to a numeric filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter\Operation::class); + $this->operation = $var; + + return $this; + } + + /** + * Required. The numeric or date value to match against. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Required. The numeric or date value to match against. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); + $this->value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NumericFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php new file mode 100644 index 000000000000..b2b52d8a9dfb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + */ +class Operation +{ + /** + * Unspecified. + * + * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; + */ + const OPERATION_UNSPECIFIED = 0; + /** + * Equal. + * + * Generated from protobuf enum EQUAL = 1; + */ + const EQUAL = 1; + /** + * Less than. + * + * Generated from protobuf enum LESS_THAN = 2; + */ + const LESS_THAN = 2; + /** + * Greater than. + * + * Generated from protobuf enum GREATER_THAN = 4; + */ + const GREATER_THAN = 4; + + private static $valueToName = [ + self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', + self::EQUAL => 'EQUAL', + self::LESS_THAN => 'LESS_THAN', + self::GREATER_THAN => 'GREATER_THAN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operation::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericFilter_Operation::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php new file mode 100644 index 000000000000..d65da128ca78 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + */ +class NumericValue extends \Google\Protobuf\Internal\Message +{ + protected $one_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int64_value + * Integer value. + * @type float $double_value + * Double value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Integer value. + * + * Generated from protobuf field int64 int64_value = 1; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(1); + } + + public function hasInt64Value() + { + return $this->hasOneof(1); + } + + /** + * Integer value. + * + * Generated from protobuf field int64 int64_value = 1; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Double value. + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * Double value. + * + * Generated from protobuf field double double_value = 2; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneValue() + { + return $this->whichOneof("one_value"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NumericValue::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericValue::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php new file mode 100644 index 000000000000..c491bcd0cde5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php @@ -0,0 +1,142 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + */ +class StringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $match_type = 0; + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * Required. The match type for the string filter. + * @type string $value + * Required. The string value to be matched against. + * @type bool $case_sensitive + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_StringFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php new file mode 100644 index 000000000000..105fe57e2707 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php @@ -0,0 +1,85 @@ +google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + */ +class MatchType +{ + /** + * Unspecified + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full regular expression matches with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_StringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php new file mode 100644 index 000000000000..c69832492219 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.AudienceEventFilter + */ +class AudienceEventFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The name of the event to match against. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $event_name = ''; + /** + * Optional. If specified, this filter matches events that match both the + * single event name and the parameter filter expressions. AudienceEventFilter + * inside the parameter filter expression cannot be set (For example, nested + * event filters are not supported). This should be a single and_group of + * dimension_or_metric_filter or not_expression; ANDs of ORs are not + * supported. Also, if it includes a filter for "eventCount", only that one + * will be considered; all the other filters will be ignored. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $event_parameter_filter_expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $event_name + * Required. Immutable. The name of the event to match against. + * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $event_parameter_filter_expression + * Optional. If specified, this filter matches events that match both the + * single event name and the parameter filter expressions. AudienceEventFilter + * inside the parameter filter expression cannot be set (For example, nested + * event filters are not supported). This should be a single and_group of + * dimension_or_metric_filter or not_expression; ANDs of ORs are not + * supported. Also, if it includes a filter for "eventCount", only that one + * will be considered; all the other filters will be ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The name of the event to match against. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEventName() + { + return $this->event_name; + } + + /** + * Required. Immutable. The name of the event to match against. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEventName($var) + { + GPBUtil::checkString($var, True); + $this->event_name = $var; + + return $this; + } + + /** + * Optional. If specified, this filter matches events that match both the + * single event name and the parameter filter expressions. AudienceEventFilter + * inside the parameter filter expression cannot be set (For example, nested + * event filters are not supported). This should be a single and_group of + * dimension_or_metric_filter or not_expression; ANDs of ORs are not + * supported. Also, if it includes a filter for "eventCount", only that one + * will be considered; all the other filters will be ignored. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null + */ + public function getEventParameterFilterExpression() + { + return $this->event_parameter_filter_expression; + } + + public function hasEventParameterFilterExpression() + { + return isset($this->event_parameter_filter_expression); + } + + public function clearEventParameterFilterExpression() + { + unset($this->event_parameter_filter_expression); + } + + /** + * Optional. If specified, this filter matches events that match both the + * single event name and the parameter filter expressions. AudienceEventFilter + * inside the parameter filter expression cannot be set (For example, nested + * event filters are not supported). This should be a single and_group of + * dimension_or_metric_filter or not_expression; ANDs of ORs are not + * supported. Also, if it includes a filter for "eventCount", only that one + * will be considered; all the other filters will be ignored. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var + * @return $this + */ + public function setEventParameterFilterExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); + $this->event_parameter_filter_expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php new file mode 100644 index 000000000000..59c9d32c6bbc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php @@ -0,0 +1,101 @@ +google.analytics.admin.v1alpha.AudienceEventTrigger + */ +class AudienceEventTrigger extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The event name that will be logged. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $event_name = ''; + /** + * Required. When to log the event. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $log_condition = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $event_name + * Required. The event name that will be logged. + * @type int $log_condition + * Required. When to log the event. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. The event name that will be logged. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEventName() + { + return $this->event_name; + } + + /** + * Required. The event name that will be logged. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEventName($var) + { + GPBUtil::checkString($var, True); + $this->event_name = $var; + + return $this; + } + + /** + * Required. When to log the event. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLogCondition() + { + return $this->log_condition; + } + + /** + * Required. When to log the event. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLogCondition($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger\LogCondition::class); + $this->log_condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php new file mode 100644 index 000000000000..601573c7be47 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php @@ -0,0 +1,65 @@ +google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + */ +class LogCondition +{ + /** + * Log condition is not specified. + * + * Generated from protobuf enum LOG_CONDITION_UNSPECIFIED = 0; + */ + const LOG_CONDITION_UNSPECIFIED = 0; + /** + * The event should be logged only when a user is joined. + * + * Generated from protobuf enum AUDIENCE_JOINED = 1; + */ + const AUDIENCE_JOINED = 1; + /** + * The event should be logged whenever the Audience condition is met, even + * if the user is already a member of the Audience. + * + * Generated from protobuf enum AUDIENCE_MEMBERSHIP_RENEWED = 2; + */ + const AUDIENCE_MEMBERSHIP_RENEWED = 2; + + private static $valueToName = [ + self::LOG_CONDITION_UNSPECIFIED => 'LOG_CONDITION_UNSPECIFIED', + self::AUDIENCE_JOINED => 'AUDIENCE_JOINED', + self::AUDIENCE_MEMBERSHIP_RENEWED => 'AUDIENCE_MEMBERSHIP_RENEWED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LogCondition::class, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger_LogCondition::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php new file mode 100644 index 000000000000..678328c5477b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php @@ -0,0 +1,148 @@ +google.analytics.admin.v1alpha.AudienceFilterClause + */ +class AudienceFilterClause extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Specifies whether this is an include or exclude filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $clause_type = 0; + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter $simple_filter + * A simple filter that a user must satisfy to be a member of the Audience. + * @type \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter $sequence_filter + * Filters that must occur in a specific order for the user to be a member + * of the Audience. + * @type int $clause_type + * Required. Specifies whether this is an include or exclude filter clause. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * A simple filter that a user must satisfy to be a member of the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * @return \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter|null + */ + public function getSimpleFilter() + { + return $this->readOneof(2); + } + + public function hasSimpleFilter() + { + return $this->hasOneof(2); + } + + /** + * A simple filter that a user must satisfy to be a member of the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * @param \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter $var + * @return $this + */ + public function setSimpleFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Filters that must occur in a specific order for the user to be a member + * of the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter|null + */ + public function getSequenceFilter() + { + return $this->readOneof(3); + } + + public function hasSequenceFilter() + { + return $this->hasOneof(3); + } + + /** + * Filters that must occur in a specific order for the user to be a member + * of the Audience. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter $var + * @return $this + */ + public function setSequenceFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. Specifies whether this is an include or exclude filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getClauseType() + { + return $this->clause_type; + } + + /** + * Required. Specifies whether this is an include or exclude filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setClauseType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterClause\AudienceClauseType::class); + $this->clause_type = $var; + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php new file mode 100644 index 000000000000..a15a7e9cb3b7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php @@ -0,0 +1,68 @@ +google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + */ +class AudienceClauseType +{ + /** + * Unspecified clause type. + * + * Generated from protobuf enum AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + const AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + /** + * Users will be included in the Audience if the filter clause is met. + * + * Generated from protobuf enum INCLUDE = 1; + */ + const PBINCLUDE = 1; + /** + * Users will be excluded from the Audience if the filter clause is met. + * + * Generated from protobuf enum EXCLUDE = 2; + */ + const EXCLUDE = 2; + + private static $valueToName = [ + self::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED => 'AUDIENCE_CLAUSE_TYPE_UNSPECIFIED', + self::PBINCLUDE => 'INCLUDE', + self::EXCLUDE => 'EXCLUDE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AudienceClauseType::class, \Google\Analytics\Admin\V1alpha\AudienceFilterClause_AudienceClauseType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php new file mode 100644 index 000000000000..6ba4a70db679 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php @@ -0,0 +1,228 @@ +google.analytics.admin.v1alpha.AudienceFilterExpression + */ +class AudienceFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $and_group + * A list of expressions to be AND’ed together. It can only contain + * AudienceFilterExpressions with or_group. This must be set for the top + * level AudienceFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $or_group + * A list of expressions to OR’ed together. It cannot contain + * AudienceFilterExpressions with and_group or or_group. + * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $not_expression + * A filter expression to be NOT'ed (For example, inverted, complemented). + * It can only include a dimension_or_metric_filter. This cannot be set on + * the top level AudienceFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter $dimension_or_metric_filter + * A filter on a single dimension or metric. This cannot be set on the top + * level AudienceFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\AudienceEventFilter $event_filter + * Creates a filter that matches a specific event. This cannot be set on the + * top level AudienceFilterExpression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * A list of expressions to be AND’ed together. It can only contain + * AudienceFilterExpressions with or_group. This must be set for the top + * level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList|null + */ + public function getAndGroup() + { + return $this->readOneof(1); + } + + public function hasAndGroup() + { + return $this->hasOneof(1); + } + + /** + * A list of expressions to be AND’ed together. It can only contain + * AudienceFilterExpressions with or_group. This must be set for the top + * level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $var + * @return $this + */ + public function setAndGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A list of expressions to OR’ed together. It cannot contain + * AudienceFilterExpressions with and_group or or_group. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(2); + } + + public function hasOrGroup() + { + return $this->hasOneof(2); + } + + /** + * A list of expressions to OR’ed together. It cannot contain + * AudienceFilterExpressions with and_group or or_group. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter expression to be NOT'ed (For example, inverted, complemented). + * It can only include a dimension_or_metric_filter. This cannot be set on + * the top level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(3); + } + + public function hasNotExpression() + { + return $this->hasOneof(3); + } + + /** + * A filter expression to be NOT'ed (For example, inverted, complemented). + * It can only include a dimension_or_metric_filter. This cannot be set on + * the top level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A filter on a single dimension or metric. This cannot be set on the top + * level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter|null + */ + public function getDimensionOrMetricFilter() + { + return $this->readOneof(4); + } + + public function hasDimensionOrMetricFilter() + { + return $this->hasOneof(4); + } + + /** + * A filter on a single dimension or metric. This cannot be set on the top + * level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter $var + * @return $this + */ + public function setDimensionOrMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Creates a filter that matches a specific event. This cannot be set on the + * top level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * @return \Google\Analytics\Admin\V1alpha\AudienceEventFilter|null + */ + public function getEventFilter() + { + return $this->readOneof(5); + } + + public function hasEventFilter() + { + return $this->hasOneof(5); + } + + /** + * Creates a filter that matches a specific event. This cannot be set on the + * top level AudienceFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * @param \Google\Analytics\Admin\V1alpha\AudienceEventFilter $var + * @return $this + */ + public function setEventFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceEventFilter::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getExpr() + { + return $this->whichOneof("expr"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php new file mode 100644 index 000000000000..8b88c4a949e6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.AudienceFilterExpressionList + */ +class AudienceFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of Audience filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + */ + private $filter_expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions + * A list of Audience filter expressions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * A list of Audience filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterExpressions() + { + return $this->filter_expressions; + } + + /** + * A list of Audience filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AudienceFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); + $this->filter_expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php new file mode 100644 index 000000000000..c435fdcb3dcb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.AudienceFilterScope + */ +class AudienceFilterScope +{ + /** + * Scope is not specified. + * + * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + */ + const AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + /** + * User joins the Audience if the filter condition is met within one + * event. + * + * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + */ + const AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + /** + * User joins the Audience if the filter condition is met within one + * session. + * + * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + */ + const AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + /** + * User joins the Audience if the filter condition is met by any event + * across any session. + * + * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; + */ + const AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; + + private static $valueToName = [ + self::AUDIENCE_FILTER_SCOPE_UNSPECIFIED => 'AUDIENCE_FILTER_SCOPE_UNSPECIFIED', + self::AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT => 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT', + self::AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION => 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION', + self::AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS => 'AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php new file mode 100644 index 000000000000..8488446af7a6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php @@ -0,0 +1,150 @@ +google.analytics.admin.v1alpha.AudienceSequenceFilter + */ +class AudienceSequenceFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. Specifies the scope for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Optional. Defines the time period in which the whole sequence must occur. + * + * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sequence_maximum_duration = null; + /** + * Required. An ordered sequence of steps. A user must complete each step in + * order to join the sequence filter. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $sequence_steps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $scope + * Required. Immutable. Specifies the scope for this filter. + * @type \Google\Protobuf\Duration $sequence_maximum_duration + * Optional. Defines the time period in which the whole sequence must occur. + * @type array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $sequence_steps + * Required. An ordered sequence of steps. A user must complete each step in + * order to join the sequence filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. Specifies the scope for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. Specifies the scope for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. Defines the time period in which the whole sequence must occur. + * + * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getSequenceMaximumDuration() + { + return $this->sequence_maximum_duration; + } + + public function hasSequenceMaximumDuration() + { + return isset($this->sequence_maximum_duration); + } + + public function clearSequenceMaximumDuration() + { + unset($this->sequence_maximum_duration); + } + + /** + * Optional. Defines the time period in which the whole sequence must occur. + * + * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setSequenceMaximumDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->sequence_maximum_duration = $var; + + return $this; + } + + /** + * Required. An ordered sequence of steps. A user must complete each step in + * order to join the sequence filter. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSequenceSteps() + { + return $this->sequence_steps; + } + + /** + * Required. An ordered sequence of steps. A user must complete each step in + * order to join the sequence filter. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSequenceSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep::class); + $this->sequence_steps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php new file mode 100644 index 000000000000..13ca6308dfd6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php @@ -0,0 +1,225 @@ +google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + */ +class AudienceSequenceStep extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. Specifies the scope for this step. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Optional. If true, the event satisfying this step must be the very next + * event after the event satisfying the last step. If unset or false, this + * step indirectly follows the prior step; for example, there may be + * events between the prior step and this step. It is ignored for the + * first step. + * + * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $immediately_follows = false; + /** + * Optional. When set, this step must be satisfied within the + * constraint_duration of the previous step (For example, t[i] - t[i-1] <= + * constraint_duration). If not set, there is no duration requirement (the + * duration is effectively unlimited). It is ignored for the first step. + * + * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $constraint_duration = null; + /** + * Required. Immutable. A logical expression of Audience dimension, metric, + * or event filters in each step. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $filter_expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $scope + * Required. Immutable. Specifies the scope for this step. + * @type bool $immediately_follows + * Optional. If true, the event satisfying this step must be the very next + * event after the event satisfying the last step. If unset or false, this + * step indirectly follows the prior step; for example, there may be + * events between the prior step and this step. It is ignored for the + * first step. + * @type \Google\Protobuf\Duration $constraint_duration + * Optional. When set, this step must be satisfied within the + * constraint_duration of the previous step (For example, t[i] - t[i-1] <= + * constraint_duration). If not set, there is no duration requirement (the + * duration is effectively unlimited). It is ignored for the first step. + * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $filter_expression + * Required. Immutable. A logical expression of Audience dimension, metric, + * or event filters in each step. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. Specifies the scope for this step. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. Specifies the scope for this step. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. If true, the event satisfying this step must be the very next + * event after the event satisfying the last step. If unset or false, this + * step indirectly follows the prior step; for example, there may be + * events between the prior step and this step. It is ignored for the + * first step. + * + * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getImmediatelyFollows() + { + return $this->immediately_follows; + } + + /** + * Optional. If true, the event satisfying this step must be the very next + * event after the event satisfying the last step. If unset or false, this + * step indirectly follows the prior step; for example, there may be + * events between the prior step and this step. It is ignored for the + * first step. + * + * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setImmediatelyFollows($var) + { + GPBUtil::checkBool($var); + $this->immediately_follows = $var; + + return $this; + } + + /** + * Optional. When set, this step must be satisfied within the + * constraint_duration of the previous step (For example, t[i] - t[i-1] <= + * constraint_duration). If not set, there is no duration requirement (the + * duration is effectively unlimited). It is ignored for the first step. + * + * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getConstraintDuration() + { + return $this->constraint_duration; + } + + public function hasConstraintDuration() + { + return isset($this->constraint_duration); + } + + public function clearConstraintDuration() + { + unset($this->constraint_duration); + } + + /** + * Optional. When set, this step must be satisfied within the + * constraint_duration of the previous step (For example, t[i] - t[i-1] <= + * constraint_duration). If not set, there is no duration requirement (the + * duration is effectively unlimited). It is ignored for the first step. + * + * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setConstraintDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->constraint_duration = $var; + + return $this; + } + + /** + * Required. Immutable. A logical expression of Audience dimension, metric, + * or event filters in each step. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null + */ + public function getFilterExpression() + { + return $this->filter_expression; + } + + public function hasFilterExpression() + { + return isset($this->filter_expression); + } + + public function clearFilterExpression() + { + unset($this->filter_expression); + } + + /** + * Required. Immutable. A logical expression of Audience dimension, metric, + * or event filters in each step. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var + * @return $this + */ + public function setFilterExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); + $this->filter_expression = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AudienceSequenceStep::class, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter_AudienceSequenceStep::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php new file mode 100644 index 000000000000..26f27aa25a82 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php @@ -0,0 +1,116 @@ +google.analytics.admin.v1alpha.AudienceSimpleFilter + */ +class AudienceSimpleFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. Specifies the scope for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Required. Immutable. A logical expression of Audience dimension, metric, or + * event filters. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $filter_expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $scope + * Required. Immutable. Specifies the scope for this filter. + * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $filter_expression + * Required. Immutable. A logical expression of Audience dimension, metric, or + * event filters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. Specifies the scope for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. Specifies the scope for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Required. Immutable. A logical expression of Audience dimension, metric, or + * event filters. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null + */ + public function getFilterExpression() + { + return $this->filter_expression; + } + + public function hasFilterExpression() + { + return isset($this->filter_expression); + } + + public function clearFilterExpression() + { + unset($this->filter_expression); + } + + /** + * Required. Immutable. A logical expression of Audience dimension, metric, or + * event filters. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var + * @return $this + */ + public function setFilterExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); + $this->filter_expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php new file mode 100644 index 000000000000..537b7dbd330a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + */ +class BatchCreateAccessBindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account or property that owns the access bindings. The parent + * field in the CreateAccessBindingRequest messages must either be empty or + * match this field. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The requests specifying the access bindings to create. + * A maximum of 1000 access bindings can be created in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The account or property that owns the access bindings. The parent + * field in the CreateAccessBindingRequest messages must either be empty or + * match this field. Formats: + * - accounts/{account} + * - properties/{property} + * @type array<\Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The requests specifying the access bindings to create. + * A maximum of 1000 access bindings can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account or property that owns the access bindings. The parent + * field in the CreateAccessBindingRequest messages must either be empty or + * match this field. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The account or property that owns the access bindings. The parent + * field in the CreateAccessBindingRequest messages must either be empty or + * match this field. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The requests specifying the access bindings to create. + * A maximum of 1000 access bindings can be created in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The requests specifying the access bindings to create. + * A maximum of 1000 access bindings can be created in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php new file mode 100644 index 000000000000..20b38e1f4086 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + */ +class BatchCreateAccessBindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The access bindings created. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + private $access_bindings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings + * The access bindings created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The access bindings created. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccessBindings() + { + return $this->access_bindings; + } + + /** + * The access bindings created. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccessBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); + $this->access_bindings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php new file mode 100644 index 000000000000..4aae0f4947b9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + */ +class BatchDeleteAccessBindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field in DeleteAccessBindingRequest + * messages must match this field. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The requests specifying the access bindings to delete. + * A maximum of 1000 access bindings can be deleted in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field in DeleteAccessBindingRequest + * messages must match this field. Formats: + * - accounts/{account} + * - properties/{property} + * @type array<\Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The requests specifying the access bindings to delete. + * A maximum of 1000 access bindings can be deleted in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field in DeleteAccessBindingRequest + * messages must match this field. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field in DeleteAccessBindingRequest + * messages must match this field. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The requests specifying the access bindings to delete. + * A maximum of 1000 access bindings can be deleted in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The requests specifying the access bindings to delete. + * A maximum of 1000 access bindings can be deleted in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php new file mode 100644 index 000000000000..b1880eb346b5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php @@ -0,0 +1,133 @@ +google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + */ +class BatchGetAccessBindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field must match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The names of the access bindings to retrieve. + * A maximum of 1000 access bindings can be retrieved in a batch. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field must match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Required. The names of the access bindings to retrieve. + * A maximum of 1000 access bindings can be retrieved in a batch. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field must match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field must match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The names of the access bindings to retrieve. + * A maximum of 1000 access bindings can be retrieved in a batch. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The names of the access bindings to retrieve. + * A maximum of 1000 access bindings can be retrieved in a batch. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php new file mode 100644 index 000000000000..1d081d8da436 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + */ +class BatchGetAccessBindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The requested access bindings. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + private $access_bindings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings + * The requested access bindings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The requested access bindings. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccessBindings() + { + return $this->access_bindings; + } + + /** + * The requested access bindings. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccessBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); + $this->access_bindings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php new file mode 100644 index 000000000000..a79e2f38d164 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + */ +class BatchUpdateAccessBindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided AccessBinding in UpdateAccessBindingRequest messages must + * match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The requests specifying the access bindings to update. + * A maximum of 1000 access bindings can be updated in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The account or property that owns the access bindings. The parent + * of all provided AccessBinding in UpdateAccessBindingRequest messages must + * match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * @type array<\Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Required. The requests specifying the access bindings to update. + * A maximum of 1000 access bindings can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided AccessBinding in UpdateAccessBindingRequest messages must + * match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The account or property that owns the access bindings. The parent + * of all provided AccessBinding in UpdateAccessBindingRequest messages must + * match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The requests specifying the access bindings to update. + * A maximum of 1000 access bindings can be updated in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The requests specifying the access bindings to update. + * A maximum of 1000 access bindings can be updated in a batch. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php new file mode 100644 index 000000000000..9624005bb343 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + */ +class BatchUpdateAccessBindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The access bindings updated. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + private $access_bindings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings + * The access bindings updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The access bindings updated. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccessBindings() + { + return $this->access_bindings; + } + + /** + * The access bindings updated. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccessBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); + $this->access_bindings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php new file mode 100644 index 000000000000..dbdff98a75fc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php @@ -0,0 +1,393 @@ +google.analytics.admin.v1alpha.BigQueryLink + */ +class BigQueryLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this BigQuery link. + * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' + * Format: 'properties/1234/bigQueryLinks/abc567' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The linked Google Cloud project. When creating a BigQueryLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, the returned project will always + * have a project that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $project = ''; + /** + * Output only. Time when the link was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * If set true, enables daily data export to the linked Google Cloud project. + * + * Generated from protobuf field bool daily_export_enabled = 4; + */ + protected $daily_export_enabled = false; + /** + * If set true, enables streaming export to the linked Google Cloud project. + * + * Generated from protobuf field bool streaming_export_enabled = 5; + */ + protected $streaming_export_enabled = false; + /** + * If set true, enables fresh daily export to the linked Google Cloud project. + * + * Generated from protobuf field bool fresh_daily_export_enabled = 9; + */ + protected $fresh_daily_export_enabled = false; + /** + * If set true, exported data will include advertising identifiers for mobile + * app streams. + * + * Generated from protobuf field bool include_advertising_id = 6; + */ + protected $include_advertising_id = false; + /** + * The list of streams under the parent property for which data will be + * exported. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: ['properties/1000/dataStreams/2000'] + * + * Generated from protobuf field repeated string export_streams = 7; + */ + private $export_streams; + /** + * The list of event names that will be excluded from exports. + * + * Generated from protobuf field repeated string excluded_events = 8; + */ + private $excluded_events; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this BigQuery link. + * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' + * Format: 'properties/1234/bigQueryLinks/abc567' + * @type string $project + * Immutable. The linked Google Cloud project. When creating a BigQueryLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, the returned project will always + * have a project that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the link was created. + * @type bool $daily_export_enabled + * If set true, enables daily data export to the linked Google Cloud project. + * @type bool $streaming_export_enabled + * If set true, enables streaming export to the linked Google Cloud project. + * @type bool $fresh_daily_export_enabled + * If set true, enables fresh daily export to the linked Google Cloud project. + * @type bool $include_advertising_id + * If set true, exported data will include advertising identifiers for mobile + * app streams. + * @type array|\Google\Protobuf\Internal\RepeatedField $export_streams + * The list of streams under the parent property for which data will be + * exported. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: ['properties/1000/dataStreams/2000'] + * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_events + * The list of event names that will be excluded from exports. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this BigQuery link. + * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' + * Format: 'properties/1234/bigQueryLinks/abc567' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this BigQuery link. + * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' + * Format: 'properties/1234/bigQueryLinks/abc567' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The linked Google Cloud project. When creating a BigQueryLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, the returned project will always + * have a project that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Immutable. The linked Google Cloud project. When creating a BigQueryLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, the returned project will always + * have a project that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Output only. Time when the link was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the link was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * If set true, enables daily data export to the linked Google Cloud project. + * + * Generated from protobuf field bool daily_export_enabled = 4; + * @return bool + */ + public function getDailyExportEnabled() + { + return $this->daily_export_enabled; + } + + /** + * If set true, enables daily data export to the linked Google Cloud project. + * + * Generated from protobuf field bool daily_export_enabled = 4; + * @param bool $var + * @return $this + */ + public function setDailyExportEnabled($var) + { + GPBUtil::checkBool($var); + $this->daily_export_enabled = $var; + + return $this; + } + + /** + * If set true, enables streaming export to the linked Google Cloud project. + * + * Generated from protobuf field bool streaming_export_enabled = 5; + * @return bool + */ + public function getStreamingExportEnabled() + { + return $this->streaming_export_enabled; + } + + /** + * If set true, enables streaming export to the linked Google Cloud project. + * + * Generated from protobuf field bool streaming_export_enabled = 5; + * @param bool $var + * @return $this + */ + public function setStreamingExportEnabled($var) + { + GPBUtil::checkBool($var); + $this->streaming_export_enabled = $var; + + return $this; + } + + /** + * If set true, enables fresh daily export to the linked Google Cloud project. + * + * Generated from protobuf field bool fresh_daily_export_enabled = 9; + * @return bool + */ + public function getFreshDailyExportEnabled() + { + return $this->fresh_daily_export_enabled; + } + + /** + * If set true, enables fresh daily export to the linked Google Cloud project. + * + * Generated from protobuf field bool fresh_daily_export_enabled = 9; + * @param bool $var + * @return $this + */ + public function setFreshDailyExportEnabled($var) + { + GPBUtil::checkBool($var); + $this->fresh_daily_export_enabled = $var; + + return $this; + } + + /** + * If set true, exported data will include advertising identifiers for mobile + * app streams. + * + * Generated from protobuf field bool include_advertising_id = 6; + * @return bool + */ + public function getIncludeAdvertisingId() + { + return $this->include_advertising_id; + } + + /** + * If set true, exported data will include advertising identifiers for mobile + * app streams. + * + * Generated from protobuf field bool include_advertising_id = 6; + * @param bool $var + * @return $this + */ + public function setIncludeAdvertisingId($var) + { + GPBUtil::checkBool($var); + $this->include_advertising_id = $var; + + return $this; + } + + /** + * The list of streams under the parent property for which data will be + * exported. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: ['properties/1000/dataStreams/2000'] + * + * Generated from protobuf field repeated string export_streams = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExportStreams() + { + return $this->export_streams; + } + + /** + * The list of streams under the parent property for which data will be + * exported. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: ['properties/1000/dataStreams/2000'] + * + * Generated from protobuf field repeated string export_streams = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExportStreams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->export_streams = $arr; + + return $this; + } + + /** + * The list of event names that will be excluded from exports. + * + * Generated from protobuf field repeated string excluded_events = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExcludedEvents() + { + return $this->excluded_events; + } + + /** + * The list of event names that will be excluded from exports. + * + * Generated from protobuf field repeated string excluded_events = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExcludedEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->excluded_events = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php new file mode 100644 index 000000000000..ef65eb9e7af7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + */ +class CancelDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php new file mode 100644 index 000000000000..a02c687dc6f1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php @@ -0,0 +1,197 @@ +google.analytics.admin.v1alpha.ChangeHistoryChange + */ +class ChangeHistoryChange extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the resource whose changes are described by this entry. + * + * Generated from protobuf field string resource = 1; + */ + protected $resource = ''; + /** + * The type of action that changed this resource. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; + */ + protected $action = 0; + /** + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + */ + protected $resource_before_change = null; + /** + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + */ + protected $resource_after_change = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * Resource name of the resource whose changes are described by this entry. + * @type int $action + * The type of action that changed this resource. + * @type \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $resource_before_change + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * @type \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $resource_after_change + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the resource whose changes are described by this entry. + * + * Generated from protobuf field string resource = 1; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Resource name of the resource whose changes are described by this entry. + * + * Generated from protobuf field string resource = 1; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * The type of action that changed this resource. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * The type of action that changed this resource. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ActionType::class); + $this->action = $var; + + return $this; + } + + /** + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * @return \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource|null + */ + public function getResourceBeforeChange() + { + return $this->resource_before_change; + } + + public function hasResourceBeforeChange() + { + return isset($this->resource_before_change); + } + + public function clearResourceBeforeChange() + { + unset($this->resource_before_change); + } + + /** + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * @param \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $var + * @return $this + */ + public function setResourceBeforeChange($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource::class); + $this->resource_before_change = $var; + + return $this; + } + + /** + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * @return \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource|null + */ + public function getResourceAfterChange() + { + return $this->resource_after_change; + } + + public function hasResourceAfterChange() + { + return isset($this->resource_after_change); + } + + public function clearResourceAfterChange() + { + unset($this->resource_after_change); + } + + /** + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * @param \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $var + * @return $this + */ + public function setResourceAfterChange($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource::class); + $this->resource_after_change = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php new file mode 100644 index 000000000000..782755107f06 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php @@ -0,0 +1,847 @@ +google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + */ +class ChangeHistoryResource extends \Google\Protobuf\Internal\Message +{ + protected $resource; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Account $account + * A snapshot of an Account resource in change history. + * @type \Google\Analytics\Admin\V1alpha\Property $property + * A snapshot of a Property resource in change history. + * @type \Google\Analytics\Admin\V1alpha\FirebaseLink $firebase_link + * A snapshot of a FirebaseLink resource in change history. + * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link + * A snapshot of a GoogleAdsLink resource in change history. + * @type \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $google_signals_settings + * A snapshot of a GoogleSignalsSettings resource in change history. + * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link + * A snapshot of a DisplayVideo360AdvertiserLink resource in change + * history. + * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal + * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in + * change history. + * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event + * A snapshot of a ConversionEvent resource in change history. + * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret + * A snapshot of a MeasurementProtocolSecret resource in change history. + * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension + * A snapshot of a CustomDimension resource in change history. + * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric + * A snapshot of a CustomMetric resource in change history. + * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings + * A snapshot of a data retention settings resource in change history. + * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link + * A snapshot of a SearchAds360Link resource in change history. + * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream + * A snapshot of a DataStream resource in change history. + * @type \Google\Analytics\Admin\V1alpha\AttributionSettings $attribution_settings + * A snapshot of AttributionSettings resource in change history. + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set + * A snapshot of an ExpandedDataSet resource in change history. + * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group + * A snapshot of a ChannelGroup resource in change history. + * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link + * A snapshot of a BigQuery link resource in change history. + * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings + * A snapshot of EnhancedMeasurementSettings resource in change history. + * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings + * A snapshot of DataRedactionSettings resource in change history. + * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema + * A snapshot of SKAdNetworkConversionValueSchema resource in change + * history. + * @type \Google\Analytics\Admin\V1alpha\AdSenseLink $adsense_link + * A snapshot of an AdSenseLink resource in change history. + * @type \Google\Analytics\Admin\V1alpha\Audience $audience + * A snapshot of an Audience resource in change history. + * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule + * A snapshot of an EventCreateRule resource in change history. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A snapshot of an Account resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; + * @return \Google\Analytics\Admin\V1alpha\Account|null + */ + public function getAccount() + { + return $this->readOneof(1); + } + + public function hasAccount() + { + return $this->hasOneof(1); + } + + /** + * A snapshot of an Account resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; + * @param \Google\Analytics\Admin\V1alpha\Account $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A snapshot of a Property resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 2; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getProperty() + { + return $this->readOneof(2); + } + + public function hasProperty() + { + return $this->hasOneof(2); + } + + /** + * A snapshot of a Property resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 2; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A snapshot of a FirebaseLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * @return \Google\Analytics\Admin\V1alpha\FirebaseLink|null + */ + public function getFirebaseLink() + { + return $this->readOneof(6); + } + + public function hasFirebaseLink() + { + return $this->hasOneof(6); + } + + /** + * A snapshot of a FirebaseLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * @param \Google\Analytics\Admin\V1alpha\FirebaseLink $var + * @return $this + */ + public function setFirebaseLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * A snapshot of a GoogleAdsLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null + */ + public function getGoogleAdsLink() + { + return $this->readOneof(7); + } + + public function hasGoogleAdsLink() + { + return $this->hasOneof(7); + } + + /** + * A snapshot of a GoogleAdsLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var + * @return $this + */ + public function setGoogleAdsLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * A snapshot of a GoogleSignalsSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings|null + */ + public function getGoogleSignalsSettings() + { + return $this->readOneof(8); + } + + public function hasGoogleSignalsSettings() + { + return $this->hasOneof(8); + } + + /** + * A snapshot of a GoogleSignalsSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * @param \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $var + * @return $this + */ + public function setGoogleSignalsSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * A snapshot of a DisplayVideo360AdvertiserLink resource in change + * history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null + */ + public function getDisplayVideo360AdvertiserLink() + { + return $this->readOneof(9); + } + + public function hasDisplayVideo360AdvertiserLink() + { + return $this->hasOneof(9); + } + + /** + * A snapshot of a DisplayVideo360AdvertiserLink resource in change + * history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in + * change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null + */ + public function getDisplayVideo360AdvertiserLinkProposal() + { + return $this->readOneof(10); + } + + public function hasDisplayVideo360AdvertiserLinkProposal() + { + return $this->hasOneof(10); + } + + /** + * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in + * change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLinkProposal($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * A snapshot of a ConversionEvent resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null + */ + public function getConversionEvent() + { + return $this->readOneof(11); + } + + public function hasConversionEvent() + { + return $this->hasOneof(11); + } + + /** + * A snapshot of a ConversionEvent resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * A snapshot of a MeasurementProtocolSecret resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null + */ + public function getMeasurementProtocolSecret() + { + return $this->readOneof(12); + } + + public function hasMeasurementProtocolSecret() + { + return $this->hasOneof(12); + } + + /** + * A snapshot of a MeasurementProtocolSecret resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var + * @return $this + */ + public function setMeasurementProtocolSecret($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * A snapshot of a CustomDimension resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null + */ + public function getCustomDimension() + { + return $this->readOneof(13); + } + + public function hasCustomDimension() + { + return $this->hasOneof(13); + } + + /** + * A snapshot of a CustomDimension resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var + * @return $this + */ + public function setCustomDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * A snapshot of a CustomMetric resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null + */ + public function getCustomMetric() + { + return $this->readOneof(14); + } + + public function hasCustomMetric() + { + return $this->hasOneof(14); + } + + /** + * A snapshot of a CustomMetric resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var + * @return $this + */ + public function setCustomMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * A snapshot of a data retention settings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null + */ + public function getDataRetentionSettings() + { + return $this->readOneof(15); + } + + public function hasDataRetentionSettings() + { + return $this->hasOneof(15); + } + + /** + * A snapshot of a data retention settings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var + * @return $this + */ + public function setDataRetentionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * A snapshot of a SearchAds360Link resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null + */ + public function getSearchAds360Link() + { + return $this->readOneof(16); + } + + public function hasSearchAds360Link() + { + return $this->hasOneof(16); + } + + /** + * A snapshot of a SearchAds360Link resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var + * @return $this + */ + public function setSearchAds360Link($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * A snapshot of a DataStream resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * @return \Google\Analytics\Admin\V1alpha\DataStream|null + */ + public function getDataStream() + { + return $this->readOneof(18); + } + + public function hasDataStream() + { + return $this->hasOneof(18); + } + + /** + * A snapshot of a DataStream resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * @param \Google\Analytics\Admin\V1alpha\DataStream $var + * @return $this + */ + public function setDataStream($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * A snapshot of AttributionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * @return \Google\Analytics\Admin\V1alpha\AttributionSettings|null + */ + public function getAttributionSettings() + { + return $this->readOneof(20); + } + + public function hasAttributionSettings() + { + return $this->hasOneof(20); + } + + /** + * A snapshot of AttributionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $var + * @return $this + */ + public function setAttributionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AttributionSettings::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * A snapshot of an ExpandedDataSet resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null + */ + public function getExpandedDataSet() + { + return $this->readOneof(21); + } + + public function hasExpandedDataSet() + { + return $this->hasOneof(21); + } + + /** + * A snapshot of an ExpandedDataSet resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var + * @return $this + */ + public function setExpandedDataSet($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * A snapshot of a ChannelGroup resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null + */ + public function getChannelGroup() + { + return $this->readOneof(22); + } + + public function hasChannelGroup() + { + return $this->hasOneof(22); + } + + /** + * A snapshot of a ChannelGroup resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var + * @return $this + */ + public function setChannelGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * A snapshot of a BigQuery link resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null + */ + public function getBigqueryLink() + { + return $this->readOneof(23); + } + + public function hasBigqueryLink() + { + return $this->hasOneof(23); + } + + /** + * A snapshot of a BigQuery link resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var + * @return $this + */ + public function setBigqueryLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); + $this->writeOneof(23, $var); + + return $this; + } + + /** + * A snapshot of EnhancedMeasurementSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings|null + */ + public function getEnhancedMeasurementSettings() + { + return $this->readOneof(24); + } + + public function hasEnhancedMeasurementSettings() + { + return $this->hasOneof(24); + } + + /** + * A snapshot of EnhancedMeasurementSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $var + * @return $this + */ + public function setEnhancedMeasurementSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings::class); + $this->writeOneof(24, $var); + + return $this; + } + + /** + * A snapshot of DataRedactionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null + */ + public function getDataRedactionSettings() + { + return $this->readOneof(25); + } + + public function hasDataRedactionSettings() + { + return $this->hasOneof(25); + } + + /** + * A snapshot of DataRedactionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var + * @return $this + */ + public function setDataRedactionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); + $this->writeOneof(25, $var); + + return $this; + } + + /** + * A snapshot of SKAdNetworkConversionValueSchema resource in change + * history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null + */ + public function getSkadnetworkConversionValueSchema() + { + return $this->readOneof(26); + } + + public function hasSkadnetworkConversionValueSchema() + { + return $this->hasOneof(26); + } + + /** + * A snapshot of SKAdNetworkConversionValueSchema resource in change + * history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var + * @return $this + */ + public function setSkadnetworkConversionValueSchema($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); + $this->writeOneof(26, $var); + + return $this; + } + + /** + * A snapshot of an AdSenseLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * @return \Google\Analytics\Admin\V1alpha\AdSenseLink|null + */ + public function getAdsenseLink() + { + return $this->readOneof(27); + } + + public function hasAdsenseLink() + { + return $this->hasOneof(27); + } + + /** + * A snapshot of an AdSenseLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $var + * @return $this + */ + public function setAdsenseLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * A snapshot of an Audience resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 28; + * @return \Google\Analytics\Admin\V1alpha\Audience|null + */ + public function getAudience() + { + return $this->readOneof(28); + } + + public function hasAudience() + { + return $this->hasOneof(28); + } + + /** + * A snapshot of an Audience resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 28; + * @param \Google\Analytics\Admin\V1alpha\Audience $var + * @return $this + */ + public function setAudience($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); + $this->writeOneof(28, $var); + + return $this; + } + + /** + * A snapshot of an EventCreateRule resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null + */ + public function getEventCreateRule() + { + return $this->readOneof(29); + } + + public function hasEventCreateRule() + { + return $this->hasOneof(29); + } + + /** + * A snapshot of an EventCreateRule resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var + * @return $this + */ + public function setEventCreateRule($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); + $this->writeOneof(29, $var); + + return $this; + } + + /** + * @return string + */ + public function getResource() + { + return $this->whichOneof("resource"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChangeHistoryResource::class, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange_ChangeHistoryResource::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php new file mode 100644 index 000000000000..d399dea64b76 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php @@ -0,0 +1,266 @@ +google.analytics.admin.v1alpha.ChangeHistoryEvent + */ +class ChangeHistoryEvent extends \Google\Protobuf\Internal\Message +{ + /** + * ID of this change history event. This ID is unique across Google Analytics. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Time when change was made. + * + * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; + */ + protected $change_time = null; + /** + * The type of actor that made this change. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; + */ + protected $actor_type = 0; + /** + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * + * Generated from protobuf field string user_actor_email = 4; + */ + protected $user_actor_email = ''; + /** + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * + * Generated from protobuf field bool changes_filtered = 5; + */ + protected $changes_filtered = false; + /** + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + private $changes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * ID of this change history event. This ID is unique across Google Analytics. + * @type \Google\Protobuf\Timestamp $change_time + * Time when change was made. + * @type int $actor_type + * The type of actor that made this change. + * @type string $user_actor_email + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * @type bool $changes_filtered + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * @type array<\Google\Analytics\Admin\V1alpha\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $changes + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * ID of this change history event. This ID is unique across Google Analytics. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID of this change history event. This ID is unique across Google Analytics. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Time when change was made. + * + * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getChangeTime() + { + return $this->change_time; + } + + public function hasChangeTime() + { + return isset($this->change_time); + } + + public function clearChangeTime() + { + unset($this->change_time); + } + + /** + * Time when change was made. + * + * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->change_time = $var; + + return $this; + } + + /** + * The type of actor that made this change. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * @return int + */ + public function getActorType() + { + return $this->actor_type; + } + + /** + * The type of actor that made this change. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * @param int $var + * @return $this + */ + public function setActorType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ActorType::class); + $this->actor_type = $var; + + return $this; + } + + /** + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * + * Generated from protobuf field string user_actor_email = 4; + * @return string + */ + public function getUserActorEmail() + { + return $this->user_actor_email; + } + + /** + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * + * Generated from protobuf field string user_actor_email = 4; + * @param string $var + * @return $this + */ + public function setUserActorEmail($var) + { + GPBUtil::checkString($var, True); + $this->user_actor_email = $var; + + return $this; + } + + /** + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * + * Generated from protobuf field bool changes_filtered = 5; + * @return bool + */ + public function getChangesFiltered() + { + return $this->changes_filtered; + } + + /** + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * + * Generated from protobuf field bool changes_filtered = 5; + * @param bool $var + * @return $this + */ + public function setChangesFiltered($var) + { + GPBUtil::checkBool($var); + $this->changes_filtered = $var; + + return $this; + } + + /** + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChanges() + { + return $this->changes; + } + + /** + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + * @param array<\Google\Analytics\Admin\V1alpha\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange::class); + $this->changes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php new file mode 100644 index 000000000000..f42497a79ac6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php @@ -0,0 +1,208 @@ +google.analytics.admin.v1alpha.ChangeHistoryResourceType + */ +class ChangeHistoryResourceType +{ + /** + * Resource type unknown or not specified. + * + * Generated from protobuf enum CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Account resource + * + * Generated from protobuf enum ACCOUNT = 1; + */ + const ACCOUNT = 1; + /** + * Property resource + * + * Generated from protobuf enum PROPERTY = 2; + */ + const PROPERTY = 2; + /** + * FirebaseLink resource + * + * Generated from protobuf enum FIREBASE_LINK = 6; + */ + const FIREBASE_LINK = 6; + /** + * GoogleAdsLink resource + * + * Generated from protobuf enum GOOGLE_ADS_LINK = 7; + */ + const GOOGLE_ADS_LINK = 7; + /** + * GoogleSignalsSettings resource + * + * Generated from protobuf enum GOOGLE_SIGNALS_SETTINGS = 8; + */ + const GOOGLE_SIGNALS_SETTINGS = 8; + /** + * ConversionEvent resource + * + * Generated from protobuf enum CONVERSION_EVENT = 9; + */ + const CONVERSION_EVENT = 9; + /** + * MeasurementProtocolSecret resource + * + * Generated from protobuf enum MEASUREMENT_PROTOCOL_SECRET = 10; + */ + const MEASUREMENT_PROTOCOL_SECRET = 10; + /** + * CustomDimension resource + * + * Generated from protobuf enum CUSTOM_DIMENSION = 11; + */ + const CUSTOM_DIMENSION = 11; + /** + * CustomMetric resource + * + * Generated from protobuf enum CUSTOM_METRIC = 12; + */ + const CUSTOM_METRIC = 12; + /** + * DataRetentionSettings resource + * + * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13; + */ + const DATA_RETENTION_SETTINGS = 13; + /** + * DisplayVideo360AdvertiserLink resource + * + * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + /** + * DisplayVideo360AdvertiserLinkProposal resource + * + * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + /** + * SearchAds360Link resource + * + * Generated from protobuf enum SEARCH_ADS_360_LINK = 16; + */ + const SEARCH_ADS_360_LINK = 16; + /** + * DataStream resource + * + * Generated from protobuf enum DATA_STREAM = 18; + */ + const DATA_STREAM = 18; + /** + * AttributionSettings resource + * + * Generated from protobuf enum ATTRIBUTION_SETTINGS = 20; + */ + const ATTRIBUTION_SETTINGS = 20; + /** + * ExpandedDataSet resource + * + * Generated from protobuf enum EXPANDED_DATA_SET = 21; + */ + const EXPANDED_DATA_SET = 21; + /** + * ChannelGroup resource + * + * Generated from protobuf enum CHANNEL_GROUP = 22; + */ + const CHANNEL_GROUP = 22; + /** + * EnhancedMeasurementSettings resource + * + * Generated from protobuf enum ENHANCED_MEASUREMENT_SETTINGS = 24; + */ + const ENHANCED_MEASUREMENT_SETTINGS = 24; + /** + * DataRedactionSettings resource + * + * Generated from protobuf enum DATA_REDACTION_SETTINGS = 25; + */ + const DATA_REDACTION_SETTINGS = 25; + /** + * SKAdNetworkConversionValueSchema resource + * + * Generated from protobuf enum SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; + */ + const SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; + /** + * AdSenseLink resource + * + * Generated from protobuf enum ADSENSE_LINK = 27; + */ + const ADSENSE_LINK = 27; + /** + * Audience resource + * + * Generated from protobuf enum AUDIENCE = 28; + */ + const AUDIENCE = 28; + /** + * EventCreateRule resource + * + * Generated from protobuf enum EVENT_CREATE_RULE = 29; + */ + const EVENT_CREATE_RULE = 29; + + private static $valueToName = [ + self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', + self::ACCOUNT => 'ACCOUNT', + self::PROPERTY => 'PROPERTY', + self::FIREBASE_LINK => 'FIREBASE_LINK', + self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK', + self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS', + self::CONVERSION_EVENT => 'CONVERSION_EVENT', + self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET', + self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION', + self::CUSTOM_METRIC => 'CUSTOM_METRIC', + self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS', + self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK', + self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL', + self::SEARCH_ADS_360_LINK => 'SEARCH_ADS_360_LINK', + self::DATA_STREAM => 'DATA_STREAM', + self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS', + self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET', + self::CHANNEL_GROUP => 'CHANNEL_GROUP', + self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS', + self::DATA_REDACTION_SETTINGS => 'DATA_REDACTION_SETTINGS', + self::SKADNETWORK_CONVERSION_VALUE_SCHEMA => 'SKADNETWORK_CONVERSION_VALUE_SCHEMA', + self::ADSENSE_LINK => 'ADSENSE_LINK', + self::AUDIENCE => 'AUDIENCE', + self::EVENT_CREATE_RULE => 'EVENT_CREATE_RULE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php new file mode 100644 index 000000000000..4e54fb6bb465 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php @@ -0,0 +1,215 @@ +google.analytics.admin.v1alpha.ChannelGroup + */ +class ChannelGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this Channel Group resource. + * Format: properties/{property}/channelGroups/{channel_group} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the Channel Group. Max length of 80 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * The description of the Channel Group. Max length of 256 characters. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Required. The grouping rules of channels. Maximum number of rules is 25. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $grouping_rule; + /** + * Output only. Default Channel Group defined by Google, which cannot be + * updated. + * + * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $system_defined = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this Channel Group resource. + * Format: properties/{property}/channelGroups/{channel_group} + * @type string $display_name + * Required. The display name of the Channel Group. Max length of 80 + * characters. + * @type string $description + * The description of the Channel Group. Max length of 256 characters. + * @type array<\Google\Analytics\Admin\V1alpha\GroupingRule>|\Google\Protobuf\Internal\RepeatedField $grouping_rule + * Required. The grouping rules of channels. Maximum number of rules is 25. + * @type bool $system_defined + * Output only. Default Channel Group defined by Google, which cannot be + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this Channel Group resource. + * Format: properties/{property}/channelGroups/{channel_group} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this Channel Group resource. + * Format: properties/{property}/channelGroups/{channel_group} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the Channel Group. Max length of 80 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the Channel Group. Max length of 80 + * characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The description of the Channel Group. Max length of 256 characters. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the Channel Group. Max length of 256 characters. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The grouping rules of channels. Maximum number of rules is 25. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGroupingRule() + { + return $this->grouping_rule; + } + + /** + * Required. The grouping rules of channels. Maximum number of rules is 25. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Analytics\Admin\V1alpha\GroupingRule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGroupingRule($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\GroupingRule::class); + $this->grouping_rule = $arr; + + return $this; + } + + /** + * Output only. Default Channel Group defined by Google, which cannot be + * updated. + * + * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getSystemDefined() + { + return $this->system_defined; + } + + /** + * Output only. Default Channel Group defined by Google, which cannot be + * updated. + * + * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSystemDefined($var) + { + GPBUtil::checkBool($var); + $this->system_defined = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php new file mode 100644 index 000000000000..e655e6cf43f8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php @@ -0,0 +1,145 @@ +google.analytics.admin.v1alpha.ChannelGroupFilter + */ +class ChannelGroupFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The dimension name to filter. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $field_name = ''; + protected $value_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter $string_filter + * A filter for a string-type dimension that matches a particular pattern. + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter $in_list_filter + * A filter for a string dimension that matches a particular list of + * options. + * @type string $field_name + * Required. Immutable. The dimension name to filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(2); + } + + public function hasStringFilter() + { + return $this->hasOneof(2); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for a string dimension that matches a particular list of + * options. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter|null + */ + public function getInListFilter() + { + return $this->readOneof(3); + } + + public function hasInListFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for a string dimension that matches a particular list of + * options. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter $var + * @return $this + */ + public function setInListFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. Immutable. The dimension name to filter. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * Required. Immutable. The dimension name to filter. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getValueFilter() + { + return $this->whichOneof("value_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php new file mode 100644 index 000000000000..7a06e006f7a9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + */ +class InListFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * Required. The list of possible string values to match against. Must be + * non-empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_InListFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php new file mode 100644 index 000000000000..11bca6c6afa3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php @@ -0,0 +1,104 @@ +google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + */ +class StringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $match_type = 0; + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * Required. The match type for the string filter. + * @type string $value + * Required. The string value to be matched against. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_StringFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php new file mode 100644 index 000000000000..e2be7673eb98 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php @@ -0,0 +1,92 @@ +google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + */ +class MatchType +{ + /** + * Default match type. + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full regular expression match with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + /** + * Partial regular expression match with the string value. + * + * Generated from protobuf enum PARTIAL_REGEXP = 6; + */ + const PARTIAL_REGEXP = 6; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_StringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php new file mode 100644 index 000000000000..7b52c2651c2c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php @@ -0,0 +1,192 @@ +google.analytics.admin.v1alpha.ChannelGroupFilterExpression + */ +class ChannelGroupFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $and_group + * A list of expressions to be AND’ed together. It can only contain + * ChannelGroupFilterExpressions with or_group. This must be set for the + * top level ChannelGroupFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $or_group + * A list of expressions to OR’ed together. It cannot contain + * ChannelGroupFilterExpressions with and_group or or_group. + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $not_expression + * A filter expression to be NOT'ed (that is inverted, complemented). It + * can only include a dimension_or_metric_filter. This cannot be set on the + * top level ChannelGroupFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter $filter + * A filter on a single dimension. This cannot be set on the top + * level ChannelGroupFilterExpression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * A list of expressions to be AND’ed together. It can only contain + * ChannelGroupFilterExpressions with or_group. This must be set for the + * top level ChannelGroupFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList|null + */ + public function getAndGroup() + { + return $this->readOneof(1); + } + + public function hasAndGroup() + { + return $this->hasOneof(1); + } + + /** + * A list of expressions to be AND’ed together. It can only contain + * ChannelGroupFilterExpressions with or_group. This must be set for the + * top level ChannelGroupFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $var + * @return $this + */ + public function setAndGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A list of expressions to OR’ed together. It cannot contain + * ChannelGroupFilterExpressions with and_group or or_group. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(2); + } + + public function hasOrGroup() + { + return $this->hasOneof(2); + } + + /** + * A list of expressions to OR’ed together. It cannot contain + * ChannelGroupFilterExpressions with and_group or or_group. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter expression to be NOT'ed (that is inverted, complemented). It + * can only include a dimension_or_metric_filter. This cannot be set on the + * top level ChannelGroupFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(3); + } + + public function hasNotExpression() + { + return $this->hasOneof(3); + } + + /** + * A filter expression to be NOT'ed (that is inverted, complemented). It + * can only include a dimension_or_metric_filter. This cannot be set on the + * top level ChannelGroupFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A filter on a single dimension. This cannot be set on the top + * level ChannelGroupFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter|null + */ + public function getFilter() + { + return $this->readOneof(4); + } + + public function hasFilter() + { + return $this->hasOneof(4); + } + + /** + * A filter on a single dimension. This cannot be set on the top + * level ChannelGroupFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getExpr() + { + return $this->whichOneof("expr"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php new file mode 100644 index 000000000000..4264488a1755 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + */ +class ChannelGroupFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of Channel Group filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + */ + private $filter_expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions + * A list of Channel Group filter expressions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * A list of Channel Group filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterExpressions() + { + return $this->filter_expressions; + } + + /** + * A list of Channel Group filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); + $this->filter_expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php new file mode 100644 index 000000000000..fa2d1aab894e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.CoarseValue + */ +class CoarseValue +{ + /** + * Coarse value not specified. + * + * Generated from protobuf enum COARSE_VALUE_UNSPECIFIED = 0; + */ + const COARSE_VALUE_UNSPECIFIED = 0; + /** + * Coarse value of low. + * + * Generated from protobuf enum COARSE_VALUE_LOW = 1; + */ + const COARSE_VALUE_LOW = 1; + /** + * Coarse value of medium. + * + * Generated from protobuf enum COARSE_VALUE_MEDIUM = 2; + */ + const COARSE_VALUE_MEDIUM = 2; + /** + * Coarse value of high. + * + * Generated from protobuf enum COARSE_VALUE_HIGH = 3; + */ + const COARSE_VALUE_HIGH = 3; + + private static $valueToName = [ + self::COARSE_VALUE_UNSPECIFIED => 'COARSE_VALUE_UNSPECIFIED', + self::COARSE_VALUE_LOW => 'COARSE_VALUE_LOW', + self::COARSE_VALUE_MEDIUM => 'COARSE_VALUE_MEDIUM', + self::COARSE_VALUE_HIGH => 'COARSE_VALUE_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php new file mode 100644 index 000000000000..4e530bbbbbd9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1alpha.ConnectedSiteTag + */ +class ConnectedSiteTag extends \Google\Protobuf\Internal\Message +{ + /** + * Required. User-provided display name for the connected site tag. Must be + * less than 256 characters. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. "Tag ID to forward events to. Also known as the Measurement ID, + * or the "G-ID" (For example: G-12345). + * + * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $tag_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. User-provided display name for the connected site tag. Must be + * less than 256 characters. + * @type string $tag_id + * Required. "Tag ID to forward events to. Also known as the Measurement ID, + * or the "G-ID" (For example: G-12345). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Required. User-provided display name for the connected site tag. Must be + * less than 256 characters. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User-provided display name for the connected site tag. Must be + * less than 256 characters. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. "Tag ID to forward events to. Also known as the Measurement ID, + * or the "G-ID" (For example: G-12345). + * + * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTagId() + { + return $this->tag_id; + } + + /** + * Required. "Tag ID to forward events to. Also known as the Measurement ID, + * or the "G-ID" (For example: G-12345). + * + * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTagId($var) + { + GPBUtil::checkString($var, True); + $this->tag_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php new file mode 100644 index 000000000000..32b00e21aab5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php @@ -0,0 +1,287 @@ +google.analytics.admin.v1alpha.ConversionEvent + */ +class ConversionEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * + * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $event_name = ''; + /** + * Output only. Time when this conversion event was created in the property. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deletable = false; + /** + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * + * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom = false; + /** + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $counting_method = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * @type string $event_name + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this conversion event was created in the property. + * @type bool $deletable + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * @type bool $custom + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * @type int $counting_method + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * + * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEventName() + { + return $this->event_name; + } + + /** + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * + * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEventName($var) + { + GPBUtil::checkString($var, True); + $this->event_name = $var; + + return $this; + } + + /** + * Output only. Time when this conversion event was created in the property. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this conversion event was created in the property. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getDeletable() + { + return $this->deletable; + } + + /** + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setDeletable($var) + { + GPBUtil::checkBool($var); + $this->deletable = $var; + + return $this; + } + + /** + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * + * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCustom() + { + return $this->custom; + } + + /** + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * + * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkBool($var); + $this->custom = $var; + + return $this; + } + + /** + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCountingMethod() + { + return $this->counting_method; + } + + /** + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCountingMethod($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ConversionEvent\ConversionCountingMethod::class); + $this->counting_method = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php new file mode 100644 index 000000000000..b22477370f5a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php @@ -0,0 +1,66 @@ +google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod + */ +class ConversionCountingMethod +{ + /** + * Counting method not specified. + * + * Generated from protobuf enum CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + */ + const CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + /** + * Each Event instance is considered a Conversion. + * + * Generated from protobuf enum ONCE_PER_EVENT = 1; + */ + const ONCE_PER_EVENT = 1; + /** + * An Event instance is considered a Conversion at most once per session per + * user. + * + * Generated from protobuf enum ONCE_PER_SESSION = 2; + */ + const ONCE_PER_SESSION = 2; + + private static $valueToName = [ + self::CONVERSION_COUNTING_METHOD_UNSPECIFIED => 'CONVERSION_COUNTING_METHOD_UNSPECIFIED', + self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', + self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConversionCountingMethod::class, \Google\Analytics\Admin\V1alpha\ConversionEvent_ConversionCountingMethod::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php new file mode 100644 index 000000000000..6a01fe7ab131 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php @@ -0,0 +1,254 @@ +google.analytics.admin.v1alpha.ConversionValues + */ +class ConversionValues extends \Google\Protobuf\Internal\Message +{ + /** + * Display name of the SKAdNetwork conversion value. + * The max allowed display name length is 50 UTF-16 code units. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * The fine-grained conversion value. This is applicable only to the first + * postback window. Its valid values are [0,63], both inclusive. It must be + * set for postback window 1, and must not be set for postback window 2 & 3. + * This value is not guaranteed to be unique. + * If the configuration for the first postback window is re-used for second or + * third postback windows this field has no effect. + * + * Generated from protobuf field optional int32 fine_value = 2; + */ + protected $fine_value = null; + /** + * Required. A coarse grained conversion value. + * This value is not guaranteed to be unique. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $coarse_value = 0; + /** + * Event conditions that must be met for this Conversion Value to be achieved. + * The conditions in this list are ANDed together. It must have minimum of 1 + * entry and maximum of 3 entries, if the postback window is enabled. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; + */ + private $event_mappings; + /** + * If true, the SDK should lock to this conversion value for the current + * postback window. + * + * Generated from protobuf field bool lock_enabled = 5; + */ + protected $lock_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Display name of the SKAdNetwork conversion value. + * The max allowed display name length is 50 UTF-16 code units. + * @type int $fine_value + * The fine-grained conversion value. This is applicable only to the first + * postback window. Its valid values are [0,63], both inclusive. It must be + * set for postback window 1, and must not be set for postback window 2 & 3. + * This value is not guaranteed to be unique. + * If the configuration for the first postback window is re-used for second or + * third postback windows this field has no effect. + * @type int $coarse_value + * Required. A coarse grained conversion value. + * This value is not guaranteed to be unique. + * @type array<\Google\Analytics\Admin\V1alpha\EventMapping>|\Google\Protobuf\Internal\RepeatedField $event_mappings + * Event conditions that must be met for this Conversion Value to be achieved. + * The conditions in this list are ANDed together. It must have minimum of 1 + * entry and maximum of 3 entries, if the postback window is enabled. + * @type bool $lock_enabled + * If true, the SDK should lock to this conversion value for the current + * postback window. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Display name of the SKAdNetwork conversion value. + * The max allowed display name length is 50 UTF-16 code units. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the SKAdNetwork conversion value. + * The max allowed display name length is 50 UTF-16 code units. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The fine-grained conversion value. This is applicable only to the first + * postback window. Its valid values are [0,63], both inclusive. It must be + * set for postback window 1, and must not be set for postback window 2 & 3. + * This value is not guaranteed to be unique. + * If the configuration for the first postback window is re-used for second or + * third postback windows this field has no effect. + * + * Generated from protobuf field optional int32 fine_value = 2; + * @return int + */ + public function getFineValue() + { + return isset($this->fine_value) ? $this->fine_value : 0; + } + + public function hasFineValue() + { + return isset($this->fine_value); + } + + public function clearFineValue() + { + unset($this->fine_value); + } + + /** + * The fine-grained conversion value. This is applicable only to the first + * postback window. Its valid values are [0,63], both inclusive. It must be + * set for postback window 1, and must not be set for postback window 2 & 3. + * This value is not guaranteed to be unique. + * If the configuration for the first postback window is re-used for second or + * third postback windows this field has no effect. + * + * Generated from protobuf field optional int32 fine_value = 2; + * @param int $var + * @return $this + */ + public function setFineValue($var) + { + GPBUtil::checkInt32($var); + $this->fine_value = $var; + + return $this; + } + + /** + * Required. A coarse grained conversion value. + * This value is not guaranteed to be unique. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getCoarseValue() + { + return $this->coarse_value; + } + + /** + * Required. A coarse grained conversion value. + * This value is not guaranteed to be unique. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setCoarseValue($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CoarseValue::class); + $this->coarse_value = $var; + + return $this; + } + + /** + * Event conditions that must be met for this Conversion Value to be achieved. + * The conditions in this list are ANDed together. It must have minimum of 1 + * entry and maximum of 3 entries, if the postback window is enabled. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEventMappings() + { + return $this->event_mappings; + } + + /** + * Event conditions that must be met for this Conversion Value to be achieved. + * The conditions in this list are ANDed together. It must have minimum of 1 + * entry and maximum of 3 entries, if the postback window is enabled. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; + * @param array<\Google\Analytics\Admin\V1alpha\EventMapping>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEventMappings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventMapping::class); + $this->event_mappings = $arr; + + return $this; + } + + /** + * If true, the SDK should lock to this conversion value for the current + * postback window. + * + * Generated from protobuf field bool lock_enabled = 5; + * @return bool + */ + public function getLockEnabled() + { + return $this->lock_enabled; + } + + /** + * If true, the SDK should lock to this conversion value for the current + * postback window. + * + * Generated from protobuf field bool lock_enabled = 5; + * @param bool $var + * @return $this + */ + public function setLockEnabled($var) + { + GPBUtil::checkBool($var); + $this->lock_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php new file mode 100644 index 000000000000..fd8100328afe --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php @@ -0,0 +1,119 @@ +google.analytics.admin.v1alpha.CreateAccessBindingRequest + */ +class CreateAccessBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The access binding to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $access_binding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * @type \Google\Analytics\Admin\V1alpha\AccessBinding $access_binding + * Required. The access binding to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The access binding to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AccessBinding|null + */ + public function getAccessBinding() + { + return $this->access_binding; + } + + public function hasAccessBinding() + { + return isset($this->access_binding); + } + + public function clearAccessBinding() + { + unset($this->access_binding); + } + + /** + * Required. The access binding to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AccessBinding $var + * @return $this + */ + public function setAccessBinding($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBinding::class); + $this->access_binding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php new file mode 100644 index 000000000000..2b0bb93f59e8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php @@ -0,0 +1,119 @@ +google.analytics.admin.v1alpha.CreateAdSenseLinkRequest + */ +class CreateAdSenseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The AdSense Link to create + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $adsense_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\AdSenseLink $adsense_link + * Required. The AdSense Link to create + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The AdSense Link to create + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AdSenseLink|null + */ + public function getAdsenseLink() + { + return $this->adsense_link; + } + + public function hasAdsenseLink() + { + return isset($this->adsense_link); + } + + public function clearAdsenseLink() + { + unset($this->adsense_link); + } + + /** + * Required. The AdSense Link to create + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $var + * @return $this + */ + public function setAdsenseLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); + $this->adsense_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php new file mode 100644 index 000000000000..f45fb9a56046 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateAudienceRequest + */ +class CreateAudienceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The audience to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $audience = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\Audience $audience + * Required. The audience to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The audience to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Audience|null + */ + public function getAudience() + { + return $this->audience; + } + + public function hasAudience() + { + return isset($this->audience); + } + + public function clearAudience() + { + unset($this->audience); + } + + /** + * Required. The audience to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Audience $var + * @return $this + */ + public function setAudience($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); + $this->audience = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php new file mode 100644 index 000000000000..71a7df254dfa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateChannelGroupRequest + */ +class CreateChannelGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property for which to create a ChannelGroup. + * Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ChannelGroup to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channel_group = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The property for which to create a ChannelGroup. + * Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group + * Required. The ChannelGroup to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property for which to create a ChannelGroup. + * Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The property for which to create a ChannelGroup. + * Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ChannelGroup to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null + */ + public function getChannelGroup() + { + return $this->channel_group; + } + + public function hasChannelGroup() + { + return isset($this->channel_group); + } + + public function clearChannelGroup() + { + unset($this->channel_group); + } + + /** + * Required. The ChannelGroup to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var + * @return $this + */ + public function setChannelGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); + $this->channel_group = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php new file mode 100644 index 000000000000..d69c7da0b80d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php @@ -0,0 +1,123 @@ +google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest + */ +class CreateConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The Universal Analytics property to create connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * Required. The tag to add to the Universal Analytics property + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $connected_site_tag = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * The Universal Analytics property to create connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $connected_site_tag + * Required. The tag to add to the Universal Analytics property + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The Universal Analytics property to create connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * The Universal Analytics property to create connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Required. The tag to add to the Universal Analytics property + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ConnectedSiteTag|null + */ + public function getConnectedSiteTag() + { + return $this->connected_site_tag; + } + + public function hasConnectedSiteTag() + { + return isset($this->connected_site_tag); + } + + public function clearConnectedSiteTag() + { + unset($this->connected_site_tag); + } + + /** + * Required. The tag to add to the Universal Analytics property + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $var + * @return $this + */ + public function setConnectedSiteTag($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class); + $this->connected_site_tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php new file mode 100644 index 000000000000..b3f4637fa867 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php @@ -0,0 +1,33 @@ +google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + */ +class CreateConnectedSiteTagResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php new file mode 100644 index 000000000000..6768191a774e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateConversionEventRequest + */ +class CreateConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversion event to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversion_event = null; + /** + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event + * Required. The conversion event to create. + * @type string $parent + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversion event to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null + */ + public function getConversionEvent() + { + return $this->conversion_event; + } + + public function hasConversionEvent() + { + return isset($this->conversion_event); + } + + public function clearConversionEvent() + { + unset($this->conversion_event); + } + + /** + * Required. The conversion event to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); + $this->conversion_event = $var; + + return $this; + } + + /** + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php new file mode 100644 index 000000000000..550d999af829 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateCustomDimensionRequest + */ +class CreateCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The CustomDimension to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_dimension = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension + * Required. The CustomDimension to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The CustomDimension to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null + */ + public function getCustomDimension() + { + return $this->custom_dimension; + } + + public function hasCustomDimension() + { + return isset($this->custom_dimension); + } + + public function clearCustomDimension() + { + unset($this->custom_dimension); + } + + /** + * Required. The CustomDimension to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var + * @return $this + */ + public function setCustomDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); + $this->custom_dimension = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php new file mode 100644 index 000000000000..9832c3f40cae --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateCustomMetricRequest + */ +class CreateCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The CustomMetric to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_metric = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric + * Required. The CustomMetric to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The CustomMetric to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null + */ + public function getCustomMetric() + { + return $this->custom_metric; + } + + public function hasCustomMetric() + { + return isset($this->custom_metric); + } + + public function clearCustomMetric() + { + unset($this->custom_metric); + } + + /** + * Required. The CustomMetric to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var + * @return $this + */ + public function setCustomMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); + $this->custom_metric = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php new file mode 100644 index 000000000000..de44518ee939 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateDataStreamRequest + */ +class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DataStream to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_stream = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream + * Required. The DataStream to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DataStream to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\DataStream|null + */ + public function getDataStream() + { + return $this->data_stream; + } + + public function hasDataStream() + { + return isset($this->data_stream); + } + + public function clearDataStream() + { + unset($this->data_stream); + } + + /** + * Required. The DataStream to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\DataStream $var + * @return $this + */ + public function setDataStream($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); + $this->data_stream = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php new file mode 100644 index 000000000000..1e7149c55d66 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + */ +class CreateDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DisplayVideo360AdvertiserLinkProposal to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_video_360_advertiser_link_proposal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal + * Required. The DisplayVideo360AdvertiserLinkProposal to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DisplayVideo360AdvertiserLinkProposal to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null + */ + public function getDisplayVideo360AdvertiserLinkProposal() + { + return $this->display_video_360_advertiser_link_proposal; + } + + public function hasDisplayVideo360AdvertiserLinkProposal() + { + return isset($this->display_video_360_advertiser_link_proposal); + } + + public function clearDisplayVideo360AdvertiserLinkProposal() + { + unset($this->display_video_360_advertiser_link_proposal); + } + + /** + * Required. The DisplayVideo360AdvertiserLinkProposal to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLinkProposal($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); + $this->display_video_360_advertiser_link_proposal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php new file mode 100644 index 000000000000..9c207531279e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + */ +class CreateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DisplayVideo360AdvertiserLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_video_360_advertiser_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link + * Required. The DisplayVideo360AdvertiserLink to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DisplayVideo360AdvertiserLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null + */ + public function getDisplayVideo360AdvertiserLink() + { + return $this->display_video_360_advertiser_link; + } + + public function hasDisplayVideo360AdvertiserLink() + { + return isset($this->display_video_360_advertiser_link); + } + + public function clearDisplayVideo360AdvertiserLink() + { + unset($this->display_video_360_advertiser_link); + } + + /** + * Required. The DisplayVideo360AdvertiserLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); + $this->display_video_360_advertiser_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php new file mode 100644 index 000000000000..e0046eb92e52 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + */ +class CreateEventCreateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/123/dataStreams/456 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The EventCreateRule to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $event_create_rule = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/123/dataStreams/456 + * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule + * Required. The EventCreateRule to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/123/dataStreams/456 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/123/dataStreams/456 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The EventCreateRule to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null + */ + public function getEventCreateRule() + { + return $this->event_create_rule; + } + + public function hasEventCreateRule() + { + return isset($this->event_create_rule); + } + + public function clearEventCreateRule() + { + unset($this->event_create_rule); + } + + /** + * Required. The EventCreateRule to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var + * @return $this + */ + public function setEventCreateRule($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); + $this->event_create_rule = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php new file mode 100644 index 000000000000..64f67ebd9d1d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + */ +class CreateExpandedDataSetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ExpandedDataSet to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $expanded_data_set = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set + * Required. The ExpandedDataSet to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ExpandedDataSet to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null + */ + public function getExpandedDataSet() + { + return $this->expanded_data_set; + } + + public function hasExpandedDataSet() + { + return isset($this->expanded_data_set); + } + + public function clearExpandedDataSet() + { + unset($this->expanded_data_set); + } + + /** + * Required. The ExpandedDataSet to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var + * @return $this + */ + public function setExpandedDataSet($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); + $this->expanded_data_set = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php new file mode 100644 index 000000000000..f92b7f8b56b7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + */ +class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Firebase link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $firebase_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\FirebaseLink $firebase_link + * Required. The Firebase link to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Firebase link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\FirebaseLink|null + */ + public function getFirebaseLink() + { + return $this->firebase_link; + } + + public function hasFirebaseLink() + { + return isset($this->firebase_link); + } + + public function clearFirebaseLink() + { + unset($this->firebase_link); + } + + /** + * Required. The Firebase link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\FirebaseLink $var + * @return $this + */ + public function setFirebaseLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); + $this->firebase_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php new file mode 100644 index 000000000000..08edb14ce2b2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + */ +class CreateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The GoogleAdsLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $google_ads_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link + * Required. The GoogleAdsLink to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The GoogleAdsLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null + */ + public function getGoogleAdsLink() + { + return $this->google_ads_link; + } + + public function hasGoogleAdsLink() + { + return isset($this->google_ads_link); + } + + public function clearGoogleAdsLink() + { + unset($this->google_ads_link); + } + + /** + * Required. The GoogleAdsLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var + * @return $this + */ + public function setGoogleAdsLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); + $this->google_ads_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..e1557c4c6555 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + */ +class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The measurement protocol secret to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement_protocol_secret = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret + * Required. The measurement protocol secret to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The measurement protocol secret to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null + */ + public function getMeasurementProtocolSecret() + { + return $this->measurement_protocol_secret; + } + + public function hasMeasurementProtocolSecret() + { + return isset($this->measurement_protocol_secret); + } + + public function clearMeasurementProtocolSecret() + { + unset($this->measurement_protocol_secret); + } + + /** + * Required. The measurement protocol secret to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var + * @return $this + */ + public function setMeasurementProtocolSecret($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); + $this->measurement_protocol_secret = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php new file mode 100644 index 000000000000..adea21ee71cc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php @@ -0,0 +1,81 @@ +google.analytics.admin.v1alpha.CreatePropertyRequest + */ +class CreatePropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $property + * Required. The property to create. + * Note: the supplied property must specify its parent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getProperty() + { + return $this->property; + } + + public function hasProperty() + { + return isset($this->property); + } + + public function clearProperty() + { + unset($this->property); + } + + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php new file mode 100644 index 000000000000..1790318a4c79 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateRollupPropertyRequest + */ +class CreateRollupPropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The roll-up property to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rollup_property = null; + /** + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * + * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $source_properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $rollup_property + * Required. The roll-up property to create. + * @type array|\Google\Protobuf\Internal\RepeatedField $source_properties + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The roll-up property to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getRollupProperty() + { + return $this->rollup_property; + } + + public function hasRollupProperty() + { + return isset($this->rollup_property); + } + + public function clearRollupProperty() + { + unset($this->rollup_property); + } + + /** + * Required. The roll-up property to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setRollupProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->rollup_property = $var; + + return $this; + } + + /** + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * + * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSourceProperties() + { + return $this->source_properties; + } + + /** + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * + * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSourceProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->source_properties = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php new file mode 100644 index 000000000000..9b604c83153e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateRollupPropertyResponse + */ +class CreateRollupPropertyResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The created roll-up property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + protected $rollup_property = null; + /** + * The created roll-up property source links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + */ + private $rollup_property_source_links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $rollup_property + * The created roll-up property. + * @type array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $rollup_property_source_links + * The created roll-up property source links. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The created roll-up property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getRollupProperty() + { + return $this->rollup_property; + } + + public function hasRollupProperty() + { + return isset($this->rollup_property); + } + + public function clearRollupProperty() + { + unset($this->rollup_property); + } + + /** + * The created roll-up property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setRollupProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->rollup_property = $var; + + return $this; + } + + /** + * The created roll-up property source links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRollupPropertySourceLinks() + { + return $this->rollup_property_source_links; + } + + /** + * The created roll-up property source links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * @param array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRollupPropertySourceLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); + $this->rollup_property_source_links = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php new file mode 100644 index 000000000000..413f65f54815 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + */ +class CreateRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The roll-up property source link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rollup_property_source_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $rollup_property_source_link + * Required. The roll-up property source link to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The roll-up property source link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink|null + */ + public function getRollupPropertySourceLink() + { + return $this->rollup_property_source_link; + } + + public function hasRollupPropertySourceLink() + { + return isset($this->rollup_property_source_link); + } + + public function clearRollupPropertySourceLink() + { + unset($this->rollup_property_source_link); + } + + /** + * Required. The roll-up property source link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $var + * @return $this + */ + public function setRollupPropertySourceLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); + $this->rollup_property_source_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php new file mode 100644 index 000000000000..2432a2fbd5c8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + */ +class CreateSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this schema will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. SKAdNetwork conversion value schema to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $skadnetwork_conversion_value_schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this schema will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema + * Required. SKAdNetwork conversion value schema to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this schema will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this schema will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. SKAdNetwork conversion value schema to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null + */ + public function getSkadnetworkConversionValueSchema() + { + return $this->skadnetwork_conversion_value_schema; + } + + public function hasSkadnetworkConversionValueSchema() + { + return isset($this->skadnetwork_conversion_value_schema); + } + + public function clearSkadnetworkConversionValueSchema() + { + unset($this->skadnetwork_conversion_value_schema); + } + + /** + * Required. SKAdNetwork conversion value schema to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var + * @return $this + */ + public function setSkadnetworkConversionValueSchema($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); + $this->skadnetwork_conversion_value_schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php new file mode 100644 index 000000000000..855e83c052d0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest + */ +class CreateSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The SearchAds360Link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $search_ads_360_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link + * Required. The SearchAds360Link to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The SearchAds360Link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null + */ + public function getSearchAds360Link() + { + return $this->search_ads_360_link; + } + + public function hasSearchAds360Link() + { + return isset($this->search_ads_360_link); + } + + public function clearSearchAds360Link() + { + unset($this->search_ads_360_link); + } + + /** + * Required. The SearchAds360Link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var + * @return $this + */ + public function setSearchAds360Link($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); + $this->search_ads_360_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..a12794aee0b6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + */ +class CreateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The subproperty event filter to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subproperty_event_filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter + * Required. The subproperty event filter to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The subproperty event filter to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null + */ + public function getSubpropertyEventFilter() + { + return $this->subproperty_event_filter; + } + + public function hasSubpropertyEventFilter() + { + return isset($this->subproperty_event_filter); + } + + public function clearSubpropertyEventFilter() + { + unset($this->subproperty_event_filter); + } + + /** + * Required. The subproperty event filter to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var + * @return $this + */ + public function setSubpropertyEventFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); + $this->subproperty_event_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php new file mode 100644 index 000000000000..00f7b2ef3025 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php @@ -0,0 +1,163 @@ +google.analytics.admin.v1alpha.CreateSubpropertyRequest + */ +class CreateSubpropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The subproperty to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subproperty = null; + /** + * Optional. The subproperty event filter to create on an ordinary property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $subproperty_event_filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * @type \Google\Analytics\Admin\V1alpha\Property $subproperty + * Required. The subproperty to create. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter + * Optional. The subproperty event filter to create on an ordinary property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The subproperty to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getSubproperty() + { + return $this->subproperty; + } + + public function hasSubproperty() + { + return isset($this->subproperty); + } + + public function clearSubproperty() + { + unset($this->subproperty); + } + + /** + * Required. The subproperty to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setSubproperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->subproperty = $var; + + return $this; + } + + /** + * Optional. The subproperty event filter to create on an ordinary property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null + */ + public function getSubpropertyEventFilter() + { + return $this->subproperty_event_filter; + } + + public function hasSubpropertyEventFilter() + { + return isset($this->subproperty_event_filter); + } + + public function clearSubpropertyEventFilter() + { + unset($this->subproperty_event_filter); + } + + /** + * Optional. The subproperty event filter to create on an ordinary property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var + * @return $this + */ + public function setSubpropertyEventFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); + $this->subproperty_event_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php new file mode 100644 index 000000000000..e1af2155f2c7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.CreateSubpropertyResponse + */ +class CreateSubpropertyResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The created subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + protected $subproperty = null; + /** + * The created subproperty event filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + */ + protected $subproperty_event_filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $subproperty + * The created subproperty. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter + * The created subproperty event filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The created subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getSubproperty() + { + return $this->subproperty; + } + + public function hasSubproperty() + { + return isset($this->subproperty); + } + + public function clearSubproperty() + { + unset($this->subproperty); + } + + /** + * The created subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setSubproperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->subproperty = $var; + + return $this; + } + + /** + * The created subproperty event filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null + */ + public function getSubpropertyEventFilter() + { + return $this->subproperty_event_filter; + } + + public function hasSubpropertyEventFilter() + { + return isset($this->subproperty_event_filter); + } + + public function clearSubpropertyEventFilter() + { + unset($this->subproperty_event_filter); + } + + /** + * The created subproperty event filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var + * @return $this + */ + public function setSubpropertyEventFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); + $this->subproperty_event_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php new file mode 100644 index 000000000000..ba0a444737d8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php @@ -0,0 +1,301 @@ +google.analytics.admin.v1alpha.CustomDimension + */ +class CustomDimension extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parameter_name = ''; + /** + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. Immutable. The scope of this dimension. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * + * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disallow_ads_personalization = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * @type string $parameter_name + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * @type string $display_name + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * @type string $description + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * @type int $scope + * Required. Immutable. The scope of this dimension. + * @type bool $disallow_ads_personalization + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParameterName() + { + return $this->parameter_name; + } + + /** + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParameterName($var) + { + GPBUtil::checkString($var, True); + $this->parameter_name = $var; + + return $this; + } + + /** + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Immutable. The scope of this dimension. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. The scope of this dimension. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomDimension\DimensionScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * + * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisallowAdsPersonalization() + { + return $this->disallow_ads_personalization; + } + + /** + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * + * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisallowAdsPersonalization($var) + { + GPBUtil::checkBool($var); + $this->disallow_ads_personalization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php new file mode 100644 index 000000000000..a623e13b2358 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.CustomDimension.DimensionScope + */ +class DimensionScope +{ + /** + * Scope unknown or not specified. + * + * Generated from protobuf enum DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + const DIMENSION_SCOPE_UNSPECIFIED = 0; + /** + * Dimension scoped to an event. + * + * Generated from protobuf enum EVENT = 1; + */ + const EVENT = 1; + /** + * Dimension scoped to a user. + * + * Generated from protobuf enum USER = 2; + */ + const USER = 2; + /** + * Dimension scoped to eCommerce items + * + * Generated from protobuf enum ITEM = 3; + */ + const ITEM = 3; + + private static $valueToName = [ + self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', + self::EVENT => 'EVENT', + self::USER => 'USER', + self::ITEM => 'ITEM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DimensionScope::class, \Google\Analytics\Admin\V1alpha\CustomDimension_DimensionScope::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php new file mode 100644 index 000000000000..473e4273ef7a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php @@ -0,0 +1,319 @@ +google.analytics.admin.v1alpha.CustomMetric + */ +class CustomMetric extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parameter_name = ''; + /** + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The type for the custom metric's value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement_unit = 0; + /** + * Required. Immutable. The scope of this custom metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $restricted_metric_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * @type string $parameter_name + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * @type string $display_name + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * @type string $description + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * @type int $measurement_unit + * Required. The type for the custom metric's value. + * @type int $scope + * Required. Immutable. The scope of this custom metric. + * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParameterName() + { + return $this->parameter_name; + } + + /** + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParameterName($var) + { + GPBUtil::checkString($var, True); + $this->parameter_name = $var; + + return $this; + } + + /** + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The type for the custom metric's value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMeasurementUnit() + { + return $this->measurement_unit; + } + + /** + * Required. The type for the custom metric's value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMeasurementUnit($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit::class); + $this->measurement_unit = $var; + + return $this; + } + + /** + * Required. Immutable. The scope of this custom metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. The scope of this custom metric. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRestrictedMetricType() + { + return $this->restricted_metric_type; + } + + /** + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRestrictedMetricType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\CustomMetric\RestrictedMetricType::class); + $this->restricted_metric_type = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php new file mode 100644 index 000000000000..5d27e4dc0f14 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php @@ -0,0 +1,122 @@ +google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + */ +class MeasurementUnit +{ + /** + * MeasurementUnit unspecified or missing. + * + * Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + const MEASUREMENT_UNIT_UNSPECIFIED = 0; + /** + * This metric uses default units. + * + * Generated from protobuf enum STANDARD = 1; + */ + const STANDARD = 1; + /** + * This metric measures a currency. + * + * Generated from protobuf enum CURRENCY = 2; + */ + const CURRENCY = 2; + /** + * This metric measures feet. + * + * Generated from protobuf enum FEET = 3; + */ + const FEET = 3; + /** + * This metric measures meters. + * + * Generated from protobuf enum METERS = 4; + */ + const METERS = 4; + /** + * This metric measures kilometers. + * + * Generated from protobuf enum KILOMETERS = 5; + */ + const KILOMETERS = 5; + /** + * This metric measures miles. + * + * Generated from protobuf enum MILES = 6; + */ + const MILES = 6; + /** + * This metric measures milliseconds. + * + * Generated from protobuf enum MILLISECONDS = 7; + */ + const MILLISECONDS = 7; + /** + * This metric measures seconds. + * + * Generated from protobuf enum SECONDS = 8; + */ + const SECONDS = 8; + /** + * This metric measures minutes. + * + * Generated from protobuf enum MINUTES = 9; + */ + const MINUTES = 9; + /** + * This metric measures hours. + * + * Generated from protobuf enum HOURS = 10; + */ + const HOURS = 10; + + private static $valueToName = [ + self::MEASUREMENT_UNIT_UNSPECIFIED => 'MEASUREMENT_UNIT_UNSPECIFIED', + self::STANDARD => 'STANDARD', + self::CURRENCY => 'CURRENCY', + self::FEET => 'FEET', + self::METERS => 'METERS', + self::KILOMETERS => 'KILOMETERS', + self::MILES => 'MILES', + self::MILLISECONDS => 'MILLISECONDS', + self::SECONDS => 'SECONDS', + self::MINUTES => 'MINUTES', + self::HOURS => 'HOURS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MeasurementUnit::class, \Google\Analytics\Admin\V1alpha\CustomMetric_MeasurementUnit::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php new file mode 100644 index 000000000000..362df05131af --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php @@ -0,0 +1,57 @@ +google.analytics.admin.v1alpha.CustomMetric.MetricScope + */ +class MetricScope +{ + /** + * Scope unknown or not specified. + * + * Generated from protobuf enum METRIC_SCOPE_UNSPECIFIED = 0; + */ + const METRIC_SCOPE_UNSPECIFIED = 0; + /** + * Metric scoped to an event. + * + * Generated from protobuf enum EVENT = 1; + */ + const EVENT = 1; + + private static $valueToName = [ + self::METRIC_SCOPE_UNSPECIFIED => 'METRIC_SCOPE_UNSPECIFIED', + self::EVENT => 'EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricScope::class, \Google\Analytics\Admin\V1alpha\CustomMetric_MetricScope::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php new file mode 100644 index 000000000000..06006742e548 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php @@ -0,0 +1,65 @@ +google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + */ +class RestrictedMetricType +{ + /** + * Type unknown or unspecified. + * + * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + /** + * Metric reports cost data. + * + * Generated from protobuf enum COST_DATA = 1; + */ + const COST_DATA = 1; + /** + * Metric reports revenue data. + * + * Generated from protobuf enum REVENUE_DATA = 2; + */ + const REVENUE_DATA = 2; + + private static $valueToName = [ + self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', + self::COST_DATA => 'COST_DATA', + self::REVENUE_DATA => 'REVENUE_DATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1alpha\CustomMetric_RestrictedMetricType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php new file mode 100644 index 000000000000..bed20b2d2baf --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php @@ -0,0 +1,210 @@ +google.analytics.admin.v1alpha.DataRedactionSettings + */ +class DataRedactionSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * + * Generated from protobuf field bool email_redaction_enabled = 2; + */ + protected $email_redaction_enabled = false; + /** + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * + * Generated from protobuf field bool query_parameter_redaction_enabled = 3; + */ + protected $query_parameter_redaction_enabled = false; + /** + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * + * Generated from protobuf field repeated string query_parameter_keys = 4; + */ + private $query_parameter_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * @type bool $email_redaction_enabled + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * @type bool $query_parameter_redaction_enabled + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * @type array|\Google\Protobuf\Internal\RepeatedField $query_parameter_keys + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * + * Generated from protobuf field bool email_redaction_enabled = 2; + * @return bool + */ + public function getEmailRedactionEnabled() + { + return $this->email_redaction_enabled; + } + + /** + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * + * Generated from protobuf field bool email_redaction_enabled = 2; + * @param bool $var + * @return $this + */ + public function setEmailRedactionEnabled($var) + { + GPBUtil::checkBool($var); + $this->email_redaction_enabled = $var; + + return $this; + } + + /** + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * + * Generated from protobuf field bool query_parameter_redaction_enabled = 3; + * @return bool + */ + public function getQueryParameterRedactionEnabled() + { + return $this->query_parameter_redaction_enabled; + } + + /** + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * + * Generated from protobuf field bool query_parameter_redaction_enabled = 3; + * @param bool $var + * @return $this + */ + public function setQueryParameterRedactionEnabled($var) + { + GPBUtil::checkBool($var); + $this->query_parameter_redaction_enabled = $var; + + return $this; + } + + /** + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * + * Generated from protobuf field repeated string query_parameter_keys = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getQueryParameterKeys() + { + return $this->query_parameter_keys; + } + + /** + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * + * Generated from protobuf field repeated string query_parameter_keys = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setQueryParameterKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->query_parameter_keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php new file mode 100644 index 000000000000..596562959ce5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php @@ -0,0 +1,143 @@ +google.analytics.admin.v1alpha.DataRetentionSettings + */ +class DataRetentionSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * The length of time that event-level data is retained. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + */ + protected $event_data_retention = 0; + /** + * If true, reset the retention period for the user identifier with every + * event from that user. + * + * Generated from protobuf field bool reset_user_data_on_new_activity = 3; + */ + protected $reset_user_data_on_new_activity = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * @type int $event_data_retention + * The length of time that event-level data is retained. + * @type bool $reset_user_data_on_new_activity + * If true, reset the retention period for the user identifier with every + * event from that user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The length of time that event-level data is retained. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * @return int + */ + public function getEventDataRetention() + { + return $this->event_data_retention; + } + + /** + * The length of time that event-level data is retained. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * @param int $var + * @return $this + */ + public function setEventDataRetention($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings\RetentionDuration::class); + $this->event_data_retention = $var; + + return $this; + } + + /** + * If true, reset the retention period for the user identifier with every + * event from that user. + * + * Generated from protobuf field bool reset_user_data_on_new_activity = 3; + * @return bool + */ + public function getResetUserDataOnNewActivity() + { + return $this->reset_user_data_on_new_activity; + } + + /** + * If true, reset the retention period for the user identifier with every + * event from that user. + * + * Generated from protobuf field bool reset_user_data_on_new_activity = 3; + * @param bool $var + * @return $this + */ + public function setResetUserDataOnNewActivity($var) + { + GPBUtil::checkBool($var); + $this->reset_user_data_on_new_activity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php new file mode 100644 index 000000000000..be5f9eb42de3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php @@ -0,0 +1,88 @@ +google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + */ +class RetentionDuration +{ + /** + * Data retention time duration is not specified. + * + * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0; + */ + const RETENTION_DURATION_UNSPECIFIED = 0; + /** + * The data retention time duration is 2 months. + * + * Generated from protobuf enum TWO_MONTHS = 1; + */ + const TWO_MONTHS = 1; + /** + * The data retention time duration is 14 months. + * + * Generated from protobuf enum FOURTEEN_MONTHS = 3; + */ + const FOURTEEN_MONTHS = 3; + /** + * The data retention time duration is 26 months. + * Available to 360 properties only. + * + * Generated from protobuf enum TWENTY_SIX_MONTHS = 4; + */ + const TWENTY_SIX_MONTHS = 4; + /** + * The data retention time duration is 38 months. + * Available to 360 properties only. + * + * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5; + */ + const THIRTY_EIGHT_MONTHS = 5; + /** + * The data retention time duration is 50 months. + * Available to 360 properties only. + * + * Generated from protobuf enum FIFTY_MONTHS = 6; + */ + const FIFTY_MONTHS = 6; + + private static $valueToName = [ + self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED', + self::TWO_MONTHS => 'TWO_MONTHS', + self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS', + self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS', + self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS', + self::FIFTY_MONTHS => 'FIFTY_MONTHS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1alpha\DataRetentionSettings_RetentionDuration::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php new file mode 100644 index 000000000000..8dd6943a2104 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php @@ -0,0 +1,262 @@ +google.analytics.admin.v1alpha.DataSharingSettings + */ +class DataSharingSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Allows Google support to access the data in order to help troubleshoot + * issues. + * + * Generated from protobuf field bool sharing_with_google_support_enabled = 2; + */ + protected $sharing_with_google_support_enabled = false; + /** + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * + * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; + */ + protected $sharing_with_google_assigned_sales_enabled = false; + /** + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * + * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; + */ + protected $sharing_with_google_any_sales_enabled = false; + /** + * Allows Google to use the data to improve other Google products or services. + * + * Generated from protobuf field bool sharing_with_google_products_enabled = 5; + */ + protected $sharing_with_google_products_enabled = false; + /** + * Allows Google to share the data anonymously in aggregate form with others. + * + * Generated from protobuf field bool sharing_with_others_enabled = 6; + */ + protected $sharing_with_others_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @type bool $sharing_with_google_support_enabled + * Allows Google support to access the data in order to help troubleshoot + * issues. + * @type bool $sharing_with_google_assigned_sales_enabled + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * @type bool $sharing_with_google_any_sales_enabled + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * @type bool $sharing_with_google_products_enabled + * Allows Google to use the data to improve other Google products or services. + * @type bool $sharing_with_others_enabled + * Allows Google to share the data anonymously in aggregate form with others. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Allows Google support to access the data in order to help troubleshoot + * issues. + * + * Generated from protobuf field bool sharing_with_google_support_enabled = 2; + * @return bool + */ + public function getSharingWithGoogleSupportEnabled() + { + return $this->sharing_with_google_support_enabled; + } + + /** + * Allows Google support to access the data in order to help troubleshoot + * issues. + * + * Generated from protobuf field bool sharing_with_google_support_enabled = 2; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleSupportEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_support_enabled = $var; + + return $this; + } + + /** + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * + * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; + * @return bool + */ + public function getSharingWithGoogleAssignedSalesEnabled() + { + return $this->sharing_with_google_assigned_sales_enabled; + } + + /** + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * + * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleAssignedSalesEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_assigned_sales_enabled = $var; + + return $this; + } + + /** + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * + * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; + * @return bool + */ + public function getSharingWithGoogleAnySalesEnabled() + { + return $this->sharing_with_google_any_sales_enabled; + } + + /** + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * + * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleAnySalesEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_any_sales_enabled = $var; + + return $this; + } + + /** + * Allows Google to use the data to improve other Google products or services. + * + * Generated from protobuf field bool sharing_with_google_products_enabled = 5; + * @return bool + */ + public function getSharingWithGoogleProductsEnabled() + { + return $this->sharing_with_google_products_enabled; + } + + /** + * Allows Google to use the data to improve other Google products or services. + * + * Generated from protobuf field bool sharing_with_google_products_enabled = 5; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleProductsEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_products_enabled = $var; + + return $this; + } + + /** + * Allows Google to share the data anonymously in aggregate form with others. + * + * Generated from protobuf field bool sharing_with_others_enabled = 6; + * @return bool + */ + public function getSharingWithOthersEnabled() + { + return $this->sharing_with_others_enabled; + } + + /** + * Allows Google to share the data anonymously in aggregate form with others. + * + * Generated from protobuf field bool sharing_with_others_enabled = 6; + * @param bool $var + * @return $this + */ + public function setSharingWithOthersEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_others_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php new file mode 100644 index 000000000000..334525308793 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php @@ -0,0 +1,356 @@ +google.analytics.admin.v1alpha.DataStream + */ +class DataStream extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Immutable. The type of this DataStream resource. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * Output only. Time when this stream was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when stream payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + protected $stream_data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $web_stream_data + * Data specific to web streams. Must be populated if type is + * WEB_DATA_STREAM. + * @type \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $android_app_stream_data + * Data specific to Android app streams. Must be populated if type is + * ANDROID_APP_DATA_STREAM. + * @type \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $ios_app_stream_data + * Data specific to iOS app streams. Must be populated if type is + * IOS_APP_DATA_STREAM. + * @type string $name + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * @type int $type + * Required. Immutable. The type of this DataStream resource. + * @type string $display_name + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this stream was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when stream payload fields were last updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Data specific to web streams. Must be populated if type is + * WEB_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * @return \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData|null + */ + public function getWebStreamData() + { + return $this->readOneof(6); + } + + public function hasWebStreamData() + { + return $this->hasOneof(6); + } + + /** + * Data specific to web streams. Must be populated if type is + * WEB_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * @param \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $var + * @return $this + */ + public function setWebStreamData($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Data specific to Android app streams. Must be populated if type is + * ANDROID_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * @return \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData|null + */ + public function getAndroidAppStreamData() + { + return $this->readOneof(7); + } + + public function hasAndroidAppStreamData() + { + return $this->hasOneof(7); + } + + /** + * Data specific to Android app streams. Must be populated if type is + * ANDROID_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * @param \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $var + * @return $this + */ + public function setAndroidAppStreamData($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Data specific to iOS app streams. Must be populated if type is + * IOS_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * @return \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData|null + */ + public function getIosAppStreamData() + { + return $this->readOneof(8); + } + + public function hasIosAppStreamData() + { + return $this->hasOneof(8); + } + + /** + * Data specific to iOS app streams. Must be populated if type is + * IOS_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * @param \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $var + * @return $this + */ + public function setIosAppStreamData($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. The type of this DataStream resource. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. The type of this DataStream resource. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataStream\DataStreamType::class); + $this->type = $var; + + return $this; + } + + /** + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Time when this stream was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this stream was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when stream payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when stream payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getStreamData() + { + return $this->whichOneof("stream_data"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php new file mode 100644 index 000000000000..05430a617fbc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php @@ -0,0 +1,112 @@ +google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + */ +class AndroidAppStreamData extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $firebase_app_id = ''; + /** + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * + * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $package_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $firebase_app_id + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * @type string $package_name + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFirebaseAppId() + { + return $this->firebase_app_id; + } + + /** + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFirebaseAppId($var) + { + GPBUtil::checkString($var, True); + $this->firebase_app_id = $var; + + return $this; + } + + /** + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * + * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getPackageName() + { + return $this->package_name; + } + + /** + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * + * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setPackageName($var) + { + GPBUtil::checkString($var, True); + $this->package_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_AndroidAppStreamData::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php new file mode 100644 index 000000000000..40b9025b6d49 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DataStream.DataStreamType + */ +class DataStreamType +{ + /** + * Type unknown or not specified. + * + * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + const DATA_STREAM_TYPE_UNSPECIFIED = 0; + /** + * Web data stream. + * + * Generated from protobuf enum WEB_DATA_STREAM = 1; + */ + const WEB_DATA_STREAM = 1; + /** + * Android app data stream. + * + * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2; + */ + const ANDROID_APP_DATA_STREAM = 2; + /** + * iOS app data stream. + * + * Generated from protobuf enum IOS_APP_DATA_STREAM = 3; + */ + const IOS_APP_DATA_STREAM = 3; + + private static $valueToName = [ + self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED', + self::WEB_DATA_STREAM => 'WEB_DATA_STREAM', + self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM', + self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataStreamType::class, \Google\Analytics\Admin\V1alpha\DataStream_DataStreamType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php new file mode 100644 index 000000000000..e7abc7c8e336 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php @@ -0,0 +1,112 @@ +google.analytics.admin.v1alpha.DataStream.IosAppStreamData + */ +class IosAppStreamData extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $firebase_app_id = ''; + /** + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * + * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $bundle_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $firebase_app_id + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * @type string $bundle_id + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFirebaseAppId() + { + return $this->firebase_app_id; + } + + /** + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFirebaseAppId($var) + { + GPBUtil::checkString($var, True); + $this->firebase_app_id = $var; + + return $this; + } + + /** + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * + * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBundleId() + { + return $this->bundle_id; + } + + /** + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * + * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBundleId($var) + { + GPBUtil::checkString($var, True); + $this->bundle_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_IosAppStreamData::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php new file mode 100644 index 000000000000..792c187d85dd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php @@ -0,0 +1,150 @@ +google.analytics.admin.v1alpha.DataStream.WebStreamData + */ +class WebStreamData extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * + * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $measurement_id = ''; + /** + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $firebase_app_id = ''; + /** + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * + * Generated from protobuf field string default_uri = 3; + */ + protected $default_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $measurement_id + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * @type string $firebase_app_id + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * @type string $default_uri + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * + * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMeasurementId() + { + return $this->measurement_id; + } + + /** + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * + * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMeasurementId($var) + { + GPBUtil::checkString($var, True); + $this->measurement_id = $var; + + return $this; + } + + /** + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFirebaseAppId() + { + return $this->firebase_app_id; + } + + /** + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFirebaseAppId($var) + { + GPBUtil::checkString($var, True); + $this->firebase_app_id = $var; + + return $this; + } + + /** + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * + * Generated from protobuf field string default_uri = 3; + * @return string + */ + public function getDefaultUri() + { + return $this->default_uri; + } + + /** + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * + * Generated from protobuf field string default_uri = 3; + * @param string $var + * @return $this + */ + public function setDefaultUri($var) + { + GPBUtil::checkString($var, True); + $this->default_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WebStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_WebStreamData::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php new file mode 100644 index 000000000000..9d730b5cbf5f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteAccessBindingRequest + */ +class DeleteAccessBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php new file mode 100644 index 000000000000..76993f0074b1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteAccountRequest + */ +class DeleteAccountRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php new file mode 100644 index 000000000000..90c9a4d251db --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest + */ +class DeleteAdSenseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php new file mode 100644 index 000000000000..0204276e23ff --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteChannelGroupRequest + */ +class DeleteChannelGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ChannelGroup to delete. + * Example format: properties/1234/channelGroups/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ChannelGroup to delete. + * Example format: properties/1234/channelGroups/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ChannelGroup to delete. + * Example format: properties/1234/channelGroups/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ChannelGroup to delete. + * Example format: properties/1234/channelGroups/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php new file mode 100644 index 000000000000..19d55fea7d9d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php @@ -0,0 +1,117 @@ +google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest + */ +class DeleteConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The Universal Analytics property to delete connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * Tag ID to forward events to. Also known as the Measurement ID, or the + * "G-ID" (For example: G-12345). + * + * Generated from protobuf field string tag_id = 2; + */ + protected $tag_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * The Universal Analytics property to delete connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * @type string $tag_id + * Tag ID to forward events to. Also known as the Measurement ID, or the + * "G-ID" (For example: G-12345). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The Universal Analytics property to delete connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * The Universal Analytics property to delete connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Tag ID to forward events to. Also known as the Measurement ID, or the + * "G-ID" (For example: G-12345). + * + * Generated from protobuf field string tag_id = 2; + * @return string + */ + public function getTagId() + { + return $this->tag_id; + } + + /** + * Tag ID to forward events to. Also known as the Measurement ID, or the + * "G-ID" (For example: G-12345). + * + * Generated from protobuf field string tag_id = 2; + * @param string $var + * @return $this + */ + public function setTagId($var) + { + GPBUtil::checkString($var, True); + $this->tag_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php new file mode 100644 index 000000000000..fa7d5f9222ce --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteConversionEventRequest + */ +class DeleteConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php new file mode 100644 index 000000000000..38db8bd212dd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteDataStreamRequest + */ +class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php new file mode 100644 index 000000000000..a55495ca15b1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + */ +class DeleteDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php new file mode 100644 index 000000000000..a191a561b1a5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + */ +class DeleteDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php new file mode 100644 index 000000000000..70fbfc0e95f6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + */ +class DeleteEventCreateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php new file mode 100644 index 000000000000..76050b0ae4d4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + */ +class DeleteExpandedDataSetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234/expandedDataSets/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Example format: properties/1234/expandedDataSets/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234/expandedDataSets/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Example format: properties/1234/expandedDataSets/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php new file mode 100644 index 000000000000..2feb69d3bbc1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + */ +class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php new file mode 100644 index 000000000000..b370776561f7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + */ +class DeleteGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Example format: properties/1234/googleAdsLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..c1a6b3a2a102 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + */ +class DeleteMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php new file mode 100644 index 000000000000..2c194f05a433 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeletePropertyRequest + */ +class DeletePropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php new file mode 100644 index 000000000000..ee13a1ee6de7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + */ +class DeleteRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php new file mode 100644 index 000000000000..7ddd5484433f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + */ +class DeleteSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the SKAdNetworkConversionValueSchema to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the SKAdNetworkConversionValueSchema to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the SKAdNetworkConversionValueSchema to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the SKAdNetworkConversionValueSchema to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php new file mode 100644 index 000000000000..f62ec3028faa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest + */ +class DeleteSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..e0a914135154 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + */ +class DeleteSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php new file mode 100644 index 000000000000..db07c2123059 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php @@ -0,0 +1,408 @@ +google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + */ +class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this DisplayVideo360AdvertiserLink + * resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + * Note: linkId is not the Display & Video 360 Advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $advertiser_id = ''; + /** + * Output only. The display name of the Display & Video 360 Advertiser. + * + * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $advertiser_display_name = ''; + /** + * Enables personalized advertising features with this integration. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + protected $ads_personalization_enabled = null; + /** + * Immutable. Enables the import of campaign data from Display & Video 360 + * into the GA4 property. After link creation, this can only be updated from + * the Display & Video 360 product. If this field is not set on create, it + * will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $campaign_data_sharing_enabled = null; + /** + * Immutable. Enables the import of cost data from Display & Video 360 into + * the GA4 property. This can only be enabled if campaign_data_sharing_enabled + * is enabled. After link creation, this can only be updated from the Display + * & Video 360 product. If this field is not set on create, it will be + * defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $cost_data_sharing_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this DisplayVideo360AdvertiserLink + * resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + * Note: linkId is not the Display & Video 360 Advertiser ID + * @type string $advertiser_id + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * @type string $advertiser_display_name + * Output only. The display name of the Display & Video 360 Advertiser. + * @type \Google\Protobuf\BoolValue $ads_personalization_enabled + * Enables personalized advertising features with this integration. + * If this field is not set on create/update, it will be defaulted to true. + * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled + * Immutable. Enables the import of campaign data from Display & Video 360 + * into the GA4 property. After link creation, this can only be updated from + * the Display & Video 360 product. If this field is not set on create, it + * will be defaulted to true. + * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled + * Immutable. Enables the import of cost data from Display & Video 360 into + * the GA4 property. This can only be enabled if campaign_data_sharing_enabled + * is enabled. After link creation, this can only be updated from the Display + * & Video 360 product. If this field is not set on create, it will be + * defaulted to true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this DisplayVideo360AdvertiserLink + * resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + * Note: linkId is not the Display & Video 360 Advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this DisplayVideo360AdvertiserLink + * resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + * Note: linkId is not the Display & Video 360 Advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdvertiserId() + { + return $this->advertiser_id; + } + + /** + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdvertiserId($var) + { + GPBUtil::checkString($var, True); + $this->advertiser_id = $var; + + return $this; + } + + /** + * Output only. The display name of the Display & Video 360 Advertiser. + * + * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdvertiserDisplayName() + { + return $this->advertiser_display_name; + } + + /** + * Output only. The display name of the Display & Video 360 Advertiser. + * + * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdvertiserDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->advertiser_display_name = $var; + + return $this; + } + + /** + * Enables personalized advertising features with this integration. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; + * @return \Google\Protobuf\BoolValue|null + */ + public function getAdsPersonalizationEnabled() + { + return $this->ads_personalization_enabled; + } + + public function hasAdsPersonalizationEnabled() + { + return isset($this->ads_personalization_enabled); + } + + public function clearAdsPersonalizationEnabled() + { + unset($this->ads_personalization_enabled); + } + + /** + * Returns the unboxed value from getAdsPersonalizationEnabled() + + * Enables personalized advertising features with this integration. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; + * @return bool|null + */ + public function getAdsPersonalizationEnabledUnwrapped() + { + return $this->readWrapperValue("ads_personalization_enabled"); + } + + /** + * Enables personalized advertising features with this integration. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setAdsPersonalizationEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->ads_personalization_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enables personalized advertising features with this integration. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; + * @param bool|null $var + * @return $this + */ + public function setAdsPersonalizationEnabledUnwrapped($var) + { + $this->writeWrapperValue("ads_personalization_enabled", $var); + return $this;} + + /** + * Immutable. Enables the import of campaign data from Display & Video 360 + * into the GA4 property. After link creation, this can only be updated from + * the Display & Video 360 product. If this field is not set on create, it + * will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCampaignDataSharingEnabled() + { + return $this->campaign_data_sharing_enabled; + } + + public function hasCampaignDataSharingEnabled() + { + return isset($this->campaign_data_sharing_enabled); + } + + public function clearCampaignDataSharingEnabled() + { + unset($this->campaign_data_sharing_enabled); + } + + /** + * Returns the unboxed value from getCampaignDataSharingEnabled() + + * Immutable. Enables the import of campaign data from Display & Video 360 + * into the GA4 property. After link creation, this can only be updated from + * the Display & Video 360 product. If this field is not set on create, it + * will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getCampaignDataSharingEnabledUnwrapped() + { + return $this->readWrapperValue("campaign_data_sharing_enabled"); + } + + /** + * Immutable. Enables the import of campaign data from Display & Video 360 + * into the GA4 property. After link creation, this can only be updated from + * the Display & Video 360 product. If this field is not set on create, it + * will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCampaignDataSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->campaign_data_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables the import of campaign data from Display & Video 360 + * into the GA4 property. After link creation, this can only be updated from + * the Display & Video 360 product. If this field is not set on create, it + * will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setCampaignDataSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("campaign_data_sharing_enabled", $var); + return $this;} + + /** + * Immutable. Enables the import of cost data from Display & Video 360 into + * the GA4 property. This can only be enabled if campaign_data_sharing_enabled + * is enabled. After link creation, this can only be updated from the Display + * & Video 360 product. If this field is not set on create, it will be + * defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCostDataSharingEnabled() + { + return $this->cost_data_sharing_enabled; + } + + public function hasCostDataSharingEnabled() + { + return isset($this->cost_data_sharing_enabled); + } + + public function clearCostDataSharingEnabled() + { + unset($this->cost_data_sharing_enabled); + } + + /** + * Returns the unboxed value from getCostDataSharingEnabled() + + * Immutable. Enables the import of cost data from Display & Video 360 into + * the GA4 property. This can only be enabled if campaign_data_sharing_enabled + * is enabled. After link creation, this can only be updated from the Display + * & Video 360 product. If this field is not set on create, it will be + * defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getCostDataSharingEnabledUnwrapped() + { + return $this->readWrapperValue("cost_data_sharing_enabled"); + } + + /** + * Immutable. Enables the import of cost data from Display & Video 360 into + * the GA4 property. This can only be enabled if campaign_data_sharing_enabled + * is enabled. After link creation, this can only be updated from the Display + * & Video 360 product. If this field is not set on create, it will be + * defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCostDataSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->cost_data_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables the import of cost data from Display & Video 360 into + * the GA4 property. This can only be enabled if campaign_data_sharing_enabled + * is enabled. After link creation, this can only be updated from the Display + * & Video 360 product. If this field is not set on create, it will be + * defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setCostDataSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("cost_data_sharing_enabled", $var); + return $this;} + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php new file mode 100644 index 000000000000..ff6821888ae0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php @@ -0,0 +1,490 @@ +google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + */ +class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this + * DisplayVideo360AdvertiserLinkProposal resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} + * Note: proposalId is not the Display & Video 360 Advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $advertiser_id = ''; + /** + * Output only. The status information for this link proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $link_proposal_status_details = null; + /** + * Output only. The display name of the Display & Video Advertiser. + * Only populated for proposals that originated from Display & Video 360. + * + * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $advertiser_display_name = ''; + /** + * Input only. On a proposal being sent to Display & Video 360, this field + * must be set to the email address of an admin on the target advertiser. This + * is used to verify that the Google Analytics admin is aware of at least one + * admin on the Display & Video 360 Advertiser. This does not restrict + * approval of the proposal to a single user. Any admin on the Display & Video + * 360 Advertiser may approve the proposal. + * + * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $validation_email = ''; + /** + * Immutable. Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $ads_personalization_enabled = null; + /** + * Immutable. Enables the import of campaign data from Display & Video 360. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $campaign_data_sharing_enabled = null; + /** + * Immutable. Enables the import of cost data from Display & Video 360. + * This can only be enabled if campaign_data_sharing_enabled is enabled. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $cost_data_sharing_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this + * DisplayVideo360AdvertiserLinkProposal resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} + * Note: proposalId is not the Display & Video 360 Advertiser ID + * @type string $advertiser_id + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * @type \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $link_proposal_status_details + * Output only. The status information for this link proposal. + * @type string $advertiser_display_name + * Output only. The display name of the Display & Video Advertiser. + * Only populated for proposals that originated from Display & Video 360. + * @type string $validation_email + * Input only. On a proposal being sent to Display & Video 360, this field + * must be set to the email address of an admin on the target advertiser. This + * is used to verify that the Google Analytics admin is aware of at least one + * admin on the Display & Video 360 Advertiser. This does not restrict + * approval of the proposal to a single user. Any admin on the Display & Video + * 360 Advertiser may approve the proposal. + * @type \Google\Protobuf\BoolValue $ads_personalization_enabled + * Immutable. Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled + * Immutable. Enables the import of campaign data from Display & Video 360. + * If this field is not set on create, it will be defaulted to true. + * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled + * Immutable. Enables the import of cost data from Display & Video 360. + * This can only be enabled if campaign_data_sharing_enabled is enabled. + * If this field is not set on create, it will be defaulted to true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this + * DisplayVideo360AdvertiserLinkProposal resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} + * Note: proposalId is not the Display & Video 360 Advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this + * DisplayVideo360AdvertiserLinkProposal resource. Format: + * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} + * Note: proposalId is not the Display & Video 360 Advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdvertiserId() + { + return $this->advertiser_id; + } + + /** + * Immutable. The Display & Video 360 Advertiser's advertiser ID. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdvertiserId($var) + { + GPBUtil::checkString($var, True); + $this->advertiser_id = $var; + + return $this; + } + + /** + * Output only. The status information for this link proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails|null + */ + public function getLinkProposalStatusDetails() + { + return $this->link_proposal_status_details; + } + + public function hasLinkProposalStatusDetails() + { + return isset($this->link_proposal_status_details); + } + + public function clearLinkProposalStatusDetails() + { + unset($this->link_proposal_status_details); + } + + /** + * Output only. The status information for this link proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $var + * @return $this + */ + public function setLinkProposalStatusDetails($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails::class); + $this->link_proposal_status_details = $var; + + return $this; + } + + /** + * Output only. The display name of the Display & Video Advertiser. + * Only populated for proposals that originated from Display & Video 360. + * + * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdvertiserDisplayName() + { + return $this->advertiser_display_name; + } + + /** + * Output only. The display name of the Display & Video Advertiser. + * Only populated for proposals that originated from Display & Video 360. + * + * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdvertiserDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->advertiser_display_name = $var; + + return $this; + } + + /** + * Input only. On a proposal being sent to Display & Video 360, this field + * must be set to the email address of an admin on the target advertiser. This + * is used to verify that the Google Analytics admin is aware of at least one + * admin on the Display & Video 360 Advertiser. This does not restrict + * approval of the proposal to a single user. Any admin on the Display & Video + * 360 Advertiser may approve the proposal. + * + * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return string + */ + public function getValidationEmail() + { + return $this->validation_email; + } + + /** + * Input only. On a proposal being sent to Display & Video 360, this field + * must be set to the email address of an admin on the target advertiser. This + * is used to verify that the Google Analytics admin is aware of at least one + * admin on the Display & Video 360 Advertiser. This does not restrict + * approval of the proposal to a single user. Any admin on the Display & Video + * 360 Advertiser may approve the proposal. + * + * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setValidationEmail($var) + { + GPBUtil::checkString($var, True); + $this->validation_email = $var; + + return $this; + } + + /** + * Immutable. Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getAdsPersonalizationEnabled() + { + return $this->ads_personalization_enabled; + } + + public function hasAdsPersonalizationEnabled() + { + return isset($this->ads_personalization_enabled); + } + + public function clearAdsPersonalizationEnabled() + { + unset($this->ads_personalization_enabled); + } + + /** + * Returns the unboxed value from getAdsPersonalizationEnabled() + + * Immutable. Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getAdsPersonalizationEnabledUnwrapped() + { + return $this->readWrapperValue("ads_personalization_enabled"); + } + + /** + * Immutable. Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setAdsPersonalizationEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->ads_personalization_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setAdsPersonalizationEnabledUnwrapped($var) + { + $this->writeWrapperValue("ads_personalization_enabled", $var); + return $this;} + + /** + * Immutable. Enables the import of campaign data from Display & Video 360. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCampaignDataSharingEnabled() + { + return $this->campaign_data_sharing_enabled; + } + + public function hasCampaignDataSharingEnabled() + { + return isset($this->campaign_data_sharing_enabled); + } + + public function clearCampaignDataSharingEnabled() + { + unset($this->campaign_data_sharing_enabled); + } + + /** + * Returns the unboxed value from getCampaignDataSharingEnabled() + + * Immutable. Enables the import of campaign data from Display & Video 360. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getCampaignDataSharingEnabledUnwrapped() + { + return $this->readWrapperValue("campaign_data_sharing_enabled"); + } + + /** + * Immutable. Enables the import of campaign data from Display & Video 360. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCampaignDataSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->campaign_data_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables the import of campaign data from Display & Video 360. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setCampaignDataSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("campaign_data_sharing_enabled", $var); + return $this;} + + /** + * Immutable. Enables the import of cost data from Display & Video 360. + * This can only be enabled if campaign_data_sharing_enabled is enabled. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCostDataSharingEnabled() + { + return $this->cost_data_sharing_enabled; + } + + public function hasCostDataSharingEnabled() + { + return isset($this->cost_data_sharing_enabled); + } + + public function clearCostDataSharingEnabled() + { + unset($this->cost_data_sharing_enabled); + } + + /** + * Returns the unboxed value from getCostDataSharingEnabled() + + * Immutable. Enables the import of cost data from Display & Video 360. + * This can only be enabled if campaign_data_sharing_enabled is enabled. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getCostDataSharingEnabledUnwrapped() + { + return $this->readWrapperValue("cost_data_sharing_enabled"); + } + + /** + * Immutable. Enables the import of cost data from Display & Video 360. + * This can only be enabled if campaign_data_sharing_enabled is enabled. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCostDataSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->cost_data_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables the import of cost data from Display & Video 360. + * This can only be enabled if campaign_data_sharing_enabled is enabled. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setCostDataSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("cost_data_sharing_enabled", $var); + return $this;} + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php new file mode 100644 index 000000000000..b210cd61041e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php @@ -0,0 +1,472 @@ +google.analytics.admin.v1alpha.EnhancedMeasurementSettings + */ +class EnhancedMeasurementSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the Enhanced Measurement Settings. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Indicates whether Enhanced Measurement Settings will be used to + * automatically measure interactions and content on this web stream. + * Changing this value does not affect the settings themselves, but determines + * whether they are respected. + * + * Generated from protobuf field bool stream_enabled = 2; + */ + protected $stream_enabled = false; + /** + * If enabled, capture scroll events each time a visitor gets to the bottom of + * a page. + * + * Generated from protobuf field bool scrolls_enabled = 3; + */ + protected $scrolls_enabled = false; + /** + * If enabled, capture an outbound click event each time a visitor clicks a + * link that leads them away from your domain. + * + * Generated from protobuf field bool outbound_clicks_enabled = 4; + */ + protected $outbound_clicks_enabled = false; + /** + * If enabled, capture a view search results event each time a visitor + * performs a search on your site (based on a query parameter). + * + * Generated from protobuf field bool site_search_enabled = 5; + */ + protected $site_search_enabled = false; + /** + * If enabled, capture video play, progress, and complete events as visitors + * view embedded videos on your site. + * + * Generated from protobuf field bool video_engagement_enabled = 6; + */ + protected $video_engagement_enabled = false; + /** + * If enabled, capture a file download event each time a link is clicked with + * a common document, compressed file, application, video, or audio extension. + * + * Generated from protobuf field bool file_downloads_enabled = 7; + */ + protected $file_downloads_enabled = false; + /** + * If enabled, capture a page view event each time the website changes the + * browser history state. + * + * Generated from protobuf field bool page_changes_enabled = 8; + */ + protected $page_changes_enabled = false; + /** + * If enabled, capture a form interaction event each time a visitor interacts + * with a form on your website. + * False by default. + * + * Generated from protobuf field bool form_interactions_enabled = 9; + */ + protected $form_interactions_enabled = false; + /** + * Required. URL query parameters to interpret as site search parameters. + * Max length is 1024 characters. Must not be empty. + * + * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $search_query_parameter = ''; + /** + * Additional URL query parameters. + * Max length is 1024 characters. + * + * Generated from protobuf field string uri_query_parameter = 11; + */ + protected $uri_query_parameter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the Enhanced Measurement Settings. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * @type bool $stream_enabled + * Indicates whether Enhanced Measurement Settings will be used to + * automatically measure interactions and content on this web stream. + * Changing this value does not affect the settings themselves, but determines + * whether they are respected. + * @type bool $scrolls_enabled + * If enabled, capture scroll events each time a visitor gets to the bottom of + * a page. + * @type bool $outbound_clicks_enabled + * If enabled, capture an outbound click event each time a visitor clicks a + * link that leads them away from your domain. + * @type bool $site_search_enabled + * If enabled, capture a view search results event each time a visitor + * performs a search on your site (based on a query parameter). + * @type bool $video_engagement_enabled + * If enabled, capture video play, progress, and complete events as visitors + * view embedded videos on your site. + * @type bool $file_downloads_enabled + * If enabled, capture a file download event each time a link is clicked with + * a common document, compressed file, application, video, or audio extension. + * @type bool $page_changes_enabled + * If enabled, capture a page view event each time the website changes the + * browser history state. + * @type bool $form_interactions_enabled + * If enabled, capture a form interaction event each time a visitor interacts + * with a form on your website. + * False by default. + * @type string $search_query_parameter + * Required. URL query parameters to interpret as site search parameters. + * Max length is 1024 characters. Must not be empty. + * @type string $uri_query_parameter + * Additional URL query parameters. + * Max length is 1024 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the Enhanced Measurement Settings. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the Enhanced Measurement Settings. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Indicates whether Enhanced Measurement Settings will be used to + * automatically measure interactions and content on this web stream. + * Changing this value does not affect the settings themselves, but determines + * whether they are respected. + * + * Generated from protobuf field bool stream_enabled = 2; + * @return bool + */ + public function getStreamEnabled() + { + return $this->stream_enabled; + } + + /** + * Indicates whether Enhanced Measurement Settings will be used to + * automatically measure interactions and content on this web stream. + * Changing this value does not affect the settings themselves, but determines + * whether they are respected. + * + * Generated from protobuf field bool stream_enabled = 2; + * @param bool $var + * @return $this + */ + public function setStreamEnabled($var) + { + GPBUtil::checkBool($var); + $this->stream_enabled = $var; + + return $this; + } + + /** + * If enabled, capture scroll events each time a visitor gets to the bottom of + * a page. + * + * Generated from protobuf field bool scrolls_enabled = 3; + * @return bool + */ + public function getScrollsEnabled() + { + return $this->scrolls_enabled; + } + + /** + * If enabled, capture scroll events each time a visitor gets to the bottom of + * a page. + * + * Generated from protobuf field bool scrolls_enabled = 3; + * @param bool $var + * @return $this + */ + public function setScrollsEnabled($var) + { + GPBUtil::checkBool($var); + $this->scrolls_enabled = $var; + + return $this; + } + + /** + * If enabled, capture an outbound click event each time a visitor clicks a + * link that leads them away from your domain. + * + * Generated from protobuf field bool outbound_clicks_enabled = 4; + * @return bool + */ + public function getOutboundClicksEnabled() + { + return $this->outbound_clicks_enabled; + } + + /** + * If enabled, capture an outbound click event each time a visitor clicks a + * link that leads them away from your domain. + * + * Generated from protobuf field bool outbound_clicks_enabled = 4; + * @param bool $var + * @return $this + */ + public function setOutboundClicksEnabled($var) + { + GPBUtil::checkBool($var); + $this->outbound_clicks_enabled = $var; + + return $this; + } + + /** + * If enabled, capture a view search results event each time a visitor + * performs a search on your site (based on a query parameter). + * + * Generated from protobuf field bool site_search_enabled = 5; + * @return bool + */ + public function getSiteSearchEnabled() + { + return $this->site_search_enabled; + } + + /** + * If enabled, capture a view search results event each time a visitor + * performs a search on your site (based on a query parameter). + * + * Generated from protobuf field bool site_search_enabled = 5; + * @param bool $var + * @return $this + */ + public function setSiteSearchEnabled($var) + { + GPBUtil::checkBool($var); + $this->site_search_enabled = $var; + + return $this; + } + + /** + * If enabled, capture video play, progress, and complete events as visitors + * view embedded videos on your site. + * + * Generated from protobuf field bool video_engagement_enabled = 6; + * @return bool + */ + public function getVideoEngagementEnabled() + { + return $this->video_engagement_enabled; + } + + /** + * If enabled, capture video play, progress, and complete events as visitors + * view embedded videos on your site. + * + * Generated from protobuf field bool video_engagement_enabled = 6; + * @param bool $var + * @return $this + */ + public function setVideoEngagementEnabled($var) + { + GPBUtil::checkBool($var); + $this->video_engagement_enabled = $var; + + return $this; + } + + /** + * If enabled, capture a file download event each time a link is clicked with + * a common document, compressed file, application, video, or audio extension. + * + * Generated from protobuf field bool file_downloads_enabled = 7; + * @return bool + */ + public function getFileDownloadsEnabled() + { + return $this->file_downloads_enabled; + } + + /** + * If enabled, capture a file download event each time a link is clicked with + * a common document, compressed file, application, video, or audio extension. + * + * Generated from protobuf field bool file_downloads_enabled = 7; + * @param bool $var + * @return $this + */ + public function setFileDownloadsEnabled($var) + { + GPBUtil::checkBool($var); + $this->file_downloads_enabled = $var; + + return $this; + } + + /** + * If enabled, capture a page view event each time the website changes the + * browser history state. + * + * Generated from protobuf field bool page_changes_enabled = 8; + * @return bool + */ + public function getPageChangesEnabled() + { + return $this->page_changes_enabled; + } + + /** + * If enabled, capture a page view event each time the website changes the + * browser history state. + * + * Generated from protobuf field bool page_changes_enabled = 8; + * @param bool $var + * @return $this + */ + public function setPageChangesEnabled($var) + { + GPBUtil::checkBool($var); + $this->page_changes_enabled = $var; + + return $this; + } + + /** + * If enabled, capture a form interaction event each time a visitor interacts + * with a form on your website. + * False by default. + * + * Generated from protobuf field bool form_interactions_enabled = 9; + * @return bool + */ + public function getFormInteractionsEnabled() + { + return $this->form_interactions_enabled; + } + + /** + * If enabled, capture a form interaction event each time a visitor interacts + * with a form on your website. + * False by default. + * + * Generated from protobuf field bool form_interactions_enabled = 9; + * @param bool $var + * @return $this + */ + public function setFormInteractionsEnabled($var) + { + GPBUtil::checkBool($var); + $this->form_interactions_enabled = $var; + + return $this; + } + + /** + * Required. URL query parameters to interpret as site search parameters. + * Max length is 1024 characters. Must not be empty. + * + * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSearchQueryParameter() + { + return $this->search_query_parameter; + } + + /** + * Required. URL query parameters to interpret as site search parameters. + * Max length is 1024 characters. Must not be empty. + * + * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSearchQueryParameter($var) + { + GPBUtil::checkString($var, True); + $this->search_query_parameter = $var; + + return $this; + } + + /** + * Additional URL query parameters. + * Max length is 1024 characters. + * + * Generated from protobuf field string uri_query_parameter = 11; + * @return string + */ + public function getUriQueryParameter() + { + return $this->uri_query_parameter; + } + + /** + * Additional URL query parameters. + * Max length is 1024 characters. + * + * Generated from protobuf field string uri_query_parameter = 11; + * @param string $var + * @return $this + */ + public function setUriQueryParameter($var) + { + GPBUtil::checkString($var, True); + $this->uri_query_parameter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php new file mode 100644 index 000000000000..f5101fcff128 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php @@ -0,0 +1,257 @@ +google.analytics.admin.v1alpha.EventCreateRule + */ +class EventCreateRule extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this EventCreateRule resource. + * Format: + * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The name of the new event to be created. + * This value must: + * * be less than 40 characters + * * consist only of letters, digits or _ (underscores) + * * start with a letter + * + * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $destination_event = ''; + /** + * Required. Must have at least one condition, and can have up to 10 max. + * Conditions on the source event must match for this rule to be applied. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $event_conditions; + /** + * If true, the source parameters are copied to the new event. + * If false, or unset, all non-internal parameters are not copied from the + * source event. Parameter mutations are applied after the parameters have + * been copied. + * + * Generated from protobuf field bool source_copy_parameters = 4; + */ + protected $source_copy_parameters = false; + /** + * Parameter mutations define parameter behavior on the new event, and + * are applied in order. + * A maximum of 20 mutations can be applied. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + */ + private $parameter_mutations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this EventCreateRule resource. + * Format: + * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} + * @type string $destination_event + * Required. The name of the new event to be created. + * This value must: + * * be less than 40 characters + * * consist only of letters, digits or _ (underscores) + * * start with a letter + * @type array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $event_conditions + * Required. Must have at least one condition, and can have up to 10 max. + * Conditions on the source event must match for this rule to be applied. + * @type bool $source_copy_parameters + * If true, the source parameters are copied to the new event. + * If false, or unset, all non-internal parameters are not copied from the + * source event. Parameter mutations are applied after the parameters have + * been copied. + * @type array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $parameter_mutations + * Parameter mutations define parameter behavior on the new event, and + * are applied in order. + * A maximum of 20 mutations can be applied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this EventCreateRule resource. + * Format: + * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this EventCreateRule resource. + * Format: + * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the new event to be created. + * This value must: + * * be less than 40 characters + * * consist only of letters, digits or _ (underscores) + * * start with a letter + * + * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDestinationEvent() + { + return $this->destination_event; + } + + /** + * Required. The name of the new event to be created. + * This value must: + * * be less than 40 characters + * * consist only of letters, digits or _ (underscores) + * * start with a letter + * + * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDestinationEvent($var) + { + GPBUtil::checkString($var, True); + $this->destination_event = $var; + + return $this; + } + + /** + * Required. Must have at least one condition, and can have up to 10 max. + * Conditions on the source event must match for this rule to be applied. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEventConditions() + { + return $this->event_conditions; + } + + /** + * Required. Must have at least one condition, and can have up to 10 max. + * Conditions on the source event must match for this rule to be applied. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEventConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MatchingCondition::class); + $this->event_conditions = $arr; + + return $this; + } + + /** + * If true, the source parameters are copied to the new event. + * If false, or unset, all non-internal parameters are not copied from the + * source event. Parameter mutations are applied after the parameters have + * been copied. + * + * Generated from protobuf field bool source_copy_parameters = 4; + * @return bool + */ + public function getSourceCopyParameters() + { + return $this->source_copy_parameters; + } + + /** + * If true, the source parameters are copied to the new event. + * If false, or unset, all non-internal parameters are not copied from the + * source event. Parameter mutations are applied after the parameters have + * been copied. + * + * Generated from protobuf field bool source_copy_parameters = 4; + * @param bool $var + * @return $this + */ + public function setSourceCopyParameters($var) + { + GPBUtil::checkBool($var); + $this->source_copy_parameters = $var; + + return $this; + } + + /** + * Parameter mutations define parameter behavior on the new event, and + * are applied in order. + * A maximum of 20 mutations can be applied. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getParameterMutations() + { + return $this->parameter_mutations; + } + + /** + * Parameter mutations define parameter behavior on the new event, and + * are applied in order. + * A maximum of 20 mutations can be applied. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * @param array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setParameterMutations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ParameterMutation::class); + $this->parameter_mutations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php new file mode 100644 index 000000000000..62800a21cb3f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php @@ -0,0 +1,279 @@ +google.analytics.admin.v1alpha.EventMapping + */ +class EventMapping extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the GA4 event. It must always be set. + * The max allowed display name length is 40 UTF-16 code units. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $event_name = ''; + /** + * At least one of the following four min/max values must be set. The + * values set will be ANDed together to qualify an event. + * The minimum number of times the event occurred. If not set, minimum event + * count won't be checked. + * + * Generated from protobuf field optional int64 min_event_count = 2; + */ + protected $min_event_count = null; + /** + * The maximum number of times the event occurred. If not set, maximum event + * count won't be checked. + * + * Generated from protobuf field optional int64 max_event_count = 3; + */ + protected $max_event_count = null; + /** + * The minimum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, minimum event value won't be + * checked. + * + * Generated from protobuf field optional double min_event_value = 4; + */ + protected $min_event_value = null; + /** + * The maximum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, maximum event value won't be + * checked. + * + * Generated from protobuf field optional double max_event_value = 5; + */ + protected $max_event_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $event_name + * Required. Name of the GA4 event. It must always be set. + * The max allowed display name length is 40 UTF-16 code units. + * @type int|string $min_event_count + * At least one of the following four min/max values must be set. The + * values set will be ANDed together to qualify an event. + * The minimum number of times the event occurred. If not set, minimum event + * count won't be checked. + * @type int|string $max_event_count + * The maximum number of times the event occurred. If not set, maximum event + * count won't be checked. + * @type float $min_event_value + * The minimum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, minimum event value won't be + * checked. + * @type float $max_event_value + * The maximum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, maximum event value won't be + * checked. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the GA4 event. It must always be set. + * The max allowed display name length is 40 UTF-16 code units. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEventName() + { + return $this->event_name; + } + + /** + * Required. Name of the GA4 event. It must always be set. + * The max allowed display name length is 40 UTF-16 code units. + * + * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEventName($var) + { + GPBUtil::checkString($var, True); + $this->event_name = $var; + + return $this; + } + + /** + * At least one of the following four min/max values must be set. The + * values set will be ANDed together to qualify an event. + * The minimum number of times the event occurred. If not set, minimum event + * count won't be checked. + * + * Generated from protobuf field optional int64 min_event_count = 2; + * @return int|string + */ + public function getMinEventCount() + { + return isset($this->min_event_count) ? $this->min_event_count : 0; + } + + public function hasMinEventCount() + { + return isset($this->min_event_count); + } + + public function clearMinEventCount() + { + unset($this->min_event_count); + } + + /** + * At least one of the following four min/max values must be set. The + * values set will be ANDed together to qualify an event. + * The minimum number of times the event occurred. If not set, minimum event + * count won't be checked. + * + * Generated from protobuf field optional int64 min_event_count = 2; + * @param int|string $var + * @return $this + */ + public function setMinEventCount($var) + { + GPBUtil::checkInt64($var); + $this->min_event_count = $var; + + return $this; + } + + /** + * The maximum number of times the event occurred. If not set, maximum event + * count won't be checked. + * + * Generated from protobuf field optional int64 max_event_count = 3; + * @return int|string + */ + public function getMaxEventCount() + { + return isset($this->max_event_count) ? $this->max_event_count : 0; + } + + public function hasMaxEventCount() + { + return isset($this->max_event_count); + } + + public function clearMaxEventCount() + { + unset($this->max_event_count); + } + + /** + * The maximum number of times the event occurred. If not set, maximum event + * count won't be checked. + * + * Generated from protobuf field optional int64 max_event_count = 3; + * @param int|string $var + * @return $this + */ + public function setMaxEventCount($var) + { + GPBUtil::checkInt64($var); + $this->max_event_count = $var; + + return $this; + } + + /** + * The minimum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, minimum event value won't be + * checked. + * + * Generated from protobuf field optional double min_event_value = 4; + * @return float + */ + public function getMinEventValue() + { + return isset($this->min_event_value) ? $this->min_event_value : 0.0; + } + + public function hasMinEventValue() + { + return isset($this->min_event_value); + } + + public function clearMinEventValue() + { + unset($this->min_event_value); + } + + /** + * The minimum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, minimum event value won't be + * checked. + * + * Generated from protobuf field optional double min_event_value = 4; + * @param float $var + * @return $this + */ + public function setMinEventValue($var) + { + GPBUtil::checkDouble($var); + $this->min_event_value = $var; + + return $this; + } + + /** + * The maximum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, maximum event value won't be + * checked. + * + * Generated from protobuf field optional double max_event_value = 5; + * @return float + */ + public function getMaxEventValue() + { + return isset($this->max_event_value) ? $this->max_event_value : 0.0; + } + + public function hasMaxEventValue() + { + return isset($this->max_event_value); + } + + public function clearMaxEventValue() + { + unset($this->max_event_value); + } + + /** + * The maximum revenue generated due to the event. Revenue currency will be + * defined at the property level. If not set, maximum event value won't be + * checked. + * + * Generated from protobuf field optional double max_event_value = 5; + * @param float $var + * @return $this + */ + public function setMaxEventValue($var) + { + GPBUtil::checkDouble($var); + $this->max_event_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php new file mode 100644 index 000000000000..0c24c2b5a748 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php @@ -0,0 +1,339 @@ +google.analytics.admin.v1alpha.ExpandedDataSet + */ +class ExpandedDataSet extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this ExpandedDataSet resource. + * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The display name of the ExpandedDataSet. + * Max 200 chars. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. The description of the ExpandedDataSet. + * Max 50 chars. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Immutable. The list of dimensions included in the ExpandedDataSet. + * See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * + * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $dimension_names; + /** + * Immutable. The list of metrics included in the ExpandedDataSet. + * See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of dimension names. + * + * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $metric_names; + /** + * Immutable. A logical expression of ExpandedDataSet filters applied to + * dimension included in the ExpandedDataSet. This filter is used to reduce + * the number of rows and thus the chance of encountering `other` row. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $dimension_filter_expression = null; + /** + * Output only. Time when expanded data set began (or will begin) collecing + * data. + * + * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_collection_start_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this ExpandedDataSet resource. + * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} + * @type string $display_name + * Required. The display name of the ExpandedDataSet. + * Max 200 chars. + * @type string $description + * Optional. The description of the ExpandedDataSet. + * Max 50 chars. + * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names + * Immutable. The list of dimensions included in the ExpandedDataSet. + * See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * @type array|\Google\Protobuf\Internal\RepeatedField $metric_names + * Immutable. The list of metrics included in the ExpandedDataSet. + * See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of dimension names. + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $dimension_filter_expression + * Immutable. A logical expression of ExpandedDataSet filters applied to + * dimension included in the ExpandedDataSet. This filter is used to reduce + * the number of rows and thus the chance of encountering `other` row. + * @type \Google\Protobuf\Timestamp $data_collection_start_time + * Output only. Time when expanded data set began (or will begin) collecing + * data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this ExpandedDataSet resource. + * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this ExpandedDataSet resource. + * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the ExpandedDataSet. + * Max 200 chars. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of the ExpandedDataSet. + * Max 200 chars. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The description of the ExpandedDataSet. + * Max 50 chars. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The description of the ExpandedDataSet. + * Max 50 chars. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Immutable. The list of dimensions included in the ExpandedDataSet. + * See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * + * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionNames() + { + return $this->dimension_names; + } + + /** + * Immutable. The list of dimensions included in the ExpandedDataSet. + * See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * + * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->dimension_names = $arr; + + return $this; + } + + /** + * Immutable. The list of metrics included in the ExpandedDataSet. + * See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of dimension names. + * + * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricNames() + { + return $this->metric_names; + } + + /** + * Immutable. The list of metrics included in the ExpandedDataSet. + * See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of dimension names. + * + * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metric_names = $arr; + + return $this; + } + + /** + * Immutable. A logical expression of ExpandedDataSet filters applied to + * dimension included in the ExpandedDataSet. This filter is used to reduce + * the number of rows and thus the chance of encountering `other` row. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression|null + */ + public function getDimensionFilterExpression() + { + return $this->dimension_filter_expression; + } + + public function hasDimensionFilterExpression() + { + return isset($this->dimension_filter_expression); + } + + public function clearDimensionFilterExpression() + { + unset($this->dimension_filter_expression); + } + + /** + * Immutable. A logical expression of ExpandedDataSet filters applied to + * dimension included in the ExpandedDataSet. This filter is used to reduce + * the number of rows and thus the chance of encountering `other` row. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $var + * @return $this + */ + public function setDimensionFilterExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); + $this->dimension_filter_expression = $var; + + return $this; + } + + /** + * Output only. Time when expanded data set began (or will begin) collecing + * data. + * + * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDataCollectionStartTime() + { + return $this->data_collection_start_time; + } + + public function hasDataCollectionStartTime() + { + return isset($this->data_collection_start_time); + } + + public function clearDataCollectionStartTime() + { + unset($this->data_collection_start_time); + } + + /** + * Output only. Time when expanded data set began (or will begin) collecing + * data. + * + * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDataCollectionStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->data_collection_start_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php new file mode 100644 index 000000000000..22aed1babf03 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php @@ -0,0 +1,145 @@ +google.analytics.admin.v1alpha.ExpandedDataSetFilter + */ +class ExpandedDataSetFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The dimension name to filter. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field_name = ''; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter $string_filter + * A filter for a string-type dimension that matches a particular pattern. + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter $in_list_filter + * A filter for a string dimension that matches a particular list of + * options. + * @type string $field_name + * Required. The dimension name to filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); + parent::__construct($data); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(2); + } + + public function hasStringFilter() + { + return $this->hasOneof(2); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for a string dimension that matches a particular list of + * options. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter|null + */ + public function getInListFilter() + { + return $this->readOneof(3); + } + + public function hasInListFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for a string dimension that matches a particular list of + * options. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter $var + * @return $this + */ + public function setInListFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The dimension name to filter. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * Required. The dimension name to filter. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php new file mode 100644 index 000000000000..1e242378d9a8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php @@ -0,0 +1,116 @@ +google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + */ +class InListFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true. + * + * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * Required. The list of possible string values to match against. Must be + * non-empty. + * @type bool $case_sensitive + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. The list of possible string values to match against. Must be + * non-empty. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true. + * + * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true. + * + * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_InListFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php new file mode 100644 index 000000000000..7010e52a8334 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php @@ -0,0 +1,150 @@ +google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + */ +class StringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $match_type = 0; + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true when match_type is EXACT. + * Must be false when match_type is CONTAINS. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * Required. The match type for the string filter. + * @type string $value + * Required. The string value to be matched against. + * @type bool $case_sensitive + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true when match_type is EXACT. + * Must be false when match_type is CONTAINS. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); + parent::__construct($data); + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The string value to be matched against. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true when match_type is EXACT. + * Must be false when match_type is CONTAINS. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Optional. If true, the match is case-sensitive. If false, the match is + * case-insensitive. + * Must be true when match_type is EXACT. + * Must be false when match_type is CONTAINS. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_StringFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php new file mode 100644 index 000000000000..b8c07512fb95 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php @@ -0,0 +1,64 @@ +google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + */ +class MatchType +{ + /** + * Unspecified + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 2; + */ + const CONTAINS = 2; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::CONTAINS => 'CONTAINS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_StringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php new file mode 100644 index 000000000000..599f633a8477 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php @@ -0,0 +1,159 @@ +google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + */ +class ExpandedDataSetFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList $and_group + * A list of expressions to be AND’ed together. It must contain a + * ExpandedDataSetFilterExpression with either not_expression or + * dimension_filter. This must be set for the top level + * ExpandedDataSetFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $not_expression + * A filter expression to be NOT'ed (that is, inverted, complemented). It + * must include a dimension_filter. This cannot be set on the + * top level ExpandedDataSetFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter $filter + * A filter on a single dimension. This cannot be set on the top + * level ExpandedDataSetFilterExpression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); + parent::__construct($data); + } + + /** + * A list of expressions to be AND’ed together. It must contain a + * ExpandedDataSetFilterExpression with either not_expression or + * dimension_filter. This must be set for the top level + * ExpandedDataSetFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList|null + */ + public function getAndGroup() + { + return $this->readOneof(1); + } + + public function hasAndGroup() + { + return $this->hasOneof(1); + } + + /** + * A list of expressions to be AND’ed together. It must contain a + * ExpandedDataSetFilterExpression with either not_expression or + * dimension_filter. This must be set for the top level + * ExpandedDataSetFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList $var + * @return $this + */ + public function setAndGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A filter expression to be NOT'ed (that is, inverted, complemented). It + * must include a dimension_filter. This cannot be set on the + * top level ExpandedDataSetFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(2); + } + + public function hasNotExpression() + { + return $this->hasOneof(2); + } + + /** + * A filter expression to be NOT'ed (that is, inverted, complemented). It + * must include a dimension_filter. This cannot be set on the + * top level ExpandedDataSetFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter on a single dimension. This cannot be set on the top + * level ExpandedDataSetFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter|null + */ + public function getFilter() + { + return $this->readOneof(3); + } + + public function hasFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter on a single dimension. This cannot be set on the top + * level ExpandedDataSetFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getExpr() + { + return $this->whichOneof("expr"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php new file mode 100644 index 000000000000..90185029e2a9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + */ +class ExpandedDataSetFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of ExpandedDataSet filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + */ + private $filter_expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions + * A list of ExpandedDataSet filter expressions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); + parent::__construct($data); + } + + /** + * A list of ExpandedDataSet filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterExpressions() + { + return $this->filter_expressions; + } + + /** + * A list of ExpandedDataSet filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); + $this->filter_expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php new file mode 100644 index 000000000000..54c09a227427 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + */ +class FetchAutomatedGa4ConfigurationOptOutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php new file mode 100644 index 000000000000..aa38497d6e9b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php @@ -0,0 +1,68 @@ +google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + */ +class FetchAutomatedGa4ConfigurationOptOutResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The opt out status for the UA property. + * + * Generated from protobuf field bool opt_out = 1; + */ + protected $opt_out = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $opt_out + * The opt out status for the UA property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The opt out status for the UA property. + * + * Generated from protobuf field bool opt_out = 1; + * @return bool + */ + public function getOptOut() + { + return $this->opt_out; + } + + /** + * The opt out status for the UA property. + * + * Generated from protobuf field bool opt_out = 1; + * @param bool $var + * @return $this + */ + public function setOptOut($var) + { + GPBUtil::checkBool($var); + $this->opt_out = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php new file mode 100644 index 000000000000..61191cef5a19 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php @@ -0,0 +1,83 @@ +google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + */ +class FetchConnectedGa4PropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The UA property for which to look up the connected GA4 property. + * Note this request uses the + * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internal_web_property_id} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $property = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Required. The UA property for which to look up the connected GA4 property. + * Note this request uses the + * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internal_web_property_id} + * Example: properties/1234 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The UA property for which to look up the connected GA4 property. + * Note this request uses the + * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internal_web_property_id} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Required. The UA property for which to look up the connected GA4 property. + * Note this request uses the + * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internal_web_property_id} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php new file mode 100644 index 000000000000..a94bf8de4550 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + */ +class FetchConnectedGa4PropertyResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The GA4 property connected to the UA property. An empty string is returned + * when there is no connected GA4 property. + * Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + */ + protected $property = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * The GA4 property connected to the UA property. An empty string is returned + * when there is no connected GA4 property. + * Format: properties/{property_id} + * Example: properties/1234 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The GA4 property connected to the UA property. An empty string is returned + * when there is no connected GA4 property. + * Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * The GA4 property connected to the UA property. An empty string is returned + * when there is no connected GA4 property. + * Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php new file mode 100644 index 000000000000..741cb2628234 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php @@ -0,0 +1,165 @@ +google.analytics.admin.v1alpha.FirebaseLink + */ +class FirebaseLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Example format: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $project = ''; + /** + * Output only. Time when this FirebaseLink was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Example format: properties/1234/firebaseLinks/5678 + * @type string $project + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this FirebaseLink was originally created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Example format: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Example format: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Output only. Time when this FirebaseLink was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this FirebaseLink was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php new file mode 100644 index 000000000000..cb5893b9f126 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetAccessBindingRequest + */ +class GetAccessBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the access binding to retrieve. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the access binding to retrieve. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the access binding to retrieve. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the access binding to retrieve. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php new file mode 100644 index 000000000000..9b4cdaa03052 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetAccountRequest + */ +class GetAccountRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php new file mode 100644 index 000000000000..d0bd19915e42 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetAdSenseLinkRequest + */ +class GetAdSenseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php new file mode 100644 index 000000000000..ca38dbdfc43b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetAttributionSettingsRequest + */ +class GetAttributionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php new file mode 100644 index 000000000000..bcec1ab442c6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetAudienceRequest + */ +class GetAudienceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Audience to get. + * Example format: properties/1234/audiences/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Audience to get. + * Example format: properties/1234/audiences/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Audience to get. + * Example format: properties/1234/audiences/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Audience to get. + * Example format: properties/1234/audiences/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php new file mode 100644 index 000000000000..5882f134e0a2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetBigQueryLinkRequest + */ +class GetBigQueryLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php new file mode 100644 index 000000000000..1b8b76adbea7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetChannelGroupRequest + */ +class GetChannelGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ChannelGroup to get. + * Example format: properties/1234/channelGroups/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The ChannelGroup to get. + * Example format: properties/1234/channelGroups/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ChannelGroup to get. + * Example format: properties/1234/channelGroups/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The ChannelGroup to get. + * Example format: properties/1234/channelGroups/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php new file mode 100644 index 000000000000..741ac4d94100 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetConversionEventRequest + */ +class GetConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php new file mode 100644 index 000000000000..2d21779d150d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetCustomDimensionRequest + */ +class GetCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php new file mode 100644 index 000000000000..e67f592d606a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetCustomMetricRequest + */ +class GetCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php new file mode 100644 index 000000000000..452e5a2ae57c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + */ +class GetDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php new file mode 100644 index 000000000000..194ee366d6a9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + */ +class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php new file mode 100644 index 000000000000..31aeb5cd19d0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + */ +class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php new file mode 100644 index 000000000000..6952d888238e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetDataStreamRequest + */ +class GetDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php new file mode 100644 index 000000000000..3c100b7236f2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + */ +class GetDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php new file mode 100644 index 000000000000..9b35d95116b2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + */ +class GetDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php new file mode 100644 index 000000000000..595a4b58496b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + */ +class GetEnhancedMeasurementSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php new file mode 100644 index 000000000000..9e5033da4def --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetEventCreateRuleRequest + */ +class GetEventCreateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php new file mode 100644 index 000000000000..e6d25c38ac9f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetExpandedDataSetRequest + */ +class GetExpandedDataSetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the ExpandedDataSet to get. + * Example format: properties/1234/expandedDataSets/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the ExpandedDataSet to get. + * Example format: properties/1234/expandedDataSets/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the ExpandedDataSet to get. + * Example format: properties/1234/expandedDataSets/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the ExpandedDataSet to get. + * Example format: properties/1234/expandedDataSets/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php new file mode 100644 index 000000000000..bf82823734fb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + */ +class GetGlobalSiteTagRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php new file mode 100644 index 000000000000..18c6cdd29b2a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + */ +class GetGoogleSignalsSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..e3ed3a11c4eb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + */ +class GetMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php new file mode 100644 index 000000000000..92fab15e70ba --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetPropertyRequest + */ +class GetPropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php new file mode 100644 index 000000000000..4b6293cf778b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + */ +class GetRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php new file mode 100644 index 000000000000..13ac0873dd8b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + */ +class GetSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php new file mode 100644 index 000000000000..cc9b6ec43d5b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.GetSearchAds360LinkRequest + */ +class GetSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..424fca56caf8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + */ +class GetSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php new file mode 100644 index 000000000000..ff41c254253b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php @@ -0,0 +1,114 @@ +google.analytics.admin.v1alpha.GlobalSiteTag + */ +class GlobalSiteTag extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this GlobalSiteTag resource. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. JavaScript code snippet to be pasted as the first item into the + * head tag of every webpage to measure. + * + * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $snippet = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this GlobalSiteTag resource. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * @type string $snippet + * Immutable. JavaScript code snippet to be pasted as the first item into the + * head tag of every webpage to measure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this GlobalSiteTag resource. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this GlobalSiteTag resource. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. JavaScript code snippet to be pasted as the first item into the + * head tag of every webpage to measure. + * + * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getSnippet() + { + return $this->snippet; + } + + /** + * Immutable. JavaScript code snippet to be pasted as the first item into the + * head tag of every webpage to measure. + * + * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setSnippet($var) + { + GPBUtil::checkString($var, True); + $this->snippet = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php new file mode 100644 index 000000000000..8c768dd1afb0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php @@ -0,0 +1,358 @@ +google.analytics.admin.v1alpha.GoogleAdsLink + */ +class GoogleAdsLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. Google Ads customer ID. + * + * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $customer_id = ''; + /** + * Output only. If true, this link is for a Google Ads manager account. + * + * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $can_manage_clients = false; + /** + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + protected $ads_personalization_enabled = null; + /** + * Output only. Time when this link was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when this link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * + * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $creator_email_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * @type string $customer_id + * Immutable. Google Ads customer ID. + * @type bool $can_manage_clients + * Output only. If true, this link is for a Google Ads manager account. + * @type \Google\Protobuf\BoolValue $ads_personalization_enabled + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this link was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when this link was last updated. + * @type string $creator_email_address + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. Google Ads customer ID. + * + * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getCustomerId() + { + return $this->customer_id; + } + + /** + * Immutable. Google Ads customer ID. + * + * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setCustomerId($var) + { + GPBUtil::checkString($var, True); + $this->customer_id = $var; + + return $this; + } + + /** + * Output only. If true, this link is for a Google Ads manager account. + * + * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCanManageClients() + { + return $this->can_manage_clients; + } + + /** + * Output only. If true, this link is for a Google Ads manager account. + * + * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCanManageClients($var) + { + GPBUtil::checkBool($var); + $this->can_manage_clients = $var; + + return $this; + } + + /** + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @return \Google\Protobuf\BoolValue|null + */ + public function getAdsPersonalizationEnabled() + { + return $this->ads_personalization_enabled; + } + + public function hasAdsPersonalizationEnabled() + { + return isset($this->ads_personalization_enabled); + } + + public function clearAdsPersonalizationEnabled() + { + unset($this->ads_personalization_enabled); + } + + /** + * Returns the unboxed value from getAdsPersonalizationEnabled() + + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @return bool|null + */ + public function getAdsPersonalizationEnabledUnwrapped() + { + return $this->readWrapperValue("ads_personalization_enabled"); + } + + /** + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setAdsPersonalizationEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->ads_personalization_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @param bool|null $var + * @return $this + */ + public function setAdsPersonalizationEnabledUnwrapped($var) + { + $this->writeWrapperValue("ads_personalization_enabled", $var); + return $this;} + + /** + * Output only. Time when this link was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this link was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when this link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when this link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * + * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreatorEmailAddress() + { + return $this->creator_email_address; + } + + /** + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * + * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreatorEmailAddress($var) + { + GPBUtil::checkString($var, True); + $this->creator_email_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php new file mode 100644 index 000000000000..025db1938708 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php @@ -0,0 +1,63 @@ +google.analytics.admin.v1alpha.GoogleSignalsConsent + */ +class GoogleSignalsConsent +{ + /** + * Google Signals consent value defaults to + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. + * + * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + const GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + /** + * Terms of service have been accepted + * + * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + const GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + /** + * Terms of service have not been accepted + * + * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + const GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + + private static $valueToName = [ + self::GOOGLE_SIGNALS_CONSENT_UNSPECIFIED => 'GOOGLE_SIGNALS_CONSENT_UNSPECIFIED', + self::GOOGLE_SIGNALS_CONSENT_CONSENTED => 'GOOGLE_SIGNALS_CONSENT_CONSENTED', + self::GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED => 'GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php new file mode 100644 index 000000000000..24556ce9639c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php @@ -0,0 +1,143 @@ +google.analytics.admin.v1alpha.GoogleSignalsSettings + */ +class GoogleSignalsSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this setting. + * Format: properties/{property_id}/googleSignalsSettings + * Example: "properties/1000/googleSignalsSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Status of this setting. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + */ + protected $state = 0; + /** + * Output only. Terms of Service acceptance. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $consent = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this setting. + * Format: properties/{property_id}/googleSignalsSettings + * Example: "properties/1000/googleSignalsSettings" + * @type int $state + * Status of this setting. + * @type int $consent + * Output only. Terms of Service acceptance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this setting. + * Format: properties/{property_id}/googleSignalsSettings + * Example: "properties/1000/googleSignalsSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this setting. + * Format: properties/{property_id}/googleSignalsSettings + * Example: "properties/1000/googleSignalsSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Status of this setting. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Status of this setting. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Terms of Service acceptance. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getConsent() + { + return $this->consent; + } + + /** + * Output only. Terms of Service acceptance. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setConsent($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsConsent::class); + $this->consent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php new file mode 100644 index 000000000000..1e9442bfdf87 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php @@ -0,0 +1,62 @@ +google.analytics.admin.v1alpha.GoogleSignalsState + */ +class GoogleSignalsState +{ + /** + * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to + * represent that the user has not made an explicit choice. + * + * Generated from protobuf enum GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + const GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + /** + * Google Signals is enabled. + * + * Generated from protobuf enum GOOGLE_SIGNALS_ENABLED = 1; + */ + const GOOGLE_SIGNALS_ENABLED = 1; + /** + * Google Signals is disabled. + * + * Generated from protobuf enum GOOGLE_SIGNALS_DISABLED = 2; + */ + const GOOGLE_SIGNALS_DISABLED = 2; + + private static $valueToName = [ + self::GOOGLE_SIGNALS_STATE_UNSPECIFIED => 'GOOGLE_SIGNALS_STATE_UNSPECIFIED', + self::GOOGLE_SIGNALS_ENABLED => 'GOOGLE_SIGNALS_ENABLED', + self::GOOGLE_SIGNALS_DISABLED => 'GOOGLE_SIGNALS_DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php new file mode 100644 index 000000000000..079662ea4784 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.GroupingRule + */ +class GroupingRule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Customer defined display name for the channel. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Required. The Filter Expression that defines the Grouping Rule. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. Customer defined display name for the channel. + * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $expression + * Required. The Filter Expression that defines the Grouping Rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); + parent::__construct($data); + } + + /** + * Required. Customer defined display name for the channel. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Customer defined display name for the channel. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The Filter Expression that defines the Grouping Rule. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression|null + */ + public function getExpression() + { + return $this->expression; + } + + public function hasExpression() + { + return isset($this->expression); + } + + public function clearExpression() + { + unset($this->expression); + } + + /** + * Required. The Filter Expression that defines the Grouping Rule. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); + $this->expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php new file mode 100644 index 000000000000..fd5a44904895 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php @@ -0,0 +1,229 @@ +google.analytics.admin.v1alpha.IndustryCategory + */ +class IndustryCategory +{ + /** + * Industry category unspecified + * + * Generated from protobuf enum INDUSTRY_CATEGORY_UNSPECIFIED = 0; + */ + const INDUSTRY_CATEGORY_UNSPECIFIED = 0; + /** + * Automotive + * + * Generated from protobuf enum AUTOMOTIVE = 1; + */ + const AUTOMOTIVE = 1; + /** + * Business and industrial markets + * + * Generated from protobuf enum BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + */ + const BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + /** + * Finance + * + * Generated from protobuf enum FINANCE = 3; + */ + const FINANCE = 3; + /** + * Healthcare + * + * Generated from protobuf enum HEALTHCARE = 4; + */ + const HEALTHCARE = 4; + /** + * Technology + * + * Generated from protobuf enum TECHNOLOGY = 5; + */ + const TECHNOLOGY = 5; + /** + * Travel + * + * Generated from protobuf enum TRAVEL = 6; + */ + const TRAVEL = 6; + /** + * Other + * + * Generated from protobuf enum OTHER = 7; + */ + const OTHER = 7; + /** + * Arts and entertainment + * + * Generated from protobuf enum ARTS_AND_ENTERTAINMENT = 8; + */ + const ARTS_AND_ENTERTAINMENT = 8; + /** + * Beauty and fitness + * + * Generated from protobuf enum BEAUTY_AND_FITNESS = 9; + */ + const BEAUTY_AND_FITNESS = 9; + /** + * Books and literature + * + * Generated from protobuf enum BOOKS_AND_LITERATURE = 10; + */ + const BOOKS_AND_LITERATURE = 10; + /** + * Food and drink + * + * Generated from protobuf enum FOOD_AND_DRINK = 11; + */ + const FOOD_AND_DRINK = 11; + /** + * Games + * + * Generated from protobuf enum GAMES = 12; + */ + const GAMES = 12; + /** + * Hobbies and leisure + * + * Generated from protobuf enum HOBBIES_AND_LEISURE = 13; + */ + const HOBBIES_AND_LEISURE = 13; + /** + * Home and garden + * + * Generated from protobuf enum HOME_AND_GARDEN = 14; + */ + const HOME_AND_GARDEN = 14; + /** + * Internet and telecom + * + * Generated from protobuf enum INTERNET_AND_TELECOM = 15; + */ + const INTERNET_AND_TELECOM = 15; + /** + * Law and government + * + * Generated from protobuf enum LAW_AND_GOVERNMENT = 16; + */ + const LAW_AND_GOVERNMENT = 16; + /** + * News + * + * Generated from protobuf enum NEWS = 17; + */ + const NEWS = 17; + /** + * Online communities + * + * Generated from protobuf enum ONLINE_COMMUNITIES = 18; + */ + const ONLINE_COMMUNITIES = 18; + /** + * People and society + * + * Generated from protobuf enum PEOPLE_AND_SOCIETY = 19; + */ + const PEOPLE_AND_SOCIETY = 19; + /** + * Pets and animals + * + * Generated from protobuf enum PETS_AND_ANIMALS = 20; + */ + const PETS_AND_ANIMALS = 20; + /** + * Real estate + * + * Generated from protobuf enum REAL_ESTATE = 21; + */ + const REAL_ESTATE = 21; + /** + * Reference + * + * Generated from protobuf enum REFERENCE = 22; + */ + const REFERENCE = 22; + /** + * Science + * + * Generated from protobuf enum SCIENCE = 23; + */ + const SCIENCE = 23; + /** + * Sports + * + * Generated from protobuf enum SPORTS = 24; + */ + const SPORTS = 24; + /** + * Jobs and education + * + * Generated from protobuf enum JOBS_AND_EDUCATION = 25; + */ + const JOBS_AND_EDUCATION = 25; + /** + * Shopping + * + * Generated from protobuf enum SHOPPING = 26; + */ + const SHOPPING = 26; + + private static $valueToName = [ + self::INDUSTRY_CATEGORY_UNSPECIFIED => 'INDUSTRY_CATEGORY_UNSPECIFIED', + self::AUTOMOTIVE => 'AUTOMOTIVE', + self::BUSINESS_AND_INDUSTRIAL_MARKETS => 'BUSINESS_AND_INDUSTRIAL_MARKETS', + self::FINANCE => 'FINANCE', + self::HEALTHCARE => 'HEALTHCARE', + self::TECHNOLOGY => 'TECHNOLOGY', + self::TRAVEL => 'TRAVEL', + self::OTHER => 'OTHER', + self::ARTS_AND_ENTERTAINMENT => 'ARTS_AND_ENTERTAINMENT', + self::BEAUTY_AND_FITNESS => 'BEAUTY_AND_FITNESS', + self::BOOKS_AND_LITERATURE => 'BOOKS_AND_LITERATURE', + self::FOOD_AND_DRINK => 'FOOD_AND_DRINK', + self::GAMES => 'GAMES', + self::HOBBIES_AND_LEISURE => 'HOBBIES_AND_LEISURE', + self::HOME_AND_GARDEN => 'HOME_AND_GARDEN', + self::INTERNET_AND_TELECOM => 'INTERNET_AND_TELECOM', + self::LAW_AND_GOVERNMENT => 'LAW_AND_GOVERNMENT', + self::NEWS => 'NEWS', + self::ONLINE_COMMUNITIES => 'ONLINE_COMMUNITIES', + self::PEOPLE_AND_SOCIETY => 'PEOPLE_AND_SOCIETY', + self::PETS_AND_ANIMALS => 'PETS_AND_ANIMALS', + self::REAL_ESTATE => 'REAL_ESTATE', + self::REFERENCE => 'REFERENCE', + self::SCIENCE => 'SCIENCE', + self::SPORTS => 'SPORTS', + self::JOBS_AND_EDUCATION => 'JOBS_AND_EDUCATION', + self::SHOPPING => 'SHOPPING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php new file mode 100644 index 000000000000..19dac5a16098 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php @@ -0,0 +1,62 @@ +google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + */ +class LinkProposalInitiatingProduct +{ + /** + * Unspecified product. + * + * Generated from protobuf enum LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; + */ + const LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; + /** + * This proposal was created by a user from Google Analytics. + * + * Generated from protobuf enum GOOGLE_ANALYTICS = 1; + */ + const GOOGLE_ANALYTICS = 1; + /** + * This proposal was created by a user from a linked product (not Google + * Analytics). + * + * Generated from protobuf enum LINKED_PRODUCT = 2; + */ + const LINKED_PRODUCT = 2; + + private static $valueToName = [ + self::LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED => 'LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED', + self::GOOGLE_ANALYTICS => 'GOOGLE_ANALYTICS', + self::LINKED_PRODUCT => 'LINKED_PRODUCT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php new file mode 100644 index 000000000000..5143339967af --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php @@ -0,0 +1,97 @@ +google.analytics.admin.v1alpha.LinkProposalState + */ +class LinkProposalState +{ + /** + * Unspecified state + * + * Generated from protobuf enum LINK_PROPOSAL_STATE_UNSPECIFIED = 0; + */ + const LINK_PROPOSAL_STATE_UNSPECIFIED = 0; + /** + * This proposal is awaiting review from a Google Analytics user. This + * proposal will automatically expire after some time. + * + * Generated from protobuf enum AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; + */ + const AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; + /** + * This proposal is awaiting review from a user of a linked product. This + * proposal will automatically expire after some time. + * + * Generated from protobuf enum AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; + */ + const AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; + /** + * This proposal has been withdrawn by an admin on the initiating product. + * This proposal will be automatically deleted after some time. + * + * Generated from protobuf enum WITHDRAWN = 3; + */ + const WITHDRAWN = 3; + /** + * This proposal has been declined by an admin on the receiving product. This + * proposal will be automatically deleted after some time. + * + * Generated from protobuf enum DECLINED = 4; + */ + const DECLINED = 4; + /** + * This proposal expired due to lack of response from an admin on the + * receiving product. This proposal will be automatically deleted after some + * time. + * + * Generated from protobuf enum EXPIRED = 5; + */ + const EXPIRED = 5; + /** + * This proposal has become obsolete because a link was directly created to + * the same external product resource that this proposal specifies. This + * proposal will be automatically deleted after some time. + * + * Generated from protobuf enum OBSOLETE = 6; + */ + const OBSOLETE = 6; + + private static $valueToName = [ + self::LINK_PROPOSAL_STATE_UNSPECIFIED => 'LINK_PROPOSAL_STATE_UNSPECIFIED', + self::AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS => 'AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS', + self::AWAITING_REVIEW_FROM_LINKED_PRODUCT => 'AWAITING_REVIEW_FROM_LINKED_PRODUCT', + self::WITHDRAWN => 'WITHDRAWN', + self::DECLINED => 'DECLINED', + self::EXPIRED => 'EXPIRED', + self::OBSOLETE => 'OBSOLETE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php new file mode 100644 index 000000000000..0aa42293c25a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php @@ -0,0 +1,135 @@ +google.analytics.admin.v1alpha.LinkProposalStatusDetails + */ +class LinkProposalStatusDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The source of this proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $link_proposal_initiating_product = 0; + /** + * Output only. The email address of the user that proposed this linkage. + * + * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requestor_email = ''; + /** + * Output only. The state of this proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $link_proposal_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $link_proposal_initiating_product + * Output only. The source of this proposal. + * @type string $requestor_email + * Output only. The email address of the user that proposed this linkage. + * @type int $link_proposal_state + * Output only. The state of this proposal. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The source of this proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLinkProposalInitiatingProduct() + { + return $this->link_proposal_initiating_product; + } + + /** + * Output only. The source of this proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLinkProposalInitiatingProduct($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalInitiatingProduct::class); + $this->link_proposal_initiating_product = $var; + + return $this; + } + + /** + * Output only. The email address of the user that proposed this linkage. + * + * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRequestorEmail() + { + return $this->requestor_email; + } + + /** + * Output only. The email address of the user that proposed this linkage. + * + * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRequestorEmail($var) + { + GPBUtil::checkString($var, True); + $this->requestor_email = $var; + + return $this; + } + + /** + * Output only. The state of this proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLinkProposalState() + { + return $this->link_proposal_state; + } + + /** + * Output only. The state of this proposal. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLinkProposalState($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalState::class); + $this->link_proposal_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php new file mode 100644 index 000000000000..93a4506ad5f4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php @@ -0,0 +1,167 @@ +google.analytics.admin.v1alpha.ListAccessBindingsRequest + */ +class ListAccessBindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * @type int $page_size + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @type string $page_token + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Formats: + * - accounts/{account} + * - properties/{property} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php new file mode 100644 index 000000000000..d311f7612c7e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1alpha.ListAccessBindingsResponse + */ +class ListAccessBindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of AccessBindings. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + private $access_bindings; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings + * List of AccessBindings. These will be ordered stably, but in an arbitrary + * order. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of AccessBindings. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccessBindings() + { + return $this->access_bindings; + } + + /** + * List of AccessBindings. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccessBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); + $this->access_bindings = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php new file mode 100644 index 000000000000..b58e30527c68 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.ListAccountSummariesRequest + */ +class ListAccountSummariesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $page_size + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php new file mode 100644 index 000000000000..070ea0702270 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListAccountSummariesResponse + */ +class ListAccountSummariesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Account summaries of all accounts the caller has access to. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + private $account_summaries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $account_summaries + * Account summaries of all accounts the caller has access to. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Account summaries of all accounts the caller has access to. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccountSummaries() + { + return $this->account_summaries; + } + + /** + * Account summaries of all accounts the caller has access to. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccountSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccountSummary::class); + $this->account_summaries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php new file mode 100644 index 000000000000..83b851ab5536 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php @@ -0,0 +1,167 @@ +google.analytics.admin.v1alpha.ListAccountsRequest + */ +class ListAccountsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * + * Generated from protobuf field bool show_deleted = 3; + */ + protected $show_deleted = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @type bool $show_deleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * + * Generated from protobuf field bool show_deleted = 3; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * + * Generated from protobuf field bool show_deleted = 3; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php new file mode 100644 index 000000000000..3796927d5fc4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListAccountsResponse + */ +class ListAccountsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + private $accounts; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\Account>|\Google\Protobuf\Internal\RepeatedField $accounts + * Results that were accessible to the caller. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccounts() + { + return $this->accounts; + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; + * @param array<\Google\Analytics\Admin\V1alpha\Account>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Account::class); + $this->accounts = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php new file mode 100644 index 000000000000..ff8dcdc85729 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php @@ -0,0 +1,163 @@ +google.analytics.admin.v1alpha.ListAdSenseLinksRequest + */ +class ListAdSenseLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php new file mode 100644 index 000000000000..be6c763e5625 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListAdSenseLinksResponse + */ +class ListAdSenseLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of AdSenseLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + private $adsense_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AdSenseLink>|\Google\Protobuf\Internal\RepeatedField $adsense_links + * List of AdSenseLinks. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of AdSenseLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdsenseLinks() + { + return $this->adsense_links; + } + + /** + * List of AdSenseLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AdSenseLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdsenseLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); + $this->adsense_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php new file mode 100644 index 000000000000..1b4bb4d90416 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListAudiencesRequest + */ +class ListAudiencesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAudiences` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php new file mode 100644 index 000000000000..d20f7ee05b42 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListAudiencesResponse + */ +class ListAudiencesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of Audiences. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + private $audiences; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\Audience>|\Google\Protobuf\Internal\RepeatedField $audiences + * List of Audiences. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of Audiences. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * List of Audiences. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + * @param array<\Google\Analytics\Admin\V1alpha\Audience>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAudiences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Audience::class); + $this->audiences = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php new file mode 100644 index 000000000000..d2fea9ff8381 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php @@ -0,0 +1,167 @@ +google.analytics.admin.v1alpha.ListBigQueryLinksRequest + */ +class ListBigQueryLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php new file mode 100644 index 000000000000..cf3486ac78cd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListBigQueryLinksResponse + */ +class ListBigQueryLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of BigQueryLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + private $bigquery_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\BigQueryLink>|\Google\Protobuf\Internal\RepeatedField $bigquery_links + * List of BigQueryLinks. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of BigQueryLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBigqueryLinks() + { + return $this->bigquery_links; + } + + /** + * List of BigQueryLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\BigQueryLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBigqueryLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); + $this->bigquery_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php new file mode 100644 index 000000000000..1185469f616c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php @@ -0,0 +1,159 @@ +google.analytics.admin.v1alpha.ListChannelGroupsRequest + */ +class ListChannelGroupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php new file mode 100644 index 000000000000..b92ffc9b5ad8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1alpha.ListChannelGroupsResponse + */ +class ListChannelGroupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of ChannelGroup. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + private $channel_groups; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ChannelGroup>|\Google\Protobuf\Internal\RepeatedField $channel_groups + * List of ChannelGroup. These will be ordered stably, but in an arbitrary + * order. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of ChannelGroup. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChannelGroups() + { + return $this->channel_groups; + } + + /** + * List of ChannelGroup. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ChannelGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChannelGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); + $this->channel_groups = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php new file mode 100644 index 000000000000..e86202e1d53e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest + */ +class ListConnectedSiteTagsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The Universal Analytics property to fetch connected site tags for. + * This does not work on GA4 properties. A maximum of 20 connected site tags + * will be returned. + * Example Format: `properties/1234` + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * The Universal Analytics property to fetch connected site tags for. + * This does not work on GA4 properties. A maximum of 20 connected site tags + * will be returned. + * Example Format: `properties/1234` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The Universal Analytics property to fetch connected site tags for. + * This does not work on GA4 properties. A maximum of 20 connected site tags + * will be returned. + * Example Format: `properties/1234` + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * The Universal Analytics property to fetch connected site tags for. + * This does not work on GA4 properties. A maximum of 20 connected site tags + * will be returned. + * Example Format: `properties/1234` + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php new file mode 100644 index 000000000000..3d0778010cbe --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse + */ +class ListConnectedSiteTagsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The site tags for the Universal Analytics property. A maximum of 20 + * connected site tags will be returned. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + private $connected_site_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ConnectedSiteTag>|\Google\Protobuf\Internal\RepeatedField $connected_site_tags + * The site tags for the Universal Analytics property. A maximum of 20 + * connected site tags will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The site tags for the Universal Analytics property. A maximum of 20 + * connected site tags will be returned. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConnectedSiteTags() + { + return $this->connected_site_tags; + } + + /** + * The site tags for the Universal Analytics property. A maximum of 20 + * connected site tags will be returned. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ConnectedSiteTag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConnectedSiteTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class); + $this->connected_site_tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php new file mode 100644 index 000000000000..7660700c06df --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php @@ -0,0 +1,159 @@ +google.analytics.admin.v1alpha.ListConversionEventsRequest + */ +class ListConversionEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent property. + * Example: 'properties/123' + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php new file mode 100644 index 000000000000..4965a76b1303 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListConversionEventsResponse + */ +class ListConversionEventsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The requested conversion events + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + private $conversion_events; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $conversion_events + * The requested conversion events + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The requested conversion events + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConversionEvents() + { + return $this->conversion_events; + } + + /** + * The requested conversion events + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConversionEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); + $this->conversion_events = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php new file mode 100644 index 000000000000..141e6b2d43a4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListCustomDimensionsRequest + */ +class ListCustomDimensionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php new file mode 100644 index 000000000000..a7f3bf197e86 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListCustomDimensionsResponse + */ +class ListCustomDimensionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of CustomDimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + private $custom_dimensions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $custom_dimensions + * List of CustomDimensions. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of CustomDimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomDimensions() + { + return $this->custom_dimensions; + } + + /** + * List of CustomDimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + * @param array<\Google\Analytics\Admin\V1alpha\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CustomDimension::class); + $this->custom_dimensions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php new file mode 100644 index 000000000000..f26524645eac --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListCustomMetricsRequest + */ +class ListCustomMetricsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php new file mode 100644 index 000000000000..ecaaa9829a28 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListCustomMetricsResponse + */ +class ListCustomMetricsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of CustomMetrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + private $custom_metrics; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $custom_metrics + * List of CustomMetrics. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of CustomMetrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomMetrics() + { + return $this->custom_metrics; + } + + /** + * List of CustomMetrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + * @param array<\Google\Analytics\Admin\V1alpha\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CustomMetric::class); + $this->custom_metrics = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php new file mode 100644 index 000000000000..9501e1d1624a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListDataStreamsRequest + */ +class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php new file mode 100644 index 000000000000..c3e6f6522afb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListDataStreamsResponse + */ +class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of DataStreams. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + private $data_streams; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\DataStream>|\Google\Protobuf\Internal\RepeatedField $data_streams + * List of DataStreams. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of DataStreams. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDataStreams() + { + return $this->data_streams; + } + + /** + * List of DataStreams. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + * @param array<\Google\Analytics\Admin\V1alpha\DataStream>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDataStreams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DataStream::class); + $this->data_streams = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php new file mode 100644 index 000000000000..8be2c4f60c6e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php @@ -0,0 +1,163 @@ +google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + */ +class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php new file mode 100644 index 000000000000..8d9711d2a2c3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + */ +class ListDisplayVideo360AdvertiserLinkProposalsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of DisplayVideo360AdvertiserLinkProposals. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + */ + private $display_video_360_advertiser_link_proposals; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal>|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_link_proposals + * List of DisplayVideo360AdvertiserLinkProposals. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of DisplayVideo360AdvertiserLinkProposals. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDisplayVideo360AdvertiserLinkProposals() + { + return $this->display_video_360_advertiser_link_proposals; + } + + /** + * List of DisplayVideo360AdvertiserLinkProposals. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * @param array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLinkProposals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); + $this->display_video_360_advertiser_link_proposals = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php new file mode 100644 index 000000000000..305fc4ddff31 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php @@ -0,0 +1,159 @@ +google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + */ +class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php new file mode 100644 index 000000000000..2bfab58804dc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + */ +class ListDisplayVideo360AdvertiserLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of DisplayVideo360AdvertiserLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + */ + private $display_video_360_advertiser_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink>|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_links + * List of DisplayVideo360AdvertiserLinks. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of DisplayVideo360AdvertiserLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDisplayVideo360AdvertiserLinks() + { + return $this->display_video_360_advertiser_links; + } + + /** + * List of DisplayVideo360AdvertiserLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); + $this->display_video_360_advertiser_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php new file mode 100644 index 000000000000..45844cabd6fd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListEventCreateRulesRequest + */ +class ListEventCreateRulesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/123/dataStreams/456 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/123/dataStreams/456 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/123/dataStreams/456 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/123/dataStreams/456 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php new file mode 100644 index 000000000000..ede402275d7b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1alpha.ListEventCreateRulesResponse + */ +class ListEventCreateRulesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of EventCreateRules. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + private $event_create_rules; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\EventCreateRule>|\Google\Protobuf\Internal\RepeatedField $event_create_rules + * List of EventCreateRules. These will be ordered stably, but in an arbitrary + * order. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of EventCreateRules. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEventCreateRules() + { + return $this->event_create_rules; + } + + /** + * List of EventCreateRules. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + * @param array<\Google\Analytics\Admin\V1alpha\EventCreateRule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEventCreateRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); + $this->event_create_rules = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php new file mode 100644 index 000000000000..987f9360041e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + */ +class ListExpandedDataSetsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php new file mode 100644 index 000000000000..08667102b0c4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + */ +class ListExpandedDataSetsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + private $expanded_data_sets; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ExpandedDataSet>|\Google\Protobuf\Internal\RepeatedField $expanded_data_sets + * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary + * order. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExpandedDataSets() + { + return $this->expanded_data_sets; + } + + /** + * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary + * order. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ExpandedDataSet>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExpandedDataSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); + $this->expanded_data_sets = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php new file mode 100644 index 000000000000..4cfda39dd469 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php @@ -0,0 +1,163 @@ +google.analytics.admin.v1alpha.ListFirebaseLinksRequest + */ +class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php new file mode 100644 index 000000000000..3a0d33be83fb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php @@ -0,0 +1,113 @@ +google.analytics.admin.v1alpha.ListFirebaseLinksResponse + */ +class ListFirebaseLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of FirebaseLinks. This will have at most one value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + private $firebase_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $firebase_links + * List of FirebaseLinks. This will have at most one value. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of FirebaseLinks. This will have at most one value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFirebaseLinks() + { + return $this->firebase_links; + } + + /** + * List of FirebaseLinks. This will have at most one value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFirebaseLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); + $this->firebase_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php new file mode 100644 index 000000000000..cdac9a7c04ad --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php @@ -0,0 +1,155 @@ +google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + */ +class ListGoogleAdsLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php new file mode 100644 index 000000000000..c3d31c7fdb0c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + */ +class ListGoogleAdsLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of GoogleAdsLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + private $google_ads_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $google_ads_links + * List of GoogleAdsLinks. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of GoogleAdsLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGoogleAdsLinks() + { + return $this->google_ads_links; + } + + /** + * List of GoogleAdsLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGoogleAdsLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); + $this->google_ads_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php new file mode 100644 index 000000000000..7528d43a4af4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php @@ -0,0 +1,163 @@ +google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + */ +class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * @type string $page_token + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php new file mode 100644 index 000000000000..5cc554ad270c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + */ +class ListMeasurementProtocolSecretsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of secrets for the parent stream specified in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + */ + private $measurement_protocol_secrets; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $measurement_protocol_secrets + * A list of secrets for the parent stream specified in the request. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * A list of secrets for the parent stream specified in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMeasurementProtocolSecrets() + { + return $this->measurement_protocol_secrets; + } + + /** + * A list of secrets for the parent stream specified in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * @param array<\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMeasurementProtocolSecrets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); + $this->measurement_protocol_secrets = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php new file mode 100644 index 000000000000..4b1b37feb740 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php @@ -0,0 +1,257 @@ +google.analytics.admin.v1alpha.ListPropertiesRequest + */ +class ListPropertiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * + * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = ''; + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * + * Generated from protobuf field bool show_deleted = 4; + */ + protected $show_deleted = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @type bool $show_deleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * + * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * + * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * + * Generated from protobuf field bool show_deleted = 4; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * + * Generated from protobuf field bool show_deleted = 4; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php new file mode 100644 index 000000000000..ecfb989f75b6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListPropertiesResponse + */ +class ListPropertiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results that matched the filter criteria and were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + private $properties; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\Property>|\Google\Protobuf\Internal\RepeatedField $properties + * Results that matched the filter criteria and were accessible to the caller. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Results that matched the filter criteria and were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProperties() + { + return $this->properties; + } + + /** + * Results that matched the filter criteria and were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; + * @param array<\Google\Analytics\Admin\V1alpha\Property>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Property::class); + $this->properties = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php new file mode 100644 index 000000000000..e629643be942 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php @@ -0,0 +1,167 @@ +google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + */ +class ListRollupPropertySourceLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * @type int $page_size + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * Optional. A page token, received from a previous + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php new file mode 100644 index 000000000000..f66db6affbd0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + */ +class ListRollupPropertySourceLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of RollupPropertySourceLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + */ + private $rollup_property_source_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $rollup_property_source_links + * List of RollupPropertySourceLinks. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of RollupPropertySourceLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRollupPropertySourceLinks() + { + return $this->rollup_property_source_links; + } + + /** + * List of RollupPropertySourceLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRollupPropertySourceLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); + $this->rollup_property_source_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php new file mode 100644 index 000000000000..737d15caca11 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php @@ -0,0 +1,175 @@ +google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + */ +class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous + * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListSKAdNetworkConversionValueSchema` must match the call that provided + * the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous + * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListSKAdNetworkConversionValueSchema` must match the call that provided + * the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous + * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListSKAdNetworkConversionValueSchema` must match the call that provided + * the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous + * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListSKAdNetworkConversionValueSchema` must match the call that provided + * the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php new file mode 100644 index 000000000000..f5b74fde223e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + */ +class ListSKAdNetworkConversionValueSchemasResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of SKAdNetworkConversionValueSchemas. This will have at most one + * value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + */ + private $skadnetwork_conversion_value_schemas; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one + * SKAdNetworkConversionValueSchema per dataStream, so this will never be + * populated. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema>|\Google\Protobuf\Internal\RepeatedField $skadnetwork_conversion_value_schemas + * List of SKAdNetworkConversionValueSchemas. This will have at most one + * value. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one + * SKAdNetworkConversionValueSchema per dataStream, so this will never be + * populated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of SKAdNetworkConversionValueSchemas. This will have at most one + * value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSkadnetworkConversionValueSchemas() + { + return $this->skadnetwork_conversion_value_schemas; + } + + /** + * List of SKAdNetworkConversionValueSchemas. This will have at most one + * value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * @param array<\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSkadnetworkConversionValueSchemas($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); + $this->skadnetwork_conversion_value_schemas = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one + * SKAdNetworkConversionValueSchema per dataStream, so this will never be + * populated. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one + * SKAdNetworkConversionValueSchema per dataStream, so this will never be + * populated. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php new file mode 100644 index 000000000000..422fa45ae1d4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php @@ -0,0 +1,159 @@ +google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + */ +class ListSearchAds360LinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php new file mode 100644 index 000000000000..7a95c6bd2faa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListSearchAds360LinksResponse + */ +class ListSearchAds360LinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of SearchAds360Links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + */ + private $search_ads_360_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\SearchAds360Link>|\Google\Protobuf\Internal\RepeatedField $search_ads_360_links + * List of SearchAds360Links. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of SearchAds360Links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSearchAds360Links() + { + return $this->search_ads_360_links; + } + + /** + * List of SearchAds360Links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\SearchAds360Link>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSearchAds360Links($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); + $this->search_ads_360_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php new file mode 100644 index 000000000000..1aa90f16b0bd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php @@ -0,0 +1,171 @@ +google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + */ +class ListSubpropertyEventFiltersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * Example: properties/123 + * @type int $page_size + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * @type string $page_token + * Optional. A page token, received from a previous + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php new file mode 100644 index 000000000000..3ee9fd68a4f3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + */ +class ListSubpropertyEventFiltersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of subproperty event filters. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + */ + private $subproperty_event_filters; + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter>|\Google\Protobuf\Internal\RepeatedField $subproperty_event_filters + * List of subproperty event filters. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of subproperty event filters. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubpropertyEventFilters() + { + return $this->subproperty_event_filters; + } + + /** + * List of subproperty event filters. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubpropertyEventFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); + $this->subproperty_event_filters = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php new file mode 100644 index 000000000000..03a1db1ac1e2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php @@ -0,0 +1,202 @@ +google.analytics.admin.v1alpha.MatchingCondition + */ +class MatchingCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the field that is compared against for the condition. + * If 'event_name' is specified this condition will apply to the name of the + * event. Otherwise the condition will apply to a parameter with the + * specified name. + * This value cannot contain spaces. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = ''; + /** + * Required. The type of comparison to be applied to the value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $comparison_type = 0; + /** + * Required. The value being compared against for this condition. The runtime + * implementation may perform type coercion of this value to evaluate this + * condition based on the type of the parameter value. + * + * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + /** + * Whether or not the result of the comparison should be negated. For example, + * if `negated` is true, then 'equals' comparisons would function as 'not + * equals'. + * + * Generated from protobuf field bool negated = 4; + */ + protected $negated = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Required. The name of the field that is compared against for the condition. + * If 'event_name' is specified this condition will apply to the name of the + * event. Otherwise the condition will apply to a parameter with the + * specified name. + * This value cannot contain spaces. + * @type int $comparison_type + * Required. The type of comparison to be applied to the value. + * @type string $value + * Required. The value being compared against for this condition. The runtime + * implementation may perform type coercion of this value to evaluate this + * condition based on the type of the parameter value. + * @type bool $negated + * Whether or not the result of the comparison should be negated. For example, + * if `negated` is true, then 'equals' comparisons would function as 'not + * equals'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the field that is compared against for the condition. + * If 'event_name' is specified this condition will apply to the name of the + * event. Otherwise the condition will apply to a parameter with the + * specified name. + * This value cannot contain spaces. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Required. The name of the field that is compared against for the condition. + * If 'event_name' is specified this condition will apply to the name of the + * event. Otherwise the condition will apply to a parameter with the + * specified name. + * This value cannot contain spaces. + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Required. The type of comparison to be applied to the value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getComparisonType() + { + return $this->comparison_type; + } + + /** + * Required. The type of comparison to be applied to the value. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setComparisonType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\MatchingCondition\ComparisonType::class); + $this->comparison_type = $var; + + return $this; + } + + /** + * Required. The value being compared against for this condition. The runtime + * implementation may perform type coercion of this value to evaluate this + * condition based on the type of the parameter value. + * + * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The value being compared against for this condition. The runtime + * implementation may perform type coercion of this value to evaluate this + * condition based on the type of the parameter value. + * + * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Whether or not the result of the comparison should be negated. For example, + * if `negated` is true, then 'equals' comparisons would function as 'not + * equals'. + * + * Generated from protobuf field bool negated = 4; + * @return bool + */ + public function getNegated() + { + return $this->negated; + } + + /** + * Whether or not the result of the comparison should be negated. For example, + * if `negated` is true, then 'equals' comparisons would function as 'not + * equals'. + * + * Generated from protobuf field bool negated = 4; + * @param bool $var + * @return $this + */ + public function setNegated($var) + { + GPBUtil::checkBool($var); + $this->negated = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php new file mode 100644 index 000000000000..98caa42ead0a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php @@ -0,0 +1,148 @@ +google.analytics.admin.v1alpha.MatchingCondition.ComparisonType + */ +class ComparisonType +{ + /** + * Unknown + * + * Generated from protobuf enum COMPARISON_TYPE_UNSPECIFIED = 0; + */ + const COMPARISON_TYPE_UNSPECIFIED = 0; + /** + * Equals, case sensitive + * + * Generated from protobuf enum EQUALS = 1; + */ + const EQUALS = 1; + /** + * Equals, case insensitive + * + * Generated from protobuf enum EQUALS_CASE_INSENSITIVE = 2; + */ + const EQUALS_CASE_INSENSITIVE = 2; + /** + * Contains, case sensitive + * + * Generated from protobuf enum CONTAINS = 3; + */ + const CONTAINS = 3; + /** + * Contains, case insensitive + * + * Generated from protobuf enum CONTAINS_CASE_INSENSITIVE = 4; + */ + const CONTAINS_CASE_INSENSITIVE = 4; + /** + * Starts with, case sensitive + * + * Generated from protobuf enum STARTS_WITH = 5; + */ + const STARTS_WITH = 5; + /** + * Starts with, case insensitive + * + * Generated from protobuf enum STARTS_WITH_CASE_INSENSITIVE = 6; + */ + const STARTS_WITH_CASE_INSENSITIVE = 6; + /** + * Ends with, case sensitive + * + * Generated from protobuf enum ENDS_WITH = 7; + */ + const ENDS_WITH = 7; + /** + * Ends with, case insensitive + * + * Generated from protobuf enum ENDS_WITH_CASE_INSENSITIVE = 8; + */ + const ENDS_WITH_CASE_INSENSITIVE = 8; + /** + * Greater than + * + * Generated from protobuf enum GREATER_THAN = 9; + */ + const GREATER_THAN = 9; + /** + * Greater than or equal + * + * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 10; + */ + const GREATER_THAN_OR_EQUAL = 10; + /** + * Less than + * + * Generated from protobuf enum LESS_THAN = 11; + */ + const LESS_THAN = 11; + /** + * Less than or equal + * + * Generated from protobuf enum LESS_THAN_OR_EQUAL = 12; + */ + const LESS_THAN_OR_EQUAL = 12; + /** + * regular expression. Only supported for web streams. + * + * Generated from protobuf enum REGULAR_EXPRESSION = 13; + */ + const REGULAR_EXPRESSION = 13; + /** + * regular expression, case insensitive. Only supported for web streams. + * + * Generated from protobuf enum REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; + */ + const REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; + + private static $valueToName = [ + self::COMPARISON_TYPE_UNSPECIFIED => 'COMPARISON_TYPE_UNSPECIFIED', + self::EQUALS => 'EQUALS', + self::EQUALS_CASE_INSENSITIVE => 'EQUALS_CASE_INSENSITIVE', + self::CONTAINS => 'CONTAINS', + self::CONTAINS_CASE_INSENSITIVE => 'CONTAINS_CASE_INSENSITIVE', + self::STARTS_WITH => 'STARTS_WITH', + self::STARTS_WITH_CASE_INSENSITIVE => 'STARTS_WITH_CASE_INSENSITIVE', + self::ENDS_WITH => 'ENDS_WITH', + self::ENDS_WITH_CASE_INSENSITIVE => 'ENDS_WITH_CASE_INSENSITIVE', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', + self::REGULAR_EXPRESSION => 'REGULAR_EXPRESSION', + self::REGULAR_EXPRESSION_CASE_INSENSITIVE => 'REGULAR_EXPRESSION_CASE_INSENSITIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ComparisonType::class, \Google\Analytics\Admin\V1alpha\MatchingCondition_ComparisonType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php new file mode 100644 index 000000000000..8c2a728f23d4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php @@ -0,0 +1,151 @@ +google.analytics.admin.v1alpha.MeasurementProtocolSecret + */ +class MeasurementProtocolSecret extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Human-readable display name for this secret. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * + * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $secret_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @type string $display_name + * Required. Human-readable display name for this secret. + * @type string $secret_value + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Human-readable display name for this secret. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Human-readable display name for this secret. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * + * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSecretValue() + { + return $this->secret_value; + } + + /** + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * + * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSecretValue($var) + { + GPBUtil::checkString($var, True); + $this->secret_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php new file mode 100644 index 000000000000..b6c9c747fd14 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php @@ -0,0 +1,108 @@ +google.analytics.admin.v1alpha.NumericValue + */ +class NumericValue extends \Google\Protobuf\Internal\Message +{ + protected $one_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int64_value + * Integer value + * @type float $double_value + * Double value + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Integer value + * + * Generated from protobuf field int64 int64_value = 1; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(1); + } + + public function hasInt64Value() + { + return $this->hasOneof(1); + } + + /** + * Integer value + * + * Generated from protobuf field int64 int64_value = 1; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Double value + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * Double value + * + * Generated from protobuf field double double_value = 2; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneValue() + { + return $this->whichOneof("one_value"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php new file mode 100644 index 000000000000..3cdcaa9dcc3f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php @@ -0,0 +1,145 @@ +google.analytics.admin.v1alpha.ParameterMutation + */ +class ParameterMutation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parameter to mutate. + * This value must: + * * be less than 40 characters. + * * be unique across across all mutations within the rule + * * consist only of letters, digits or _ (underscores) + * For event edit rules, the name may also be set to 'event_name' to modify + * the event_name in place. + * + * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parameter = ''; + /** + * Required. The value mutation to perform. + * * Must be less than 100 characters. + * * To specify a constant value for the param, use the value's string. + * * To copy value from another parameter, use syntax like + * "[[other_parameter]]" For more details, see this [help center + * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). + * + * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parameter_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parameter + * Required. The name of the parameter to mutate. + * This value must: + * * be less than 40 characters. + * * be unique across across all mutations within the rule + * * consist only of letters, digits or _ (underscores) + * For event edit rules, the name may also be set to 'event_name' to modify + * the event_name in place. + * @type string $parameter_value + * Required. The value mutation to perform. + * * Must be less than 100 characters. + * * To specify a constant value for the param, use the value's string. + * * To copy value from another parameter, use syntax like + * "[[other_parameter]]" For more details, see this [help center + * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parameter to mutate. + * This value must: + * * be less than 40 characters. + * * be unique across across all mutations within the rule + * * consist only of letters, digits or _ (underscores) + * For event edit rules, the name may also be set to 'event_name' to modify + * the event_name in place. + * + * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParameter() + { + return $this->parameter; + } + + /** + * Required. The name of the parameter to mutate. + * This value must: + * * be less than 40 characters. + * * be unique across across all mutations within the rule + * * consist only of letters, digits or _ (underscores) + * For event edit rules, the name may also be set to 'event_name' to modify + * the event_name in place. + * + * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParameter($var) + { + GPBUtil::checkString($var, True); + $this->parameter = $var; + + return $this; + } + + /** + * Required. The value mutation to perform. + * * Must be less than 100 characters. + * * To specify a constant value for the param, use the value's string. + * * To copy value from another parameter, use syntax like + * "[[other_parameter]]" For more details, see this [help center + * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). + * + * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParameterValue() + { + return $this->parameter_value; + } + + /** + * Required. The value mutation to perform. + * * Must be less than 100 characters. + * * To specify a constant value for the param, use the value's string. + * * To copy value from another parameter, use syntax like + * "[[other_parameter]]" For more details, see this [help center + * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). + * + * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParameterValue($var) + { + GPBUtil::checkString($var, True); + $this->parameter_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php new file mode 100644 index 000000000000..2dabbb8fd24d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.PostbackWindow + */ +class PostbackWindow extends \Google\Protobuf\Internal\Message +{ + /** + * Ordering of the repeated field will be used to prioritize the conversion + * value settings. Lower indexed entries are prioritized higher. The first + * conversion value setting that evaluates to true will be selected. It must + * have at least one entry if enable_postback_window_settings is set to + * true. It can have maximum of 128 entries. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; + */ + private $conversion_values; + /** + * If enable_postback_window_settings is true, conversion_values + * must be populated and will be used for determining when and how to set the + * Conversion Value on a client device and exporting schema to linked Ads + * accounts. If false, the settings are not used, but are retained in case + * they may be used in the future. This must always be true for + * postback_window_one. + * + * Generated from protobuf field bool postback_window_settings_enabled = 2; + */ + protected $postback_window_settings_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ConversionValues>|\Google\Protobuf\Internal\RepeatedField $conversion_values + * Ordering of the repeated field will be used to prioritize the conversion + * value settings. Lower indexed entries are prioritized higher. The first + * conversion value setting that evaluates to true will be selected. It must + * have at least one entry if enable_postback_window_settings is set to + * true. It can have maximum of 128 entries. + * @type bool $postback_window_settings_enabled + * If enable_postback_window_settings is true, conversion_values + * must be populated and will be used for determining when and how to set the + * Conversion Value on a client device and exporting schema to linked Ads + * accounts. If false, the settings are not used, but are retained in case + * they may be used in the future. This must always be true for + * postback_window_one. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Ordering of the repeated field will be used to prioritize the conversion + * value settings. Lower indexed entries are prioritized higher. The first + * conversion value setting that evaluates to true will be selected. It must + * have at least one entry if enable_postback_window_settings is set to + * true. It can have maximum of 128 entries. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConversionValues() + { + return $this->conversion_values; + } + + /** + * Ordering of the repeated field will be used to prioritize the conversion + * value settings. Lower indexed entries are prioritized higher. The first + * conversion value setting that evaluates to true will be selected. It must + * have at least one entry if enable_postback_window_settings is set to + * true. It can have maximum of 128 entries. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ConversionValues>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConversionValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConversionValues::class); + $this->conversion_values = $arr; + + return $this; + } + + /** + * If enable_postback_window_settings is true, conversion_values + * must be populated and will be used for determining when and how to set the + * Conversion Value on a client device and exporting schema to linked Ads + * accounts. If false, the settings are not used, but are retained in case + * they may be used in the future. This must always be true for + * postback_window_one. + * + * Generated from protobuf field bool postback_window_settings_enabled = 2; + * @return bool + */ + public function getPostbackWindowSettingsEnabled() + { + return $this->postback_window_settings_enabled; + } + + /** + * If enable_postback_window_settings is true, conversion_values + * must be populated and will be used for determining when and how to set the + * Conversion Value on a client device and exporting schema to linked Ads + * accounts. If false, the settings are not used, but are retained in case + * they may be used in the future. This must always be true for + * postback_window_one. + * + * Generated from protobuf field bool postback_window_settings_enabled = 2; + * @param bool $var + * @return $this + */ + public function setPostbackWindowSettingsEnabled($var) + { + GPBUtil::checkBool($var); + $this->postback_window_settings_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php new file mode 100644 index 000000000000..f1d7004f0129 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php @@ -0,0 +1,607 @@ +google.analytics.admin.v1alpha.Property + */ +class Property extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $property_type = 0; + /** + * Output only. Time when the entity was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when entity payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parent = ''; + /** + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * + * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + */ + protected $industry_category = 0; + /** + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_zone = ''; + /** + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * + * Generated from protobuf field string currency_code = 8; + */ + protected $currency_code = ''; + /** + * Output only. The Google Analytics service level that applies to this + * property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_level = 0; + /** + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + /** + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expire_time = null; + /** + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * + * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * @type int $property_type + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the entity was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when entity payload fields were last updated. + * @type string $parent + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * @type string $display_name + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * @type int $industry_category + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * @type string $time_zone + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * @type string $currency_code + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * @type int $service_level + * Output only. The Google Analytics service level that applies to this + * property. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * @type \Google\Protobuf\Timestamp $expire_time + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * @type string $account + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getPropertyType() + { + return $this->property_type; + } + + /** + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setPropertyType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\PropertyType::class); + $this->property_type = $var; + + return $this; + } + + /** + * Output only. Time when the entity was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the entity was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when entity payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when entity payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * + * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * @return int + */ + public function getIndustryCategory() + { + return $this->industry_category; + } + + /** + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * + * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * @param int $var + * @return $this + */ + public function setIndustryCategory($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\IndustryCategory::class); + $this->industry_category = $var; + + return $this; + } + + /** + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * + * Generated from protobuf field string currency_code = 8; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * + * Generated from protobuf field string currency_code = 8; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Output only. The Google Analytics service level that applies to this + * property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getServiceLevel() + { + return $this->service_level; + } + + /** + * Output only. The Google Analytics service level that applies to this + * property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setServiceLevel($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ServiceLevel::class); + $this->service_level = $var; + + return $this; + } + + /** + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->expire_time; + } + + public function hasExpireTime() + { + return isset($this->expire_time); + } + + public function clearExpireTime() + { + unset($this->expire_time); + } + + /** + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expire_time = $var; + + return $this; + } + + /** + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * + * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * + * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php new file mode 100644 index 000000000000..05311403f27a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php @@ -0,0 +1,189 @@ +google.analytics.admin.v1alpha.PropertySummary + */ +class PropertySummary extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + */ + protected $property = ''; + /** + * Display name for the property referred to in this property summary. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The property's property type. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; + */ + protected $property_type = 0; + /** + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * @type string $display_name + * Display name for the property referred to in this property summary. + * @type int $property_type + * The property's property type. + * @type string $parent + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Display name for the property referred to in this property summary. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name for the property referred to in this property summary. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The property's property type. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * @return int + */ + public function getPropertyType() + { + return $this->property_type; + } + + /** + * The property's property type. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * @param int $var + * @return $this + */ + public function setPropertyType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\PropertyType::class); + $this->property_type = $var; + + return $this; + } + + /** + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php new file mode 100644 index 000000000000..0b02428ed369 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php @@ -0,0 +1,68 @@ +google.analytics.admin.v1alpha.PropertyType + */ +class PropertyType +{ + /** + * Unknown or unspecified property type + * + * Generated from protobuf enum PROPERTY_TYPE_UNSPECIFIED = 0; + */ + const PROPERTY_TYPE_UNSPECIFIED = 0; + /** + * Ordinary GA4 property + * + * Generated from protobuf enum PROPERTY_TYPE_ORDINARY = 1; + */ + const PROPERTY_TYPE_ORDINARY = 1; + /** + * GA4 subproperty + * + * Generated from protobuf enum PROPERTY_TYPE_SUBPROPERTY = 2; + */ + const PROPERTY_TYPE_SUBPROPERTY = 2; + /** + * GA4 rollup property + * + * Generated from protobuf enum PROPERTY_TYPE_ROLLUP = 3; + */ + const PROPERTY_TYPE_ROLLUP = 3; + + private static $valueToName = [ + self::PROPERTY_TYPE_UNSPECIFIED => 'PROPERTY_TYPE_UNSPECIFIED', + self::PROPERTY_TYPE_ORDINARY => 'PROPERTY_TYPE_ORDINARY', + self::PROPERTY_TYPE_SUBPROPERTY => 'PROPERTY_TYPE_SUBPROPERTY', + self::PROPERTY_TYPE_ROLLUP => 'PROPERTY_TYPE_ROLLUP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php new file mode 100644 index 000000000000..f1741f8e243e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + */ +class ProvisionAccountTicketRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The account to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; + */ + protected $account = null; + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * + * Generated from protobuf field string redirect_uri = 2; + */ + protected $redirect_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Account $account + * The account to create. + * @type string $redirect_uri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The account to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; + * @return \Google\Analytics\Admin\V1alpha\Account|null + */ + public function getAccount() + { + return $this->account; + } + + public function hasAccount() + { + return isset($this->account); + } + + public function clearAccount() + { + unset($this->account); + } + + /** + * The account to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; + * @param \Google\Analytics\Admin\V1alpha\Account $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); + $this->account = $var; + + return $this; + } + + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * + * Generated from protobuf field string redirect_uri = 2; + * @return string + */ + public function getRedirectUri() + { + return $this->redirect_uri; + } + + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * + * Generated from protobuf field string redirect_uri = 2; + * @param string $var + * @return $this + */ + public function setRedirectUri($var) + { + GPBUtil::checkString($var, True); + $this->redirect_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php new file mode 100644 index 000000000000..22408ea9bcb1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + */ +class ProvisionAccountTicketResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The param to be passed in the ToS link. + * + * Generated from protobuf field string account_ticket_id = 1; + */ + protected $account_ticket_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account_ticket_id + * The param to be passed in the ToS link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The param to be passed in the ToS link. + * + * Generated from protobuf field string account_ticket_id = 1; + * @return string + */ + public function getAccountTicketId() + { + return $this->account_ticket_id; + } + + /** + * The param to be passed in the ToS link. + * + * Generated from protobuf field string account_ticket_id = 1; + * @param string $var + * @return $this + */ + public function setAccountTicketId($var) + { + GPBUtil::checkString($var, True); + $this->account_ticket_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php new file mode 100644 index 000000000000..e947593952ba --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.RollupPropertySourceLink + */ +class RollupPropertySourceLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * + * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $source_property = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * @type string $source_property + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * + * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getSourceProperty() + { + return $this->source_property; + } + + /** + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * + * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setSourceProperty($var) + { + GPBUtil::checkString($var, True); + $this->source_property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php new file mode 100644 index 000000000000..63807d0a47dd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php @@ -0,0 +1,679 @@ +google.analytics.admin.v1alpha.RunAccessReportRequest + */ +class RunAccessReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * + * Generated from protobuf field string entity = 1; + */ + protected $entity = ''; + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + private $dimensions; + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + private $metrics; + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + private $date_ranges; + /** + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + protected $dimension_filter = null; + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + protected $metric_filter = null; + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + */ + protected $offset = 0; + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + */ + protected $limit = 0; + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * + * Generated from protobuf field string time_zone = 9; + */ + protected $time_zone = ''; + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + private $order_bys; + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * + * Generated from protobuf field bool return_entity_quota = 11; + */ + protected $return_entity_quota = false; + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $include_all_users = false; + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $expand_groups = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * @type array<\Google\Analytics\Admin\V1alpha\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * @type array<\Google\Analytics\Admin\V1alpha\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * @type array<\Google\Analytics\Admin\V1alpha\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $dimension_filter + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $metric_filter + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * @type int|string $offset + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int|string $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type string $time_zone + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * @type array<\Google\Analytics\Admin\V1alpha\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys + * Specifies how rows are ordered in the response. + * @type bool $return_entity_quota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * @type bool $include_all_users + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * @type bool $expand_groups + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * + * Generated from protobuf field string entity = 1; + * @return string + */ + public function getEntity() + { + return $this->entity; + } + + /** + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * + * Generated from protobuf field string entity = 1; + * @param string $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkString($var, True); + $this->entity = $var; + + return $this; + } + + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + * @param array<\Google\Analytics\Admin\V1alpha\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + * @param array<\Google\Analytics\Admin\V1alpha\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDateRanges() + { + return $this->date_ranges; + } + + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + * @param array<\Google\Analytics\Admin\V1alpha\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDateRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDateRange::class); + $this->date_ranges = $arr; + + return $this; + } + + /** + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null + */ + public function getDimensionFilter() + { + return $this->dimension_filter; + } + + public function hasDimensionFilter() + { + return isset($this->dimension_filter); + } + + public function clearDimensionFilter() + { + unset($this->dimension_filter); + } + + /** + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var + * @return $this + */ + public function setDimensionFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); + $this->dimension_filter = $var; + + return $this; + } + + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null + */ + public function getMetricFilter() + { + return $this->metric_filter; + } + + public function hasMetricFilter() + { + return isset($this->metric_filter); + } + + public function clearMetricFilter() + { + unset($this->metric_filter); + } + + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var + * @return $this + */ + public function setMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); + $this->metric_filter = $var; + + return $this; + } + + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + * @return int|string + */ + public function getOffset() + { + return $this->offset; + } + + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + * @param int|string $var + * @return $this + */ + public function setOffset($var) + { + GPBUtil::checkInt64($var); + $this->offset = $var; + + return $this; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + * @return int|string + */ + public function getLimit() + { + return $this->limit; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + * @param int|string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt64($var); + $this->limit = $var; + + return $this; + } + + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * + * Generated from protobuf field string time_zone = 9; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * + * Generated from protobuf field string time_zone = 9; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrderBys() + { + return $this->order_bys; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + * @param array<\Google\Analytics\Admin\V1alpha\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrderBys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessOrderBy::class); + $this->order_bys = $arr; + + return $this; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * + * Generated from protobuf field bool return_entity_quota = 11; + * @return bool + */ + public function getReturnEntityQuota() + { + return $this->return_entity_quota; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * + * Generated from protobuf field bool return_entity_quota = 11; + * @param bool $var + * @return $this + */ + public function setReturnEntityQuota($var) + { + GPBUtil::checkBool($var); + $this->return_entity_quota = $var; + + return $this; + } + + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIncludeAllUsers() + { + return $this->include_all_users; + } + + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIncludeAllUsers($var) + { + GPBUtil::checkBool($var); + $this->include_all_users = $var; + + return $this; + } + + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getExpandGroups() + { + return $this->expand_groups; + } + + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setExpandGroups($var) + { + GPBUtil::checkBool($var); + $this->expand_groups = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php new file mode 100644 index 000000000000..1817890154d9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php @@ -0,0 +1,257 @@ +google.analytics.admin.v1alpha.RunAccessReportResponse + */ +class RunAccessReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + */ + private $dimension_headers; + /** + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + private $metric_headers; + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + private $rows; + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 4; + */ + protected $row_count = 0; + /** + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + protected $quota = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * @type array<\Google\Analytics\Admin\V1alpha\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * @type array<\Google\Analytics\Admin\V1alpha\AccessRow>|\Google\Protobuf\Internal\RepeatedField $rows + * Rows of dimension value combinations and metric values in the report. + * @type int $row_count + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type \Google\Analytics\Admin\V1alpha\AccessQuota $quota + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionHeaders() + { + return $this->dimension_headers; + } + + /** + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimensionHeader::class); + $this->dimension_headers = $arr; + + return $this; + } + + /** + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricHeaders() + { + return $this->metric_headers; + } + + /** + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetricHeader::class); + $this->metric_headers = $arr; + + return $this; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + * @param array<\Google\Analytics\Admin\V1alpha\AccessRow>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessRow::class); + $this->rows = $arr; + + return $this; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 4; + * @return int + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 4; + * @param int $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt32($var); + $this->row_count = $var; + + return $this; + } + + /** + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * @return \Google\Analytics\Admin\V1alpha\AccessQuota|null + */ + public function getQuota() + { + return $this->quota; + } + + public function hasQuota() + { + return isset($this->quota); + } + + public function clearQuota() + { + unset($this->quota); + } + + /** + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * @param \Google\Analytics\Admin\V1alpha\AccessQuota $var + * @return $this + */ + public function setQuota($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuota::class); + $this->quota = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php new file mode 100644 index 000000000000..23b7b418dd4d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php @@ -0,0 +1,309 @@ +google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + */ +class SKAdNetworkConversionValueSchema extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of the schema. This will be child of ONLY an iOS + * stream, and there can be at most one such child under an iOS stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The conversion value settings for the first postback window. + * These differ from values for postback window two and three in that they + * contain a "Fine" grained conversion value (a numeric value). + * Conversion values for this postback window must be set. The other windows + * are optional and may inherit this window's settings if unset or disabled. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $postback_window_one = null; + /** + * The conversion value settings for the second postback window. + * This field should only be configured if there is a need to define different + * conversion values for this postback window. + * If enable_postback_window_settings is set to false for this postback + * window, the values from postback_window_one will be used. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + protected $postback_window_two = null; + /** + * The conversion value settings for the third postback window. + * This field should only be set if the user chose to define different + * conversion values for this postback window. It is allowed to configure + * window 3 without setting window 2. In case window 1 & 2 settings are set + * and enable_postback_window_settings for this postback window is set to + * false, the schema will inherit settings from postback_window_two. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + protected $postback_window_three = null; + /** + * If enabled, the GA SDK will set conversion values using this schema + * definition, and schema will be exported to any Google Ads accounts linked + * to this property. If disabled, the GA SDK will not automatically set + * conversion values, and also the schema will not be exported to Ads. + * + * Generated from protobuf field bool apply_conversion_values = 5; + */ + protected $apply_conversion_values = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of the schema. This will be child of ONLY an iOS + * stream, and there can be at most one such child under an iOS stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema + * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_one + * Required. The conversion value settings for the first postback window. + * These differ from values for postback window two and three in that they + * contain a "Fine" grained conversion value (a numeric value). + * Conversion values for this postback window must be set. The other windows + * are optional and may inherit this window's settings if unset or disabled. + * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_two + * The conversion value settings for the second postback window. + * This field should only be configured if there is a need to define different + * conversion values for this postback window. + * If enable_postback_window_settings is set to false for this postback + * window, the values from postback_window_one will be used. + * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_three + * The conversion value settings for the third postback window. + * This field should only be set if the user chose to define different + * conversion values for this postback window. It is allowed to configure + * window 3 without setting window 2. In case window 1 & 2 settings are set + * and enable_postback_window_settings for this postback window is set to + * false, the schema will inherit settings from postback_window_two. + * @type bool $apply_conversion_values + * If enabled, the GA SDK will set conversion values using this schema + * definition, and schema will be exported to any Google Ads accounts linked + * to this property. If disabled, the GA SDK will not automatically set + * conversion values, and also the schema will not be exported to Ads. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of the schema. This will be child of ONLY an iOS + * stream, and there can be at most one such child under an iOS stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of the schema. This will be child of ONLY an iOS + * stream, and there can be at most one such child under an iOS stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The conversion value settings for the first postback window. + * These differ from values for postback window two and three in that they + * contain a "Fine" grained conversion value (a numeric value). + * Conversion values for this postback window must be set. The other windows + * are optional and may inherit this window's settings if unset or disabled. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null + */ + public function getPostbackWindowOne() + { + return $this->postback_window_one; + } + + public function hasPostbackWindowOne() + { + return isset($this->postback_window_one); + } + + public function clearPostbackWindowOne() + { + unset($this->postback_window_one); + } + + /** + * Required. The conversion value settings for the first postback window. + * These differ from values for postback window two and three in that they + * contain a "Fine" grained conversion value (a numeric value). + * Conversion values for this postback window must be set. The other windows + * are optional and may inherit this window's settings if unset or disabled. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var + * @return $this + */ + public function setPostbackWindowOne($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); + $this->postback_window_one = $var; + + return $this; + } + + /** + * The conversion value settings for the second postback window. + * This field should only be configured if there is a need to define different + * conversion values for this postback window. + * If enable_postback_window_settings is set to false for this postback + * window, the values from postback_window_one will be used. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null + */ + public function getPostbackWindowTwo() + { + return $this->postback_window_two; + } + + public function hasPostbackWindowTwo() + { + return isset($this->postback_window_two); + } + + public function clearPostbackWindowTwo() + { + unset($this->postback_window_two); + } + + /** + * The conversion value settings for the second postback window. + * This field should only be configured if there is a need to define different + * conversion values for this postback window. + * If enable_postback_window_settings is set to false for this postback + * window, the values from postback_window_one will be used. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var + * @return $this + */ + public function setPostbackWindowTwo($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); + $this->postback_window_two = $var; + + return $this; + } + + /** + * The conversion value settings for the third postback window. + * This field should only be set if the user chose to define different + * conversion values for this postback window. It is allowed to configure + * window 3 without setting window 2. In case window 1 & 2 settings are set + * and enable_postback_window_settings for this postback window is set to + * false, the schema will inherit settings from postback_window_two. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null + */ + public function getPostbackWindowThree() + { + return $this->postback_window_three; + } + + public function hasPostbackWindowThree() + { + return isset($this->postback_window_three); + } + + public function clearPostbackWindowThree() + { + unset($this->postback_window_three); + } + + /** + * The conversion value settings for the third postback window. + * This field should only be set if the user chose to define different + * conversion values for this postback window. It is allowed to configure + * window 3 without setting window 2. In case window 1 & 2 settings are set + * and enable_postback_window_settings for this postback window is set to + * false, the schema will inherit settings from postback_window_two. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var + * @return $this + */ + public function setPostbackWindowThree($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); + $this->postback_window_three = $var; + + return $this; + } + + /** + * If enabled, the GA SDK will set conversion values using this schema + * definition, and schema will be exported to any Google Ads accounts linked + * to this property. If disabled, the GA SDK will not automatically set + * conversion values, and also the schema will not be exported to Ads. + * + * Generated from protobuf field bool apply_conversion_values = 5; + * @return bool + */ + public function getApplyConversionValues() + { + return $this->apply_conversion_values; + } + + /** + * If enabled, the GA SDK will set conversion values using this schema + * definition, and schema will be exported to any Google Ads accounts linked + * to this property. If disabled, the GA SDK will not automatically set + * conversion values, and also the schema will not be exported to Ads. + * + * Generated from protobuf field bool apply_conversion_values = 5; + * @param bool $var + * @return $this + */ + public function setApplyConversionValues($var) + { + GPBUtil::checkBool($var); + $this->apply_conversion_values = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php new file mode 100644 index 000000000000..3861de1b8129 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php @@ -0,0 +1,489 @@ +google.analytics.admin.v1alpha.SearchAds360Link + */ +class SearchAds360Link extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name for this SearchAds360Link resource. + * Format: properties/{propertyId}/searchAds360Links/{linkId} + * Note: linkId is not the Search Ads 360 advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. This field represents the Advertiser ID of the Search Ads 360 + * Advertiser. that has been linked. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $advertiser_id = ''; + /** + * Immutable. Enables the import of campaign data from Search Ads 360 into the + * GA4 property. After link creation, this can only be updated from the Search + * Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $campaign_data_sharing_enabled = null; + /** + * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + * property. This can only be enabled if campaign_data_sharing_enabled is + * enabled. After link creation, this can only be updated from + * the Search Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $cost_data_sharing_enabled = null; + /** + * Output only. The display name of the Search Ads 360 Advertiser. + * Allows users to easily identify the linked resource. + * + * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $advertiser_display_name = ''; + /** + * Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + protected $ads_personalization_enabled = null; + /** + * Enables export of site stats with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + protected $site_stats_sharing_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name for this SearchAds360Link resource. + * Format: properties/{propertyId}/searchAds360Links/{linkId} + * Note: linkId is not the Search Ads 360 advertiser ID + * @type string $advertiser_id + * Immutable. This field represents the Advertiser ID of the Search Ads 360 + * Advertiser. that has been linked. + * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled + * Immutable. Enables the import of campaign data from Search Ads 360 into the + * GA4 property. After link creation, this can only be updated from the Search + * Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled + * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + * property. This can only be enabled if campaign_data_sharing_enabled is + * enabled. After link creation, this can only be updated from + * the Search Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * @type string $advertiser_display_name + * Output only. The display name of the Search Ads 360 Advertiser. + * Allows users to easily identify the linked resource. + * @type \Google\Protobuf\BoolValue $ads_personalization_enabled + * Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * @type \Google\Protobuf\BoolValue $site_stats_sharing_enabled + * Enables export of site stats with this integration. + * If this field is not set on create, it will be defaulted to true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name for this SearchAds360Link resource. + * Format: properties/{propertyId}/searchAds360Links/{linkId} + * Note: linkId is not the Search Ads 360 advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name for this SearchAds360Link resource. + * Format: properties/{propertyId}/searchAds360Links/{linkId} + * Note: linkId is not the Search Ads 360 advertiser ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. This field represents the Advertiser ID of the Search Ads 360 + * Advertiser. that has been linked. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAdvertiserId() + { + return $this->advertiser_id; + } + + /** + * Immutable. This field represents the Advertiser ID of the Search Ads 360 + * Advertiser. that has been linked. + * + * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAdvertiserId($var) + { + GPBUtil::checkString($var, True); + $this->advertiser_id = $var; + + return $this; + } + + /** + * Immutable. Enables the import of campaign data from Search Ads 360 into the + * GA4 property. After link creation, this can only be updated from the Search + * Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCampaignDataSharingEnabled() + { + return $this->campaign_data_sharing_enabled; + } + + public function hasCampaignDataSharingEnabled() + { + return isset($this->campaign_data_sharing_enabled); + } + + public function clearCampaignDataSharingEnabled() + { + unset($this->campaign_data_sharing_enabled); + } + + /** + * Returns the unboxed value from getCampaignDataSharingEnabled() + + * Immutable. Enables the import of campaign data from Search Ads 360 into the + * GA4 property. After link creation, this can only be updated from the Search + * Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getCampaignDataSharingEnabledUnwrapped() + { + return $this->readWrapperValue("campaign_data_sharing_enabled"); + } + + /** + * Immutable. Enables the import of campaign data from Search Ads 360 into the + * GA4 property. After link creation, this can only be updated from the Search + * Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCampaignDataSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->campaign_data_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables the import of campaign data from Search Ads 360 into the + * GA4 property. After link creation, this can only be updated from the Search + * Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setCampaignDataSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("campaign_data_sharing_enabled", $var); + return $this;} + + /** + * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + * property. This can only be enabled if campaign_data_sharing_enabled is + * enabled. After link creation, this can only be updated from + * the Search Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCostDataSharingEnabled() + { + return $this->cost_data_sharing_enabled; + } + + public function hasCostDataSharingEnabled() + { + return isset($this->cost_data_sharing_enabled); + } + + public function clearCostDataSharingEnabled() + { + unset($this->cost_data_sharing_enabled); + } + + /** + * Returns the unboxed value from getCostDataSharingEnabled() + + * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + * property. This can only be enabled if campaign_data_sharing_enabled is + * enabled. After link creation, this can only be updated from + * the Search Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return bool|null + */ + public function getCostDataSharingEnabledUnwrapped() + { + return $this->readWrapperValue("cost_data_sharing_enabled"); + } + + /** + * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + * property. This can only be enabled if campaign_data_sharing_enabled is + * enabled. After link creation, this can only be updated from + * the Search Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCostDataSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->cost_data_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 + * property. This can only be enabled if campaign_data_sharing_enabled is + * enabled. After link creation, this can only be updated from + * the Search Ads 360 product. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param bool|null $var + * @return $this + */ + public function setCostDataSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("cost_data_sharing_enabled", $var); + return $this;} + + /** + * Output only. The display name of the Search Ads 360 Advertiser. + * Allows users to easily identify the linked resource. + * + * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAdvertiserDisplayName() + { + return $this->advertiser_display_name; + } + + /** + * Output only. The display name of the Search Ads 360 Advertiser. + * Allows users to easily identify the linked resource. + * + * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAdvertiserDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->advertiser_display_name = $var; + + return $this; + } + + /** + * Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; + * @return \Google\Protobuf\BoolValue|null + */ + public function getAdsPersonalizationEnabled() + { + return $this->ads_personalization_enabled; + } + + public function hasAdsPersonalizationEnabled() + { + return isset($this->ads_personalization_enabled); + } + + public function clearAdsPersonalizationEnabled() + { + unset($this->ads_personalization_enabled); + } + + /** + * Returns the unboxed value from getAdsPersonalizationEnabled() + + * Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; + * @return bool|null + */ + public function getAdsPersonalizationEnabledUnwrapped() + { + return $this->readWrapperValue("ads_personalization_enabled"); + } + + /** + * Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setAdsPersonalizationEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->ads_personalization_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enables personalized advertising features with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; + * @param bool|null $var + * @return $this + */ + public function setAdsPersonalizationEnabledUnwrapped($var) + { + $this->writeWrapperValue("ads_personalization_enabled", $var); + return $this;} + + /** + * Enables export of site stats with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * @return \Google\Protobuf\BoolValue|null + */ + public function getSiteStatsSharingEnabled() + { + return $this->site_stats_sharing_enabled; + } + + public function hasSiteStatsSharingEnabled() + { + return isset($this->site_stats_sharing_enabled); + } + + public function clearSiteStatsSharingEnabled() + { + unset($this->site_stats_sharing_enabled); + } + + /** + * Returns the unboxed value from getSiteStatsSharingEnabled() + + * Enables export of site stats with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * @return bool|null + */ + public function getSiteStatsSharingEnabledUnwrapped() + { + return $this->readWrapperValue("site_stats_sharing_enabled"); + } + + /** + * Enables export of site stats with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setSiteStatsSharingEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->site_stats_sharing_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enables export of site stats with this integration. + * If this field is not set on create, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * @param bool|null $var + * @return $this + */ + public function setSiteStatsSharingEnabledUnwrapped($var) + { + $this->writeWrapperValue("site_stats_sharing_enabled", $var); + return $this;} + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php new file mode 100644 index 000000000000..0d04937b597d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php @@ -0,0 +1,407 @@ +google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + */ +class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account resource for which to return change history + * resources. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $account = ''; + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * + * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $property = ''; + /** + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $resource_type; + /** + * Optional. If set, only return changes that match one or more of these types + * of actions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $action; + /** + * Optional. If set, only return changes if they are made by a user in this + * list. + * + * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $actor_email; + /** + * Optional. If set, only return changes made after this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $earliest_change_time = null; + /** + * Optional. If set, only return changes made before this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latest_change_time = null; + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account + * Required. The account resource for which to return change history + * resources. + * @type string $property + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_type + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @type array|\Google\Protobuf\Internal\RepeatedField $action + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @type array|\Google\Protobuf\Internal\RepeatedField $actor_email + * Optional. If set, only return changes if they are made by a user in this + * list. + * @type \Google\Protobuf\Timestamp $earliest_change_time + * Optional. If set, only return changes made after this time (inclusive). + * @type \Google\Protobuf\Timestamp $latest_change_time + * Optional. If set, only return changes made before this time (inclusive). + * @type int $page_size + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account resource for which to return change history + * resources. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. The account resource for which to return change history + * resources. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * + * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * + * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\ChangeHistoryResourceType::class); + $this->resource_type = $arr; + + return $this; + } + + /** + * Optional. If set, only return changes that match one or more of these types + * of actions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAction() + { + return $this->action; + } + + /** + * Optional. If set, only return changes that match one or more of these types + * of actions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAction($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\ActionType::class); + $this->action = $arr; + + return $this; + } + + /** + * Optional. If set, only return changes if they are made by a user in this + * list. + * + * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActorEmail() + { + return $this->actor_email; + } + + /** + * Optional. If set, only return changes if they are made by a user in this + * list. + * + * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActorEmail($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->actor_email = $arr; + + return $this; + } + + /** + * Optional. If set, only return changes made after this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEarliestChangeTime() + { + return $this->earliest_change_time; + } + + public function hasEarliestChangeTime() + { + return isset($this->earliest_change_time); + } + + public function clearEarliestChangeTime() + { + unset($this->earliest_change_time); + } + + /** + * Optional. If set, only return changes made after this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEarliestChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->earliest_change_time = $var; + + return $this; + } + + /** + * Optional. If set, only return changes made before this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLatestChangeTime() + { + return $this->latest_change_time; + } + + public function hasLatestChangeTime() + { + return isset($this->latest_change_time); + } + + public function clearLatestChangeTime() + { + unset($this->latest_change_time); + } + + /** + * Optional. If set, only return changes made before this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLatestChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->latest_change_time = $var; + + return $this; + } + + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php new file mode 100644 index 000000000000..d26a3e0bd325 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + */ +class SearchChangeHistoryEventsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + */ + private $change_history_events; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $change_history_events + * Results that were accessible to the caller. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChangeHistoryEvents() + { + return $this->change_history_events; + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * @param array<\Google\Analytics\Admin\V1alpha\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChangeHistoryEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChangeHistoryEvent::class); + $this->change_history_events = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php new file mode 100644 index 000000000000..d7e00a48d589 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php @@ -0,0 +1,61 @@ +google.analytics.admin.v1alpha.ServiceLevel + */ +class ServiceLevel +{ + /** + * Service level not specified or invalid. + * + * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0; + */ + const SERVICE_LEVEL_UNSPECIFIED = 0; + /** + * The standard version of Google Analytics. + * + * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1; + */ + const GOOGLE_ANALYTICS_STANDARD = 1; + /** + * The paid, premium version of Google Analytics. + * + * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2; + */ + const GOOGLE_ANALYTICS_360 = 2; + + private static $valueToName = [ + self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED', + self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD', + self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php new file mode 100644 index 000000000000..0dd8afa71817 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php @@ -0,0 +1,113 @@ +google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + */ +class SetAutomatedGa4ConfigurationOptOutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property = ''; + /** + * The status to set. + * + * Generated from protobuf field bool opt_out = 2; + */ + protected $opt_out = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * @type bool $opt_out + * The status to set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * The status to set. + * + * Generated from protobuf field bool opt_out = 2; + * @return bool + */ + public function getOptOut() + { + return $this->opt_out; + } + + /** + * The status to set. + * + * Generated from protobuf field bool opt_out = 2; + * @param bool $var + * @return $this + */ + public function setOptOut($var) + { + GPBUtil::checkBool($var); + $this->opt_out = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php new file mode 100644 index 000000000000..481c502c84c4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php @@ -0,0 +1,34 @@ +google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + */ +class SetAutomatedGa4ConfigurationOptOutResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php new file mode 100644 index 000000000000..0dbeeb33e198 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php @@ -0,0 +1,161 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilter + */ +class SubpropertyEventFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. Resource name of the Subproperty that uses this filter. + * + * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $apply_to_property = null; + /** + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $filter_clauses; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * @type string $apply_to_property + * Immutable. Resource name of the Subproperty that uses this filter. + * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. Resource name of the Subproperty that uses this filter. + * + * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getApplyToProperty() + { + return isset($this->apply_to_property) ? $this->apply_to_property : ''; + } + + public function hasApplyToProperty() + { + return isset($this->apply_to_property); + } + + public function clearApplyToProperty() + { + unset($this->apply_to_property); + } + + /** + * Immutable. Resource name of the Subproperty that uses this filter. + * + * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setApplyToProperty($var) + { + GPBUtil::checkString($var, True); + $this->apply_to_property = $var; + + return $this; + } + + /** + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterClauses() + { + return $this->filter_clauses; + } + + /** + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterClauses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause::class); + $this->filter_clauses = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php new file mode 100644 index 000000000000..6b72ca9d1f44 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php @@ -0,0 +1,118 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterClause + */ +class SubpropertyEventFilterClause extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type for the filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter_clause_type = 0; + /** + * Required. The logical expression for what events are sent to the + * subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter_expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $filter_clause_type + * Required. The type for the filter clause. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $filter_expression + * Required. The logical expression for what events are sent to the + * subproperty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type for the filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getFilterClauseType() + { + return $this->filter_clause_type; + } + + /** + * Required. The type for the filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setFilterClauseType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause\FilterClauseType::class); + $this->filter_clause_type = $var; + + return $this; + } + + /** + * Required. The logical expression for what events are sent to the + * subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression|null + */ + public function getFilterExpression() + { + return $this->filter_expression; + } + + public function hasFilterExpression() + { + return isset($this->filter_expression); + } + + public function clearFilterExpression() + { + unset($this->filter_expression); + } + + /** + * Required. The logical expression for what events are sent to the + * subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $var + * @return $this + */ + public function setFilterExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); + $this->filter_expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php new file mode 100644 index 000000000000..51d997db1a75 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php @@ -0,0 +1,69 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + */ +class FilterClauseType +{ + /** + * Filter clause type unknown or not specified. + * + * Generated from protobuf enum FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + const FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + /** + * Events will be included in the Sub property if the filter clause is met. + * + * Generated from protobuf enum INCLUDE = 1; + */ + const PBINCLUDE = 1; + /** + * Events will be excluded from the Sub property if the filter clause is + * met. + * + * Generated from protobuf enum EXCLUDE = 2; + */ + const EXCLUDE = 2; + + private static $valueToName = [ + self::FILTER_CLAUSE_TYPE_UNSPECIFIED => 'FILTER_CLAUSE_TYPE_UNSPECIFIED', + self::PBINCLUDE => 'INCLUDE', + self::EXCLUDE => 'EXCLUDE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FilterClauseType::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause_FilterClauseType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php new file mode 100644 index 000000000000..ddec2d765ae3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php @@ -0,0 +1,142 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + */ +class SubpropertyEventFilterCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The field that is being filtered. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field_name = ''; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $null_filter + * A filter for null values. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $string_filter + * A filter for a string-type dimension that matches a particular pattern. + * @type string $field_name + * Required. The field that is being filtered. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * A filter for null values. + * + * Generated from protobuf field bool null_filter = 2; + * @return bool + */ + public function getNullFilter() + { + return $this->readOneof(2); + } + + public function hasNullFilter() + { + return $this->hasOneof(2); + } + + /** + * A filter for null values. + * + * Generated from protobuf field bool null_filter = 2; + * @param bool $var + * @return $this + */ + public function setNullFilter($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(3); + } + + public function hasStringFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The field that is being filtered. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * Required. The field that is being filtered. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php new file mode 100644 index 000000000000..0ef40e1b4af1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php @@ -0,0 +1,142 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + */ +class StringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $match_type = 0; + /** + * Required. The string value used for the matching. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + /** + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * Required. The match type for the string filter. + * @type string $value + * Required. The string value used for the matching. + * @type bool $case_sensitive + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * Required. The string value used for the matching. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The string value used for the matching. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition_StringFilter::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php new file mode 100644 index 000000000000..797642e0b851 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php @@ -0,0 +1,92 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + */ +class MatchType +{ + /** + * Match type unknown or not specified. + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full regular expression matches with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + /** + * Partial regular expression matches with the string value. + * + * Generated from protobuf enum PARTIAL_REGEXP = 6; + */ + const PARTIAL_REGEXP = 6; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition_StringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php new file mode 100644 index 000000000000..ebc66bfd4234 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php @@ -0,0 +1,153 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + */ +class SubpropertyEventFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList $or_group + * A list of expressions to OR’ed together. Must only contain + * not_expression or filter_condition expressions. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $not_expression + * A filter expression to be NOT'ed (inverted, complemented). It can only + * include a filter. This cannot be set on the top level + * SubpropertyEventFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition $filter_condition + * Creates a filter that matches a specific event. This cannot be set on the + * top level SubpropertyEventFilterExpression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * A list of expressions to OR’ed together. Must only contain + * not_expression or filter_condition expressions. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(1); + } + + public function hasOrGroup() + { + return $this->hasOneof(1); + } + + /** + * A list of expressions to OR’ed together. Must only contain + * not_expression or filter_condition expressions. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A filter expression to be NOT'ed (inverted, complemented). It can only + * include a filter. This cannot be set on the top level + * SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(2); + } + + public function hasNotExpression() + { + return $this->hasOneof(2); + } + + /** + * A filter expression to be NOT'ed (inverted, complemented). It can only + * include a filter. This cannot be set on the top level + * SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Creates a filter that matches a specific event. This cannot be set on the + * top level SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition|null + */ + public function getFilterCondition() + { + return $this->readOneof(3); + } + + public function hasFilterCondition() + { + return $this->hasOneof(3); + } + + /** + * Creates a filter that matches a specific event. This cannot be set on the + * top level SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition $var + * @return $this + */ + public function setFilterCondition($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getExpr() + { + return $this->whichOneof("expr"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php new file mode 100644 index 000000000000..1b0505f27ca9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + */ +class SubpropertyEventFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unordered list. A list of Subproperty event filter expressions + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $filter_expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions + * Required. Unordered list. A list of Subproperty event filter expressions + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unordered list. A list of Subproperty event filter expressions + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterExpressions() + { + return $this->filter_expressions; + } + + /** + * Required. Unordered list. A list of Subproperty event filter expressions + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); + $this->filter_expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php new file mode 100644 index 000000000000..4d5a86a8df7e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php @@ -0,0 +1,77 @@ +google.analytics.admin.v1alpha.UpdateAccessBindingRequest + */ +class UpdateAccessBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The access binding to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $access_binding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AccessBinding $access_binding + * Required. The access binding to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The access binding to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AccessBinding|null + */ + public function getAccessBinding() + { + return $this->access_binding; + } + + public function hasAccessBinding() + { + return isset($this->access_binding); + } + + public function clearAccessBinding() + { + unset($this->access_binding); + } + + /** + * Required. The access binding to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AccessBinding $var + * @return $this + */ + public function setAccessBinding($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBinding::class); + $this->access_binding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php new file mode 100644 index 000000000000..6319af654b8f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateAccountRequest + */ +class UpdateAccountRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Account $account + * Required. The account to update. + * The account's `name` field is used to identify the account. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Account|null + */ + public function getAccount() + { + return $this->account; + } + + public function hasAccount() + { + return isset($this->account); + } + + public function clearAccount() + { + unset($this->account); + } + + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Account $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); + $this->account = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php new file mode 100644 index 000000000000..762702551212 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + */ +class UpdateAttributionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attribution_settings = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\AttributionSettings $attribution_settings + * Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\AttributionSettings|null + */ + public function getAttributionSettings() + { + return $this->attribution_settings; + } + + public function hasAttributionSettings() + { + return isset($this->attribution_settings); + } + + public function clearAttributionSettings() + { + unset($this->attribution_settings); + } + + /** + * Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $var + * @return $this + */ + public function setAttributionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AttributionSettings::class); + $this->attribution_settings = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php new file mode 100644 index 000000000000..3a8b02265922 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateAudienceRequest + */ +class UpdateAudienceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The audience to update. + * The audience's `name` field is used to identify the audience to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $audience = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Audience $audience + * Required. The audience to update. + * The audience's `name` field is used to identify the audience to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The audience to update. + * The audience's `name` field is used to identify the audience to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Audience|null + */ + public function getAudience() + { + return $this->audience; + } + + public function hasAudience() + { + return isset($this->audience); + } + + public function clearAudience() + { + unset($this->audience); + } + + /** + * Required. The audience to update. + * The audience's `name` field is used to identify the audience to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Audience $var + * @return $this + */ + public function setAudience($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); + $this->audience = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php new file mode 100644 index 000000000000..549cfc6cdb67 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php @@ -0,0 +1,141 @@ +google.analytics.admin.v1alpha.UpdateChannelGroupRequest + */ +class UpdateChannelGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ChannelGroup to update. + * The resource's `name` field is used to identify the ChannelGroup to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channel_group = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group + * Required. The ChannelGroup to update. + * The resource's `name` field is used to identify the ChannelGroup to be + * updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ChannelGroup to update. + * The resource's `name` field is used to identify the ChannelGroup to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null + */ + public function getChannelGroup() + { + return $this->channel_group; + } + + public function hasChannelGroup() + { + return isset($this->channel_group); + } + + public function clearChannelGroup() + { + unset($this->channel_group); + } + + /** + * Required. The ChannelGroup to update. + * The resource's `name` field is used to identify the ChannelGroup to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var + * @return $this + */ + public function setChannelGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); + $this->channel_group = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php new file mode 100644 index 000000000000..14134e4d749b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateConversionEventRequest + */ +class UpdateConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversion_event = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null + */ + public function getConversionEvent() + { + return $this->conversion_event; + } + + public function hasConversionEvent() + { + return isset($this->conversion_event); + } + + public function clearConversionEvent() + { + unset($this->conversion_event); + } + + /** + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); + $this->conversion_event = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php new file mode 100644 index 000000000000..f99cea1216e2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php @@ -0,0 +1,129 @@ +google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + */ +class UpdateCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The CustomDimension to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + protected $custom_dimension = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension + * The CustomDimension to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The CustomDimension to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null + */ + public function getCustomDimension() + { + return $this->custom_dimension; + } + + public function hasCustomDimension() + { + return isset($this->custom_dimension); + } + + public function clearCustomDimension() + { + unset($this->custom_dimension); + } + + /** + * The CustomDimension to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var + * @return $this + */ + public function setCustomDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); + $this->custom_dimension = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php new file mode 100644 index 000000000000..fbb81b0f87d7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php @@ -0,0 +1,129 @@ +google.analytics.admin.v1alpha.UpdateCustomMetricRequest + */ +class UpdateCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The CustomMetric to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + protected $custom_metric = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric + * The CustomMetric to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The CustomMetric to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null + */ + public function getCustomMetric() + { + return $this->custom_metric; + } + + public function hasCustomMetric() + { + return isset($this->custom_metric); + } + + public function clearCustomMetric() + { + unset($this->custom_metric); + } + + /** + * The CustomMetric to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var + * @return $this + */ + public function setCustomMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); + $this->custom_metric = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php new file mode 100644 index 000000000000..6b84a308aae6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + */ +class UpdateDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_redaction_settings = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null + */ + public function getDataRedactionSettings() + { + return $this->data_redaction_settings; + } + + public function hasDataRedactionSettings() + { + return isset($this->data_redaction_settings); + } + + public function clearDataRedactionSettings() + { + unset($this->data_redaction_settings); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var + * @return $this + */ + public function setDataRedactionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); + $this->data_redaction_settings = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php new file mode 100644 index 000000000000..4eabea94e7f2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + */ +class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_retention_settings = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null + */ + public function getDataRetentionSettings() + { + return $this->data_retention_settings; + } + + public function hasDataRetentionSettings() + { + return isset($this->data_retention_settings); + } + + public function clearDataRetentionSettings() + { + unset($this->data_retention_settings); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var + * @return $this + */ + public function setDataRetentionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class); + $this->data_retention_settings = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php new file mode 100644 index 000000000000..dc0c0f8c4baa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php @@ -0,0 +1,129 @@ +google.analytics.admin.v1alpha.UpdateDataStreamRequest + */ +class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The DataStream to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + protected $data_stream = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream + * The DataStream to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The DataStream to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * @return \Google\Analytics\Admin\V1alpha\DataStream|null + */ + public function getDataStream() + { + return $this->data_stream; + } + + public function hasDataStream() + { + return isset($this->data_stream); + } + + public function clearDataStream() + { + unset($this->data_stream); + } + + /** + * The DataStream to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * @param \Google\Analytics\Admin\V1alpha\DataStream $var + * @return $this + */ + public function setDataStream($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); + $this->data_stream = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php new file mode 100644 index 000000000000..339205765211 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php @@ -0,0 +1,129 @@ +google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + */ +class UpdateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The DisplayVideo360AdvertiserLink to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + */ + protected $display_video_360_advertiser_link = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link + * The DisplayVideo360AdvertiserLink to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The DisplayVideo360AdvertiserLink to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null + */ + public function getDisplayVideo360AdvertiserLink() + { + return $this->display_video_360_advertiser_link; + } + + public function hasDisplayVideo360AdvertiserLink() + { + return isset($this->display_video_360_advertiser_link); + } + + public function clearDisplayVideo360AdvertiserLink() + { + unset($this->display_video_360_advertiser_link); + } + + /** + * The DisplayVideo360AdvertiserLink to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var + * @return $this + */ + public function setDisplayVideo360AdvertiserLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); + $this->display_video_360_advertiser_link = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php new file mode 100644 index 000000000000..cb8df4193013 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + */ +class UpdateEnhancedMeasurementSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enhanced_measurement_settings = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings|null + */ + public function getEnhancedMeasurementSettings() + { + return $this->enhanced_measurement_settings; + } + + public function hasEnhancedMeasurementSettings() + { + return isset($this->enhanced_measurement_settings); + } + + public function clearEnhancedMeasurementSettings() + { + unset($this->enhanced_measurement_settings); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $var + * @return $this + */ + public function setEnhancedMeasurementSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings::class); + $this->enhanced_measurement_settings = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php new file mode 100644 index 000000000000..af24f12bf422 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php @@ -0,0 +1,141 @@ +google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + */ +class UpdateEventCreateRuleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $event_create_rule = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule + * Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null + */ + public function getEventCreateRule() + { + return $this->event_create_rule; + } + + public function hasEventCreateRule() + { + return isset($this->event_create_rule); + } + + public function clearEventCreateRule() + { + unset($this->event_create_rule); + } + + /** + * Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var + * @return $this + */ + public function setEventCreateRule($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); + $this->event_create_rule = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php new file mode 100644 index 000000000000..de021a0e5ccf --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php @@ -0,0 +1,141 @@ +google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + */ +class UpdateExpandedDataSetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ExpandedDataSet to update. + * The resource's `name` field is used to identify the ExpandedDataSet to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $expanded_data_set = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set + * Required. The ExpandedDataSet to update. + * The resource's `name` field is used to identify the ExpandedDataSet to be + * updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ExpandedDataSet to update. + * The resource's `name` field is used to identify the ExpandedDataSet to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null + */ + public function getExpandedDataSet() + { + return $this->expanded_data_set; + } + + public function hasExpandedDataSet() + { + return isset($this->expanded_data_set); + } + + public function clearExpandedDataSet() + { + unset($this->expanded_data_set); + } + + /** + * Required. The ExpandedDataSet to update. + * The resource's `name` field is used to identify the ExpandedDataSet to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var + * @return $this + */ + public function setExpandedDataSet($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); + $this->expanded_data_set = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php new file mode 100644 index 000000000000..764994684bf5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php @@ -0,0 +1,133 @@ +google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + */ +class UpdateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The GoogleAdsLink to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + protected $google_ads_link = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link + * The GoogleAdsLink to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The GoogleAdsLink to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null + */ + public function getGoogleAdsLink() + { + return $this->google_ads_link; + } + + public function hasGoogleAdsLink() + { + return isset($this->google_ads_link); + } + + public function clearGoogleAdsLink() + { + unset($this->google_ads_link); + } + + /** + * The GoogleAdsLink to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var + * @return $this + */ + public function setGoogleAdsLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); + $this->google_ads_link = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php new file mode 100644 index 000000000000..76755c2b21c6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + */ +class UpdateGoogleSignalsSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $google_signals_settings = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $google_signals_settings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings|null + */ + public function getGoogleSignalsSettings() + { + return $this->google_signals_settings; + } + + public function hasGoogleSignalsSettings() + { + return isset($this->google_signals_settings); + } + + public function clearGoogleSignalsSettings() + { + unset($this->google_signals_settings); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $var + * @return $this + */ + public function setGoogleSignalsSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings::class); + $this->google_signals_settings = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..06a18771fbf0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + */ +class UpdateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The measurement protocol secret to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement_protocol_secret = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret + * Required. The measurement protocol secret to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The measurement protocol secret to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null + */ + public function getMeasurementProtocolSecret() + { + return $this->measurement_protocol_secret; + } + + public function hasMeasurementProtocolSecret() + { + return isset($this->measurement_protocol_secret); + } + + public function clearMeasurementProtocolSecret() + { + unset($this->measurement_protocol_secret); + } + + /** + * Required. The measurement protocol secret to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var + * @return $this + */ + public function setMeasurementProtocolSecret($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); + $this->measurement_protocol_secret = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php new file mode 100644 index 000000000000..739b15b82e93 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php @@ -0,0 +1,141 @@ +google.analytics.admin.v1alpha.UpdatePropertyRequest + */ +class UpdatePropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $property + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getProperty() + { + return $this->property; + } + + public function hasProperty() + { + return isset($this->property); + } + + public function clearProperty() + { + unset($this->property); + } + + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->property = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php new file mode 100644 index 000000000000..5af1575bba01 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + */ +class UpdateSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. SKAdNetwork conversion value schema to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $skadnetwork_conversion_value_schema = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema + * Required. SKAdNetwork conversion value schema to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. SKAdNetwork conversion value schema to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null + */ + public function getSkadnetworkConversionValueSchema() + { + return $this->skadnetwork_conversion_value_schema; + } + + public function hasSkadnetworkConversionValueSchema() + { + return isset($this->skadnetwork_conversion_value_schema); + } + + public function clearSkadnetworkConversionValueSchema() + { + unset($this->skadnetwork_conversion_value_schema); + } + + /** + * Required. SKAdNetwork conversion value schema to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var + * @return $this + */ + public function setSkadnetworkConversionValueSchema($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); + $this->skadnetwork_conversion_value_schema = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php new file mode 100644 index 000000000000..ddf8d427d80f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php @@ -0,0 +1,129 @@ +google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + */ +class UpdateSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The SearchAds360Link to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + protected $search_ads_360_link = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link + * The SearchAds360Link to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The SearchAds360Link to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null + */ + public function getSearchAds360Link() + { + return $this->search_ads_360_link; + } + + public function hasSearchAds360Link() + { + return isset($this->search_ads_360_link); + } + + public function clearSearchAds360Link() + { + unset($this->search_ads_360_link); + } + + /** + * The SearchAds360Link to update + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var + * @return $this + */ + public function setSearchAds360Link($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); + $this->search_ads_360_link = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..df97940e61cf --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php @@ -0,0 +1,133 @@ +google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + */ +class UpdateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The subproperty event filter to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $subproperty_event_filter = null; + /** + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter + * Required. The subproperty event filter to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The subproperty event filter to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null + */ + public function getSubpropertyEventFilter() + { + return $this->subproperty_event_filter; + } + + public function hasSubpropertyEventFilter() + { + return isset($this->subproperty_event_filter); + } + + public function clearSubpropertyEventFilter() + { + unset($this->subproperty_event_filter); + } + + /** + * Required. The subproperty event filter to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var + * @return $this + */ + public function setSubpropertyEventFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); + $this->subproperty_event_filter = $var; + + return $this; + } + + /** + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php new file mode 100644 index 000000000000..ebe379ea6db7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php @@ -0,0 +1,84 @@ +acknowledgeUserDataCollection( + $formattedProperty, + $acknowledgement + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $acknowledgement = '[ACKNOWLEDGEMENT]'; + + acknowledge_user_data_collection_sample($formattedProperty, $acknowledgement); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php new file mode 100644 index 000000000000..9e270c4ebe14 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php @@ -0,0 +1,74 @@ +approveDisplayVideo360AdvertiserLinkProposal( + $formattedName + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( + '[PROPERTY]', + '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' + ); + + approve_display_video360_advertiser_link_proposal_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php new file mode 100644 index 000000000000..7f81814a2af0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php @@ -0,0 +1,64 @@ +archiveAudience($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + archive_audience_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php new file mode 100644 index 000000000000..33ef2e5a7067 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php @@ -0,0 +1,68 @@ +archiveCustomDimension($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customDimensionName( + '[PROPERTY]', + '[CUSTOM_DIMENSION]' + ); + + archive_custom_dimension_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php new file mode 100644 index 000000000000..5f3915c57404 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php @@ -0,0 +1,65 @@ +archiveCustomMetric($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + + archive_custom_metric_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php new file mode 100644 index 000000000000..514f75f69356 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php @@ -0,0 +1,90 @@ +setParent($formattedRequestsParent) + ->setAccessBinding($requestsAccessBinding); + $requests = [$createAccessBindingRequest,]; + + // Call the API and handle any network failures. + try { + /** @var BatchCreateAccessBindingsResponse $response */ + $response = $analyticsAdminServiceClient->batchCreateAccessBindings($formattedParent, $requests); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + $formattedRequestsParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + batch_create_access_bindings_sample($formattedParent, $formattedRequestsParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php new file mode 100644 index 000000000000..e2872ee76c95 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php @@ -0,0 +1,84 @@ +setName($formattedRequestsName); + $requests = [$deleteAccessBindingRequest,]; + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->batchDeleteAccessBindings($formattedParent, $requests); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + $formattedRequestsName = AnalyticsAdminServiceClient::accessBindingName( + '[ACCOUNT]', + '[ACCESS_BINDING]' + ); + + batch_delete_access_bindings_sample($formattedParent, $formattedRequestsName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php new file mode 100644 index 000000000000..2a8518c549ff --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php @@ -0,0 +1,85 @@ +batchGetAccessBindings($formattedParent, $formattedNames); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + $formattedNamesElement = AnalyticsAdminServiceClient::accessBindingName( + '[ACCOUNT]', + '[ACCESS_BINDING]' + ); + + batch_get_access_bindings_sample($formattedParent, $formattedNamesElement); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php new file mode 100644 index 000000000000..dec3209e83ba --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php @@ -0,0 +1,80 @@ +setAccessBinding($requestsAccessBinding); + $requests = [$updateAccessBindingRequest,]; + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateAccessBindingsResponse $response */ + $response = $analyticsAdminServiceClient->batchUpdateAccessBindings($formattedParent, $requests); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + batch_update_access_bindings_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php new file mode 100644 index 000000000000..39bab4f1b1a3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php @@ -0,0 +1,76 @@ +cancelDisplayVideo360AdvertiserLinkProposal( + $formattedName + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( + '[PROPERTY]', + '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' + ); + + cancel_display_video360_advertiser_link_proposal_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php new file mode 100644 index 000000000000..91cb663734ce --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php @@ -0,0 +1,71 @@ +createAccessBinding($formattedParent, $accessBinding); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + create_access_binding_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php new file mode 100644 index 000000000000..936cd5e8e779 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php @@ -0,0 +1,71 @@ +createAdSenseLink($formattedParent, $adsenseLink); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_ad_sense_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php new file mode 100644 index 000000000000..40951483aec7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php @@ -0,0 +1,98 @@ +setClauseType($audienceFilterClausesClauseType); + $audienceFilterClauses = [$audienceFilterClause,]; + $audience = (new Audience()) + ->setDisplayName($audienceDisplayName) + ->setDescription($audienceDescription) + ->setMembershipDurationDays($audienceMembershipDurationDays) + ->setFilterClauses($audienceFilterClauses); + + // Call the API and handle any network failures. + try { + /** @var Audience $response */ + $response = $analyticsAdminServiceClient->createAudience($formattedParent, $audience); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $audienceDisplayName = '[DISPLAY_NAME]'; + $audienceDescription = '[DESCRIPTION]'; + $audienceMembershipDurationDays = 0; + $audienceFilterClausesClauseType = AudienceClauseType::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; + + create_audience_sample( + $formattedParent, + $audienceDisplayName, + $audienceDescription, + $audienceMembershipDurationDays, + $audienceFilterClausesClauseType + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php new file mode 100644 index 000000000000..8af13f006f18 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php @@ -0,0 +1,91 @@ +setDisplayName($channelGroupGroupingRuleDisplayName) + ->setExpression($channelGroupGroupingRuleExpression); + $channelGroupGroupingRule = [$groupingRule,]; + $channelGroup = (new ChannelGroup()) + ->setDisplayName($channelGroupDisplayName) + ->setGroupingRule($channelGroupGroupingRule); + + // Call the API and handle any network failures. + try { + /** @var ChannelGroup $response */ + $response = $analyticsAdminServiceClient->createChannelGroup($formattedParent, $channelGroup); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $channelGroupDisplayName = '[DISPLAY_NAME]'; + $channelGroupGroupingRuleDisplayName = '[DISPLAY_NAME]'; + + create_channel_group_sample( + $formattedParent, + $channelGroupDisplayName, + $channelGroupGroupingRuleDisplayName + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php new file mode 100644 index 000000000000..b5dc77041933 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php @@ -0,0 +1,79 @@ +setDisplayName($connectedSiteTagDisplayName) + ->setTagId($connectedSiteTagTagId); + + // Call the API and handle any network failures. + try { + /** @var CreateConnectedSiteTagResponse $response */ + $response = $analyticsAdminServiceClient->createConnectedSiteTag($connectedSiteTag); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $connectedSiteTagDisplayName = '[DISPLAY_NAME]'; + $connectedSiteTagTagId = '[TAG_ID]'; + + create_connected_site_tag_sample($connectedSiteTagDisplayName, $connectedSiteTagTagId); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConnectedSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php new file mode 100644 index 000000000000..56ba72b61317 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php @@ -0,0 +1,70 @@ +createConversionEvent($conversionEvent, $formattedParent); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_conversion_event_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php new file mode 100644 index 000000000000..2c5cf11f4e09 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php @@ -0,0 +1,103 @@ +setParameterName($customDimensionParameterName) + ->setDisplayName($customDimensionDisplayName) + ->setScope($customDimensionScope); + + // Call the API and handle any network failures. + try { + /** @var CustomDimension $response */ + $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $customDimensionParameterName = '[PARAMETER_NAME]'; + $customDimensionDisplayName = '[DISPLAY_NAME]'; + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + + create_custom_dimension_sample( + $formattedParent, + $customDimensionParameterName, + $customDimensionDisplayName, + $customDimensionScope + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php new file mode 100644 index 000000000000..9febbc664e84 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php @@ -0,0 +1,104 @@ +setParameterName($customMetricParameterName) + ->setDisplayName($customMetricDisplayName) + ->setMeasurementUnit($customMetricMeasurementUnit) + ->setScope($customMetricScope); + + // Call the API and handle any network failures. + try { + /** @var CustomMetric $response */ + $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $customMetricParameterName = '[PARAMETER_NAME]'; + $customMetricDisplayName = '[DISPLAY_NAME]'; + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + + create_custom_metric_sample( + $formattedParent, + $customMetricParameterName, + $customMetricDisplayName, + $customMetricMeasurementUnit, + $customMetricScope + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php new file mode 100644 index 000000000000..f4227170fe1d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php @@ -0,0 +1,73 @@ +setType($dataStreamType); + + // Call the API and handle any network failures. + try { + /** @var DataStream $response */ + $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + + create_data_stream_sample($formattedParent, $dataStreamType); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php new file mode 100644 index 000000000000..e974dc8d12fa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php @@ -0,0 +1,76 @@ +createDisplayVideo360AdvertiserLink( + $formattedParent, + $displayVideo360AdvertiserLink + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_display_video360_advertiser_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php new file mode 100644 index 000000000000..c79fd3d30d67 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php @@ -0,0 +1,72 @@ +createDisplayVideo360AdvertiserLinkProposal( + $formattedParent, + $displayVideo360AdvertiserLinkProposal + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_display_video360_advertiser_link_proposal_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php new file mode 100644 index 000000000000..03c4c534a1fa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php @@ -0,0 +1,109 @@ +setField($eventCreateRuleEventConditionsField) + ->setComparisonType($eventCreateRuleEventConditionsComparisonType) + ->setValue($eventCreateRuleEventConditionsValue); + $eventCreateRuleEventConditions = [$matchingCondition,]; + $eventCreateRule = (new EventCreateRule()) + ->setDestinationEvent($eventCreateRuleDestinationEvent) + ->setEventConditions($eventCreateRuleEventConditions); + + // Call the API and handle any network failures. + try { + /** @var EventCreateRule $response */ + $response = $analyticsAdminServiceClient->createEventCreateRule($formattedParent, $eventCreateRule); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $eventCreateRuleDestinationEvent = '[DESTINATION_EVENT]'; + $eventCreateRuleEventConditionsField = '[FIELD]'; + $eventCreateRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; + $eventCreateRuleEventConditionsValue = '[VALUE]'; + + create_event_create_rule_sample( + $formattedParent, + $eventCreateRuleDestinationEvent, + $eventCreateRuleEventConditionsField, + $eventCreateRuleEventConditionsComparisonType, + $eventCreateRuleEventConditionsValue + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php new file mode 100644 index 000000000000..3fbca5d1d341 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php @@ -0,0 +1,75 @@ +setDisplayName($expandedDataSetDisplayName); + + // Call the API and handle any network failures. + try { + /** @var ExpandedDataSet $response */ + $response = $analyticsAdminServiceClient->createExpandedDataSet($formattedParent, $expandedDataSet); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $expandedDataSetDisplayName = '[DISPLAY_NAME]'; + + create_expanded_data_set_sample($formattedParent, $expandedDataSetDisplayName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php new file mode 100644 index 000000000000..a07834e1e52d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php @@ -0,0 +1,72 @@ +createFirebaseLink($formattedParent, $firebaseLink); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_firebase_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php new file mode 100644 index 000000000000..31848b199c74 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php @@ -0,0 +1,69 @@ +createGoogleAdsLink($formattedParent, $googleAdsLink); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_google_ads_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php new file mode 100644 index 000000000000..2ea353b5e600 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php @@ -0,0 +1,78 @@ +setDisplayName($measurementProtocolSecretDisplayName); + + // Call the API and handle any network failures. + try { + /** @var MeasurementProtocolSecret $response */ + $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret( + $formattedParent, + $measurementProtocolSecret + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; + + create_measurement_protocol_secret_sample($formattedParent, $measurementProtocolSecretDisplayName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php new file mode 100644 index 000000000000..17136f819709 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php @@ -0,0 +1,82 @@ +setDisplayName($propertyDisplayName) + ->setTimeZone($propertyTimeZone); + + // Call the API and handle any network failures. + try { + /** @var Property $response */ + $response = $analyticsAdminServiceClient->createProperty($property); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $propertyDisplayName = '[DISPLAY_NAME]'; + $propertyTimeZone = '[TIME_ZONE]'; + + create_property_sample($propertyDisplayName, $propertyTimeZone); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php new file mode 100644 index 000000000000..c2988799f3c9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php @@ -0,0 +1,85 @@ +setDisplayName($rollupPropertyDisplayName) + ->setTimeZone($rollupPropertyTimeZone); + + // Call the API and handle any network failures. + try { + /** @var CreateRollupPropertyResponse $response */ + $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $rollupPropertyDisplayName = '[DISPLAY_NAME]'; + $rollupPropertyTimeZone = '[TIME_ZONE]'; + + create_rollup_property_sample($rollupPropertyDisplayName, $rollupPropertyTimeZone); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php new file mode 100644 index 000000000000..9a5113bb2fb9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php @@ -0,0 +1,75 @@ +createRollupPropertySourceLink( + $formattedParent, + $rollupPropertySourceLink + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_rollup_property_source_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php new file mode 100644 index 000000000000..6c10b8c37c1c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php @@ -0,0 +1,72 @@ +createSearchAds360Link( + $formattedParent, + $searchAds360Link + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_search_ads360_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php new file mode 100644 index 000000000000..badedf8676c5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php @@ -0,0 +1,76 @@ +setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); + + // Call the API and handle any network failures. + try { + /** @var SKAdNetworkConversionValueSchema $response */ + $response = $analyticsAdminServiceClient->createSKAdNetworkConversionValueSchema( + $formattedParent, + $skadnetworkConversionValueSchema + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + create_sk_ad_network_conversion_value_schema_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php new file mode 100644 index 000000000000..874685d5197a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php @@ -0,0 +1,92 @@ +setDisplayName($subpropertyDisplayName) + ->setTimeZone($subpropertyTimeZone); + + // Call the API and handle any network failures. + try { + /** @var CreateSubpropertyResponse $response */ + $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $subpropertyDisplayName = '[DISPLAY_NAME]'; + $subpropertyTimeZone = '[TIME_ZONE]'; + + create_subproperty_sample($formattedParent, $subpropertyDisplayName, $subpropertyTimeZone); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php new file mode 100644 index 000000000000..ab07b72becc8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php @@ -0,0 +1,89 @@ +setFilterClauseType($subpropertyEventFilterFilterClausesFilterClauseType) + ->setFilterExpression($subpropertyEventFilterFilterClausesFilterExpression); + $subpropertyEventFilterFilterClauses = [$subpropertyEventFilterClause,]; + $subpropertyEventFilter = (new SubpropertyEventFilter()) + ->setFilterClauses($subpropertyEventFilterFilterClauses); + + // Call the API and handle any network failures. + try { + /** @var SubpropertyEventFilter $response */ + $response = $analyticsAdminServiceClient->createSubpropertyEventFilter( + $formattedParent, + $subpropertyEventFilter + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $subpropertyEventFilterFilterClausesFilterClauseType = FilterClauseType::FILTER_CLAUSE_TYPE_UNSPECIFIED; + + create_subproperty_event_filter_sample( + $formattedParent, + $subpropertyEventFilterFilterClausesFilterClauseType + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php new file mode 100644 index 000000000000..1c4b3511a86c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php @@ -0,0 +1,66 @@ +deleteAccessBinding($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + + delete_access_binding_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php new file mode 100644 index 000000000000..7589ba6b3b1a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php @@ -0,0 +1,76 @@ +deleteAccount($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + delete_account_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php new file mode 100644 index 000000000000..92428c2174d3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php @@ -0,0 +1,66 @@ +deleteAdSenseLink($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + + delete_ad_sense_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php new file mode 100644 index 000000000000..3b7e70b49763 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php @@ -0,0 +1,65 @@ +deleteChannelGroup($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + + delete_channel_group_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php new file mode 100644 index 000000000000..26b2ab4ce47a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php @@ -0,0 +1,52 @@ +deleteConnectedSiteTag(); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConnectedSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php new file mode 100644 index 000000000000..f63a971778ca --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php @@ -0,0 +1,69 @@ +deleteConversionEvent($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::conversionEventName( + '[PROPERTY]', + '[CONVERSION_EVENT]' + ); + + delete_conversion_event_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php new file mode 100644 index 000000000000..5336ec1d2c2b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php @@ -0,0 +1,65 @@ +deleteDataStream($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + delete_data_stream_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php new file mode 100644 index 000000000000..be04f330f343 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php @@ -0,0 +1,68 @@ +deleteDisplayVideo360AdvertiserLink($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName( + '[PROPERTY]', + '[DISPLAY_VIDEO_360_ADVERTISER_LINK]' + ); + + delete_display_video360_advertiser_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php new file mode 100644 index 000000000000..c32a1fc8ab62 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php @@ -0,0 +1,69 @@ +deleteDisplayVideo360AdvertiserLinkProposal($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( + '[PROPERTY]', + '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' + ); + + delete_display_video360_advertiser_link_proposal_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php new file mode 100644 index 000000000000..f4a9155fb269 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php @@ -0,0 +1,69 @@ +deleteEventCreateRule($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::eventCreateRuleName( + '[PROPERTY]', + '[DATA_STREAM]', + '[EVENT_CREATE_RULE]' + ); + + delete_event_create_rule_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php new file mode 100644 index 000000000000..2c32ff745415 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php @@ -0,0 +1,67 @@ +deleteExpandedDataSet($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::expandedDataSetName( + '[PROPERTY]', + '[EXPANDED_DATA_SET]' + ); + + delete_expanded_data_set_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php new file mode 100644 index 000000000000..fbf301adbaf4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php @@ -0,0 +1,65 @@ +deleteFirebaseLink($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + + delete_firebase_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php new file mode 100644 index 000000000000..1d37f9b8698a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php @@ -0,0 +1,64 @@ +deleteGoogleAdsLink($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + + delete_google_ads_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php new file mode 100644 index 000000000000..82981ce0fee2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php @@ -0,0 +1,70 @@ +deleteMeasurementProtocolSecret($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( + '[PROPERTY]', + '[DATA_STREAM]', + '[MEASUREMENT_PROTOCOL_SECRET]' + ); + + delete_measurement_protocol_secret_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php new file mode 100644 index 000000000000..874e07869f82 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php @@ -0,0 +1,78 @@ +deleteProperty($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + delete_property_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php new file mode 100644 index 000000000000..51e5aa8645b9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php @@ -0,0 +1,71 @@ +deleteRollupPropertySourceLink($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::rollupPropertySourceLinkName( + '[PROPERTY]', + '[ROLLUP_PROPERTY_SOURCE_LINK]' + ); + + delete_rollup_property_source_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php new file mode 100644 index 000000000000..5245fbff5904 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php @@ -0,0 +1,68 @@ +deleteSearchAds360Link($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::searchAds360LinkName( + '[PROPERTY]', + '[SEARCH_ADS_360_LINK]' + ); + + delete_search_ads360_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php new file mode 100644 index 000000000000..f9898a116864 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php @@ -0,0 +1,70 @@ +deleteSKAdNetworkConversionValueSchema($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName( + '[PROPERTY]', + '[DATA_STREAM]', + '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]' + ); + + delete_sk_ad_network_conversion_value_schema_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php new file mode 100644 index 000000000000..ea4384826819 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php @@ -0,0 +1,70 @@ +deleteSubpropertyEventFilter($formattedName); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::subpropertyEventFilterName( + '[PROPERTY]', + '[SUB_PROPERTY_EVENT_FILTER]' + ); + + delete_subproperty_event_filter_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php new file mode 100644 index 000000000000..22cd74500ba7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php @@ -0,0 +1,70 @@ +fetchAutomatedGa4ConfigurationOptOut($property); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $property = '[PROPERTY]'; + + fetch_automated_ga4_configuration_opt_out_sample($property); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php new file mode 100644 index 000000000000..30fb78ba6e59 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php @@ -0,0 +1,71 @@ +fetchConnectedGa4Property($formattedProperty); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + fetch_connected_ga4_property_sample($formattedProperty); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchConnectedGa4Property_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php new file mode 100644 index 000000000000..25b04f497edc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php @@ -0,0 +1,69 @@ +getAccessBinding($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + + get_access_binding_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php new file mode 100644 index 000000000000..4ddea55f038a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php @@ -0,0 +1,68 @@ +getAccount($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + get_account_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php new file mode 100644 index 000000000000..ffcbbcfffe32 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php @@ -0,0 +1,68 @@ +getAdSenseLink($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + + get_ad_sense_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php new file mode 100644 index 000000000000..1a9983379e78 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php @@ -0,0 +1,67 @@ +getAttributionSettings($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::attributionSettingsName('[PROPERTY]'); + + get_attribution_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php new file mode 100644 index 000000000000..2d2de136a5d4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php @@ -0,0 +1,69 @@ +getAudience($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::audienceName('[PROPERTY]', '[AUDIENCE]'); + + get_audience_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php new file mode 100644 index 000000000000..031c9d53d222 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php @@ -0,0 +1,68 @@ +getBigQueryLink($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); + + get_big_query_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php new file mode 100644 index 000000000000..03eb16b4ca62 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php @@ -0,0 +1,67 @@ +getChannelGroup($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + + get_channel_group_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php new file mode 100644 index 000000000000..d1d5580979ee --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php @@ -0,0 +1,71 @@ +getConversionEvent($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::conversionEventName( + '[PROPERTY]', + '[CONVERSION_EVENT]' + ); + + get_conversion_event_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php new file mode 100644 index 000000000000..0b4d6f00a9d3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php @@ -0,0 +1,70 @@ +getCustomDimension($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customDimensionName( + '[PROPERTY]', + '[CUSTOM_DIMENSION]' + ); + + get_custom_dimension_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php new file mode 100644 index 000000000000..2f908e731e92 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php @@ -0,0 +1,67 @@ +getCustomMetric($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + + get_custom_metric_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php new file mode 100644 index 000000000000..b71ec0837c24 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php @@ -0,0 +1,72 @@ +getDataRedactionSettings($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataRedactionSettingsName( + '[PROPERTY]', + '[DATA_STREAM]' + ); + + get_data_redaction_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php new file mode 100644 index 000000000000..b65573bb6775 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php @@ -0,0 +1,69 @@ +getDataRetentionSettings($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataRetentionSettingsName('[PROPERTY]'); + + get_data_retention_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php new file mode 100644 index 000000000000..6678115fbc1a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php @@ -0,0 +1,69 @@ +getDataSharingSettings($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataSharingSettingsName('[ACCOUNT]'); + + get_data_sharing_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php new file mode 100644 index 000000000000..525b5120b071 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php @@ -0,0 +1,67 @@ +getDataStream($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + get_data_stream_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php new file mode 100644 index 000000000000..17c763d80ff5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php @@ -0,0 +1,70 @@ +getDisplayVideo360AdvertiserLink($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName( + '[PROPERTY]', + '[DISPLAY_VIDEO_360_ADVERTISER_LINK]' + ); + + get_display_video360_advertiser_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php new file mode 100644 index 000000000000..0fd541c74f7d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php @@ -0,0 +1,70 @@ +getDisplayVideo360AdvertiserLinkProposal($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( + '[PROPERTY]', + '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' + ); + + get_display_video360_advertiser_link_proposal_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php new file mode 100644 index 000000000000..4a03648889f5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php @@ -0,0 +1,74 @@ +getEnhancedMeasurementSettings($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::enhancedMeasurementSettingsName( + '[PROPERTY]', + '[DATA_STREAM]' + ); + + get_enhanced_measurement_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php new file mode 100644 index 000000000000..ee44e600d258 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php @@ -0,0 +1,71 @@ +getEventCreateRule($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::eventCreateRuleName( + '[PROPERTY]', + '[DATA_STREAM]', + '[EVENT_CREATE_RULE]' + ); + + get_event_create_rule_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php new file mode 100644 index 000000000000..3bfc959fcb0a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php @@ -0,0 +1,70 @@ +getExpandedDataSet($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::expandedDataSetName( + '[PROPERTY]', + '[EXPANDED_DATA_SET]' + ); + + get_expanded_data_set_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php new file mode 100644 index 000000000000..c6f0ec329d47 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php @@ -0,0 +1,70 @@ +getGlobalSiteTag($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); + + get_global_site_tag_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php new file mode 100644 index 000000000000..e14ea7525808 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php @@ -0,0 +1,67 @@ +getGoogleSignalsSettings($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::googleSignalsSettingsName('[PROPERTY]'); + + get_google_signals_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php new file mode 100644 index 000000000000..19b82e0dc7d6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php @@ -0,0 +1,72 @@ +getMeasurementProtocolSecret($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( + '[PROPERTY]', + '[DATA_STREAM]', + '[MEASUREMENT_PROTOCOL_SECRET]' + ); + + get_measurement_protocol_secret_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php new file mode 100644 index 000000000000..39fffe4f51d7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php @@ -0,0 +1,68 @@ +getProperty($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + get_property_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php new file mode 100644 index 000000000000..360dc594c1dc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php @@ -0,0 +1,74 @@ +getRollupPropertySourceLink($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::rollupPropertySourceLinkName( + '[PROPERTY]', + '[ROLLUP_PROPERTY_SOURCE_LINK]' + ); + + get_rollup_property_source_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php new file mode 100644 index 000000000000..65b2954f0137 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php @@ -0,0 +1,70 @@ +getSearchAds360Link($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::searchAds360LinkName( + '[PROPERTY]', + '[SEARCH_ADS_360_LINK]' + ); + + get_search_ads360_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php new file mode 100644 index 000000000000..c8aaaea73de6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php @@ -0,0 +1,72 @@ +getSKAdNetworkConversionValueSchema($formattedName); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName( + '[PROPERTY]', + '[DATA_STREAM]', + '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]' + ); + + get_sk_ad_network_conversion_value_schema_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php new file mode 100644 index 000000000000..a57f709525d1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php @@ -0,0 +1,73 @@ +listAccessBindings($formattedParent); + + /** @var AccessBinding $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + list_access_bindings_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php new file mode 100644 index 000000000000..8341fe0b72b5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php @@ -0,0 +1,58 @@ +listAccountSummaries(); + + /** @var AccountSummary $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php new file mode 100644 index 000000000000..f8bc51dd8d7a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php @@ -0,0 +1,62 @@ +listAccounts(); + + /** @var Account $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php new file mode 100644 index 000000000000..817e91fb7265 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php @@ -0,0 +1,73 @@ +listAdSenseLinks($formattedParent); + + /** @var AdSenseLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_ad_sense_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php new file mode 100644 index 000000000000..d99f209cdd29 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php @@ -0,0 +1,73 @@ +listAudiences($formattedParent); + + /** @var Audience $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_audiences_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php new file mode 100644 index 000000000000..39ca3b2bae39 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php @@ -0,0 +1,73 @@ +listBigQueryLinks($formattedParent); + + /** @var BigQueryLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_big_query_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php new file mode 100644 index 000000000000..3ba78dd7ddcd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php @@ -0,0 +1,72 @@ +listChannelGroups($formattedParent); + + /** @var ChannelGroup $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_channel_groups_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php new file mode 100644 index 000000000000..05523c46073c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php @@ -0,0 +1,55 @@ +listConnectedSiteTags(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConnectedSiteTags_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php new file mode 100644 index 000000000000..af035004c593 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php @@ -0,0 +1,74 @@ +listConversionEvents($formattedParent); + + /** @var ConversionEvent $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_conversion_events_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php new file mode 100644 index 000000000000..054ba7247dfa --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php @@ -0,0 +1,71 @@ +listCustomDimensions($formattedParent); + + /** @var CustomDimension $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_custom_dimensions_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php new file mode 100644 index 000000000000..4339adc7c552 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php @@ -0,0 +1,71 @@ +listCustomMetrics($formattedParent); + + /** @var CustomMetric $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_custom_metrics_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php new file mode 100644 index 000000000000..0ed8a9236839 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php @@ -0,0 +1,71 @@ +listDataStreams($formattedParent); + + /** @var DataStream $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_data_streams_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php new file mode 100644 index 000000000000..76e5e010a515 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php @@ -0,0 +1,73 @@ +listDisplayVideo360AdvertiserLinkProposals( + $formattedParent + ); + + /** @var DisplayVideo360AdvertiserLinkProposal $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_display_video360_advertiser_link_proposals_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php new file mode 100644 index 000000000000..ee4ad24918f1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php @@ -0,0 +1,71 @@ +listDisplayVideo360AdvertiserLinks($formattedParent); + + /** @var DisplayVideo360AdvertiserLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_display_video360_advertiser_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php new file mode 100644 index 000000000000..6ef629c82357 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php @@ -0,0 +1,71 @@ +listEventCreateRules($formattedParent); + + /** @var EventCreateRule $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + list_event_create_rules_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php new file mode 100644 index 000000000000..34017fdbd675 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php @@ -0,0 +1,71 @@ +listExpandedDataSets($formattedParent); + + /** @var ExpandedDataSet $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_expanded_data_sets_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php new file mode 100644 index 000000000000..2ba1aea8db2b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php @@ -0,0 +1,73 @@ +listFirebaseLinks($formattedParent); + + /** @var FirebaseLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_firebase_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php new file mode 100644 index 000000000000..2250ebf87ec5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php @@ -0,0 +1,71 @@ +listGoogleAdsLinks($formattedParent); + + /** @var GoogleAdsLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_google_ads_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php new file mode 100644 index 000000000000..94675f325b59 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php @@ -0,0 +1,74 @@ +listMeasurementProtocolSecrets($formattedParent); + + /** @var MeasurementProtocolSecret $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + list_measurement_protocol_secrets_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php new file mode 100644 index 000000000000..7a6861ccd6c6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php @@ -0,0 +1,90 @@ +listProperties($filter); + + /** @var Property $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $filter = '[FILTER]'; + + list_properties_sample($filter); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php new file mode 100644 index 000000000000..2d5d349e4ba9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php @@ -0,0 +1,74 @@ +listRollupPropertySourceLinks($formattedParent); + + /** @var RollupPropertySourceLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_rollup_property_source_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php new file mode 100644 index 000000000000..f311ba57a28a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php @@ -0,0 +1,71 @@ +listSearchAds360Links($formattedParent); + + /** @var SearchAds360Link $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_search_ads360_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php new file mode 100644 index 000000000000..c8a408e95f44 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php @@ -0,0 +1,75 @@ +listSKAdNetworkConversionValueSchemas($formattedParent); + + /** @var SKAdNetworkConversionValueSchema $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + list_sk_ad_network_conversion_value_schemas_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php new file mode 100644 index 000000000000..1b5253e8ab73 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php @@ -0,0 +1,53 @@ +provisionAccountTicket(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php new file mode 100644 index 000000000000..e51b5ba41a99 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php @@ -0,0 +1,65 @@ +runAccessReport(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php new file mode 100644 index 000000000000..4e11203d3a8b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php @@ -0,0 +1,73 @@ +searchChangeHistoryEvents($formattedAccount); + + /** @var ChangeHistoryEvent $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedAccount = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + search_change_history_events_sample($formattedAccount); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php new file mode 100644 index 000000000000..fbd436346af7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php @@ -0,0 +1,70 @@ +setAutomatedGa4ConfigurationOptOut($property); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $property = '[PROPERTY]'; + + set_automated_ga4_configuration_opt_out_sample($property); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php new file mode 100644 index 000000000000..4d7af7cf0580 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php @@ -0,0 +1,56 @@ +updateAccessBinding($accessBinding); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php new file mode 100644 index 000000000000..91a3187c8f92 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php @@ -0,0 +1,71 @@ +setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var Account $response */ + $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $accountDisplayName = '[DISPLAY_NAME]'; + + update_account_sample($accountDisplayName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php new file mode 100644 index 000000000000..aded85949d31 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php @@ -0,0 +1,106 @@ +setAcquisitionConversionEventLookbackWindow( + $attributionSettingsAcquisitionConversionEventLookbackWindow + ) + ->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow) + ->setReportingAttributionModel($attributionSettingsReportingAttributionModel) + ->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var AttributionSettings $response */ + $response = $analyticsAdminServiceClient->updateAttributionSettings( + $attributionSettings, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; + $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; + + update_attribution_settings_sample( + $attributionSettingsAcquisitionConversionEventLookbackWindow, + $attributionSettingsOtherConversionEventLookbackWindow, + $attributionSettingsReportingAttributionModel, + $attributionSettingsAdsWebConversionDataExportScope + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php new file mode 100644 index 000000000000..8d3c396a13c1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php @@ -0,0 +1,95 @@ +setClauseType($audienceFilterClausesClauseType); + $audienceFilterClauses = [$audienceFilterClause,]; + $audience = (new Audience()) + ->setDisplayName($audienceDisplayName) + ->setDescription($audienceDescription) + ->setMembershipDurationDays($audienceMembershipDurationDays) + ->setFilterClauses($audienceFilterClauses); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var Audience $response */ + $response = $analyticsAdminServiceClient->updateAudience($audience, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $audienceDisplayName = '[DISPLAY_NAME]'; + $audienceDescription = '[DESCRIPTION]'; + $audienceMembershipDurationDays = 0; + $audienceFilterClausesClauseType = AudienceClauseType::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; + + update_audience_sample( + $audienceDisplayName, + $audienceDescription, + $audienceMembershipDurationDays, + $audienceFilterClausesClauseType + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php new file mode 100644 index 000000000000..5563889541ea --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php @@ -0,0 +1,84 @@ +setDisplayName($channelGroupGroupingRuleDisplayName) + ->setExpression($channelGroupGroupingRuleExpression); + $channelGroupGroupingRule = [$groupingRule,]; + $channelGroup = (new ChannelGroup()) + ->setDisplayName($channelGroupDisplayName) + ->setGroupingRule($channelGroupGroupingRule); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var ChannelGroup $response */ + $response = $analyticsAdminServiceClient->updateChannelGroup($channelGroup, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $channelGroupDisplayName = '[DISPLAY_NAME]'; + $channelGroupGroupingRuleDisplayName = '[DISPLAY_NAME]'; + + update_channel_group_sample($channelGroupDisplayName, $channelGroupGroupingRuleDisplayName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php new file mode 100644 index 000000000000..9f4cd8257263 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php @@ -0,0 +1,58 @@ +updateConversionEvent($conversionEvent, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php new file mode 100644 index 000000000000..c107805de780 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php @@ -0,0 +1,57 @@ +updateCustomDimension($updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php new file mode 100644 index 000000000000..6ef2d2f32155 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php @@ -0,0 +1,57 @@ +updateCustomMetric($updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php new file mode 100644 index 000000000000..75558e68006a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php @@ -0,0 +1,61 @@ +updateDataRedactionSettings( + $dataRedactionSettings, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php new file mode 100644 index 000000000000..dc3b922f6d52 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php @@ -0,0 +1,61 @@ +updateDataRetentionSettings( + $dataRetentionSettings, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php new file mode 100644 index 000000000000..72ce16ea312e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php @@ -0,0 +1,57 @@ +updateDataStream($updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php new file mode 100644 index 000000000000..1e80dddd7ce1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php @@ -0,0 +1,57 @@ +updateDisplayVideo360AdvertiserLink($updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php new file mode 100644 index 000000000000..6ff580b6b50a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php @@ -0,0 +1,78 @@ +setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var EnhancedMeasurementSettings $response */ + $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings( + $enhancedMeasurementSettings, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $enhancedMeasurementSettingsSearchQueryParameter = '[SEARCH_QUERY_PARAMETER]'; + + update_enhanced_measurement_settings_sample($enhancedMeasurementSettingsSearchQueryParameter); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php new file mode 100644 index 000000000000..52355eb87566 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php @@ -0,0 +1,106 @@ +setField($eventCreateRuleEventConditionsField) + ->setComparisonType($eventCreateRuleEventConditionsComparisonType) + ->setValue($eventCreateRuleEventConditionsValue); + $eventCreateRuleEventConditions = [$matchingCondition,]; + $eventCreateRule = (new EventCreateRule()) + ->setDestinationEvent($eventCreateRuleDestinationEvent) + ->setEventConditions($eventCreateRuleEventConditions); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var EventCreateRule $response */ + $response = $analyticsAdminServiceClient->updateEventCreateRule($eventCreateRule, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $eventCreateRuleDestinationEvent = '[DESTINATION_EVENT]'; + $eventCreateRuleEventConditionsField = '[FIELD]'; + $eventCreateRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; + $eventCreateRuleEventConditionsValue = '[VALUE]'; + + update_event_create_rule_sample( + $eventCreateRuleDestinationEvent, + $eventCreateRuleEventConditionsField, + $eventCreateRuleEventConditionsComparisonType, + $eventCreateRuleEventConditionsValue + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php new file mode 100644 index 000000000000..121f568e4558 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php @@ -0,0 +1,72 @@ +setDisplayName($expandedDataSetDisplayName); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var ExpandedDataSet $response */ + $response = $analyticsAdminServiceClient->updateExpandedDataSet($expandedDataSet, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $expandedDataSetDisplayName = '[DISPLAY_NAME]'; + + update_expanded_data_set_sample($expandedDataSetDisplayName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php new file mode 100644 index 000000000000..bd94ad4e2fc1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php @@ -0,0 +1,57 @@ +updateGoogleAdsLink($updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php new file mode 100644 index 000000000000..21fd1a8d31fc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php @@ -0,0 +1,61 @@ +updateGoogleSignalsSettings( + $googleSignalsSettings, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php new file mode 100644 index 000000000000..f65926bea784 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php @@ -0,0 +1,75 @@ +setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var MeasurementProtocolSecret $response */ + $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret( + $measurementProtocolSecret, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; + + update_measurement_protocol_secret_sample($measurementProtocolSecretDisplayName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php new file mode 100644 index 000000000000..656ec640b61e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php @@ -0,0 +1,84 @@ +setDisplayName($propertyDisplayName) + ->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var Property $response */ + $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $propertyDisplayName = '[DISPLAY_NAME]'; + $propertyTimeZone = '[TIME_ZONE]'; + + update_property_sample($propertyDisplayName, $propertyTimeZone); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php new file mode 100644 index 000000000000..6216e6973279 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php @@ -0,0 +1,57 @@ +updateSearchAds360Link($updateMask); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php new file mode 100644 index 000000000000..146716e0bfe6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php @@ -0,0 +1,64 @@ +setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); + $updateMask = new FieldMask(); + + // Call the API and handle any network failures. + try { + /** @var SKAdNetworkConversionValueSchema $response */ + $response = $analyticsAdminServiceClient->updateSKAdNetworkConversionValueSchema( + $skadnetworkConversionValueSchema, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php new file mode 100644 index 000000000000..b971a59cb2c3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php @@ -0,0 +1,36 @@ +propertyName('[PROPERTY]'); + * $acknowledgement = 'acknowledgement'; + * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + * + * @experimental + */ +class AnalyticsAdminServiceGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.analytics.admin.v1alpha.AnalyticsAdminService'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/analytics.edit', + 'https://www.googleapis.com/auth/analytics.manage.users', + 'https://www.googleapis.com/auth/analytics.manage.users.readonly', + 'https://www.googleapis.com/auth/analytics.readonly', + ]; + + private static $accessBindingNameTemplate; + + private static $accountNameTemplate; + + private static $accountAccessBindingNameTemplate; + + private static $adSenseLinkNameTemplate; + + private static $attributionSettingsNameTemplate; + + private static $audienceNameTemplate; + + private static $bigQueryLinkNameTemplate; + + private static $channelGroupNameTemplate; + + private static $conversionEventNameTemplate; + + private static $customDimensionNameTemplate; + + private static $customMetricNameTemplate; + + private static $dataRedactionSettingsNameTemplate; + + private static $dataRetentionSettingsNameTemplate; + + private static $dataSharingSettingsNameTemplate; + + private static $dataStreamNameTemplate; + + private static $displayVideo360AdvertiserLinkNameTemplate; + + private static $displayVideo360AdvertiserLinkProposalNameTemplate; + + private static $enhancedMeasurementSettingsNameTemplate; + + private static $eventCreateRuleNameTemplate; + + private static $expandedDataSetNameTemplate; + + private static $firebaseLinkNameTemplate; + + private static $globalSiteTagNameTemplate; + + private static $googleAdsLinkNameTemplate; + + private static $googleSignalsSettingsNameTemplate; + + private static $measurementProtocolSecretNameTemplate; + + private static $propertyNameTemplate; + + private static $propertyAccessBindingNameTemplate; + + private static $rollupPropertySourceLinkNameTemplate; + + private static $sKAdNetworkConversionValueSchemaNameTemplate; + + private static $searchAds360LinkNameTemplate; + + private static $subpropertyEventFilterNameTemplate; + + private static $pathTemplateMap; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', + ], + ], + ]; + } + + private static function getAccessBindingNameTemplate() + { + if (self::$accessBindingNameTemplate == null) { + self::$accessBindingNameTemplate = new PathTemplate('accounts/{account}/accessBindings/{access_binding}'); + } + + return self::$accessBindingNameTemplate; + } + + private static function getAccountNameTemplate() + { + if (self::$accountNameTemplate == null) { + self::$accountNameTemplate = new PathTemplate('accounts/{account}'); + } + + return self::$accountNameTemplate; + } + + private static function getAccountAccessBindingNameTemplate() + { + if (self::$accountAccessBindingNameTemplate == null) { + self::$accountAccessBindingNameTemplate = new PathTemplate('accounts/{account}/accessBindings/{access_binding}'); + } + + return self::$accountAccessBindingNameTemplate; + } + + private static function getAdSenseLinkNameTemplate() + { + if (self::$adSenseLinkNameTemplate == null) { + self::$adSenseLinkNameTemplate = new PathTemplate('properties/{property}/adSenseLinks/{adsense_link}'); + } + + return self::$adSenseLinkNameTemplate; + } + + private static function getAttributionSettingsNameTemplate() + { + if (self::$attributionSettingsNameTemplate == null) { + self::$attributionSettingsNameTemplate = new PathTemplate('properties/{property}/attributionSettings'); + } + + return self::$attributionSettingsNameTemplate; + } + + private static function getAudienceNameTemplate() + { + if (self::$audienceNameTemplate == null) { + self::$audienceNameTemplate = new PathTemplate('properties/{property}/audiences/{audience}'); + } + + return self::$audienceNameTemplate; + } + + private static function getBigQueryLinkNameTemplate() + { + if (self::$bigQueryLinkNameTemplate == null) { + self::$bigQueryLinkNameTemplate = new PathTemplate('properties/{property}/bigQueryLinks/{bigquery_link}'); + } + + return self::$bigQueryLinkNameTemplate; + } + + private static function getChannelGroupNameTemplate() + { + if (self::$channelGroupNameTemplate == null) { + self::$channelGroupNameTemplate = new PathTemplate('properties/{property}/channelGroups/{channel_group}'); + } + + return self::$channelGroupNameTemplate; + } + + private static function getConversionEventNameTemplate() + { + if (self::$conversionEventNameTemplate == null) { + self::$conversionEventNameTemplate = new PathTemplate('properties/{property}/conversionEvents/{conversion_event}'); + } + + return self::$conversionEventNameTemplate; + } + + private static function getCustomDimensionNameTemplate() + { + if (self::$customDimensionNameTemplate == null) { + self::$customDimensionNameTemplate = new PathTemplate('properties/{property}/customDimensions/{custom_dimension}'); + } + + return self::$customDimensionNameTemplate; + } + + private static function getCustomMetricNameTemplate() + { + if (self::$customMetricNameTemplate == null) { + self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics/{custom_metric}'); + } + + return self::$customMetricNameTemplate; + } + + private static function getDataRedactionSettingsNameTemplate() + { + if (self::$dataRedactionSettingsNameTemplate == null) { + self::$dataRedactionSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/dataRedactionSettings'); + } + + return self::$dataRedactionSettingsNameTemplate; + } + + private static function getDataRetentionSettingsNameTemplate() + { + if (self::$dataRetentionSettingsNameTemplate == null) { + self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings'); + } + + return self::$dataRetentionSettingsNameTemplate; + } + + private static function getDataSharingSettingsNameTemplate() + { + if (self::$dataSharingSettingsNameTemplate == null) { + self::$dataSharingSettingsNameTemplate = new PathTemplate('accounts/{account}/dataSharingSettings'); + } + + return self::$dataSharingSettingsNameTemplate; + } + + private static function getDataStreamNameTemplate() + { + if (self::$dataStreamNameTemplate == null) { + self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}'); + } + + return self::$dataStreamNameTemplate; + } + + private static function getDisplayVideo360AdvertiserLinkNameTemplate() + { + if (self::$displayVideo360AdvertiserLinkNameTemplate == null) { + self::$displayVideo360AdvertiserLinkNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}'); + } + + return self::$displayVideo360AdvertiserLinkNameTemplate; + } + + private static function getDisplayVideo360AdvertiserLinkProposalNameTemplate() + { + if (self::$displayVideo360AdvertiserLinkProposalNameTemplate == null) { + self::$displayVideo360AdvertiserLinkProposalNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}'); + } + + return self::$displayVideo360AdvertiserLinkProposalNameTemplate; + } + + private static function getEnhancedMeasurementSettingsNameTemplate() + { + if (self::$enhancedMeasurementSettingsNameTemplate == null) { + self::$enhancedMeasurementSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings'); + } + + return self::$enhancedMeasurementSettingsNameTemplate; + } + + private static function getEventCreateRuleNameTemplate() + { + if (self::$eventCreateRuleNameTemplate == null) { + self::$eventCreateRuleNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}'); + } + + return self::$eventCreateRuleNameTemplate; + } + + private static function getExpandedDataSetNameTemplate() + { + if (self::$expandedDataSetNameTemplate == null) { + self::$expandedDataSetNameTemplate = new PathTemplate('properties/{property}/expandedDataSets/{expanded_data_set}'); + } + + return self::$expandedDataSetNameTemplate; + } + + private static function getFirebaseLinkNameTemplate() + { + if (self::$firebaseLinkNameTemplate == null) { + self::$firebaseLinkNameTemplate = new PathTemplate('properties/{property}/firebaseLinks/{firebase_link}'); + } + + return self::$firebaseLinkNameTemplate; + } + + private static function getGlobalSiteTagNameTemplate() + { + if (self::$globalSiteTagNameTemplate == null) { + self::$globalSiteTagNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/globalSiteTag'); + } + + return self::$globalSiteTagNameTemplate; + } + + private static function getGoogleAdsLinkNameTemplate() + { + if (self::$googleAdsLinkNameTemplate == null) { + self::$googleAdsLinkNameTemplate = new PathTemplate('properties/{property}/googleAdsLinks/{google_ads_link}'); + } + + return self::$googleAdsLinkNameTemplate; + } + + private static function getGoogleSignalsSettingsNameTemplate() + { + if (self::$googleSignalsSettingsNameTemplate == null) { + self::$googleSignalsSettingsNameTemplate = new PathTemplate('properties/{property}/googleSignalsSettings'); + } + + return self::$googleSignalsSettingsNameTemplate; + } + + private static function getMeasurementProtocolSecretNameTemplate() + { + if (self::$measurementProtocolSecretNameTemplate == null) { + self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}'); + } + + return self::$measurementProtocolSecretNameTemplate; + } + + private static function getPropertyNameTemplate() + { + if (self::$propertyNameTemplate == null) { + self::$propertyNameTemplate = new PathTemplate('properties/{property}'); + } + + return self::$propertyNameTemplate; + } + + private static function getPropertyAccessBindingNameTemplate() + { + if (self::$propertyAccessBindingNameTemplate == null) { + self::$propertyAccessBindingNameTemplate = new PathTemplate('properties/{property}/accessBindings/{access_binding}'); + } + + return self::$propertyAccessBindingNameTemplate; + } + + private static function getRollupPropertySourceLinkNameTemplate() + { + if (self::$rollupPropertySourceLinkNameTemplate == null) { + self::$rollupPropertySourceLinkNameTemplate = new PathTemplate('properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}'); + } + + return self::$rollupPropertySourceLinkNameTemplate; + } + + private static function getSKAdNetworkConversionValueSchemaNameTemplate() + { + if (self::$sKAdNetworkConversionValueSchemaNameTemplate == null) { + self::$sKAdNetworkConversionValueSchemaNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}'); + } + + return self::$sKAdNetworkConversionValueSchemaNameTemplate; + } + + private static function getSearchAds360LinkNameTemplate() + { + if (self::$searchAds360LinkNameTemplate == null) { + self::$searchAds360LinkNameTemplate = new PathTemplate('properties/{property}/searchAds360Links/{search_ads_360_link}'); + } + + return self::$searchAds360LinkNameTemplate; + } + + private static function getSubpropertyEventFilterNameTemplate() + { + if (self::$subpropertyEventFilterNameTemplate == null) { + self::$subpropertyEventFilterNameTemplate = new PathTemplate('properties/{property}/subpropertyEventFilters/{sub_property_event_filter}'); + } + + return self::$subpropertyEventFilterNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'accessBinding' => self::getAccessBindingNameTemplate(), + 'account' => self::getAccountNameTemplate(), + 'accountAccessBinding' => self::getAccountAccessBindingNameTemplate(), + 'adSenseLink' => self::getAdSenseLinkNameTemplate(), + 'attributionSettings' => self::getAttributionSettingsNameTemplate(), + 'audience' => self::getAudienceNameTemplate(), + 'bigQueryLink' => self::getBigQueryLinkNameTemplate(), + 'channelGroup' => self::getChannelGroupNameTemplate(), + 'conversionEvent' => self::getConversionEventNameTemplate(), + 'customDimension' => self::getCustomDimensionNameTemplate(), + 'customMetric' => self::getCustomMetricNameTemplate(), + 'dataRedactionSettings' => self::getDataRedactionSettingsNameTemplate(), + 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), + 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), + 'dataStream' => self::getDataStreamNameTemplate(), + 'displayVideo360AdvertiserLink' => self::getDisplayVideo360AdvertiserLinkNameTemplate(), + 'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(), + 'enhancedMeasurementSettings' => self::getEnhancedMeasurementSettingsNameTemplate(), + 'eventCreateRule' => self::getEventCreateRuleNameTemplate(), + 'expandedDataSet' => self::getExpandedDataSetNameTemplate(), + 'firebaseLink' => self::getFirebaseLinkNameTemplate(), + 'globalSiteTag' => self::getGlobalSiteTagNameTemplate(), + 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), + 'googleSignalsSettings' => self::getGoogleSignalsSettingsNameTemplate(), + 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), + 'property' => self::getPropertyNameTemplate(), + 'propertyAccessBinding' => self::getPropertyAccessBindingNameTemplate(), + 'rollupPropertySourceLink' => self::getRollupPropertySourceLinkNameTemplate(), + 'sKAdNetworkConversionValueSchema' => self::getSKAdNetworkConversionValueSchemaNameTemplate(), + 'searchAds360Link' => self::getSearchAds360LinkNameTemplate(), + 'subpropertyEventFilter' => self::getSubpropertyEventFilterNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * access_binding resource. + * + * @param string $account + * @param string $accessBinding + * + * @return string The formatted access_binding resource. + * + * @experimental + */ + public static function accessBindingName($account, $accessBinding) + { + return self::getAccessBindingNameTemplate()->render([ + 'account' => $account, + 'access_binding' => $accessBinding, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a account + * resource. + * + * @param string $account + * + * @return string The formatted account resource. + * + * @experimental + */ + public static function accountName($account) + { + return self::getAccountNameTemplate()->render([ + 'account' => $account, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * account_access_binding resource. + * + * @param string $account + * @param string $accessBinding + * + * @return string The formatted account_access_binding resource. + * + * @experimental + */ + public static function accountAccessBindingName($account, $accessBinding) + { + return self::getAccountAccessBindingNameTemplate()->render([ + 'account' => $account, + 'access_binding' => $accessBinding, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * ad_sense_link resource. + * + * @param string $property + * @param string $adsenseLink + * + * @return string The formatted ad_sense_link resource. + * + * @experimental + */ + public static function adSenseLinkName($property, $adsenseLink) + { + return self::getAdSenseLinkNameTemplate()->render([ + 'property' => $property, + 'adsense_link' => $adsenseLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * attribution_settings resource. + * + * @param string $property + * + * @return string The formatted attribution_settings resource. + * + * @experimental + */ + public static function attributionSettingsName($property) + { + return self::getAttributionSettingsNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a audience + * resource. + * + * @param string $property + * @param string $audience + * + * @return string The formatted audience resource. + * + * @experimental + */ + public static function audienceName($property, $audience) + { + return self::getAudienceNameTemplate()->render([ + 'property' => $property, + 'audience' => $audience, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * big_query_link resource. + * + * @param string $property + * @param string $bigqueryLink + * + * @return string The formatted big_query_link resource. + * + * @experimental + */ + public static function bigQueryLinkName($property, $bigqueryLink) + { + return self::getBigQueryLinkNameTemplate()->render([ + 'property' => $property, + 'bigquery_link' => $bigqueryLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * channel_group resource. + * + * @param string $property + * @param string $channelGroup + * + * @return string The formatted channel_group resource. + * + * @experimental + */ + public static function channelGroupName($property, $channelGroup) + { + return self::getChannelGroupNameTemplate()->render([ + 'property' => $property, + 'channel_group' => $channelGroup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * conversion_event resource. + * + * @param string $property + * @param string $conversionEvent + * + * @return string The formatted conversion_event resource. + * + * @experimental + */ + public static function conversionEventName($property, $conversionEvent) + { + return self::getConversionEventNameTemplate()->render([ + 'property' => $property, + 'conversion_event' => $conversionEvent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_dimension resource. + * + * @param string $property + * @param string $customDimension + * + * @return string The formatted custom_dimension resource. + * + * @experimental + */ + public static function customDimensionName($property, $customDimension) + { + return self::getCustomDimensionNameTemplate()->render([ + 'property' => $property, + 'custom_dimension' => $customDimension, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_metric resource. + * + * @param string $property + * @param string $customMetric + * + * @return string The formatted custom_metric resource. + * + * @experimental + */ + public static function customMetricName($property, $customMetric) + { + return self::getCustomMetricNameTemplate()->render([ + 'property' => $property, + 'custom_metric' => $customMetric, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_redaction_settings resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted data_redaction_settings resource. + * + * @experimental + */ + public static function dataRedactionSettingsName($property, $dataStream) + { + return self::getDataRedactionSettingsNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_retention_settings resource. + * + * @param string $property + * + * @return string The formatted data_retention_settings resource. + * + * @experimental + */ + public static function dataRetentionSettingsName($property) + { + return self::getDataRetentionSettingsNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_sharing_settings resource. + * + * @param string $account + * + * @return string The formatted data_sharing_settings resource. + * + * @experimental + */ + public static function dataSharingSettingsName($account) + { + return self::getDataSharingSettingsNameTemplate()->render([ + 'account' => $account, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_stream + * resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted data_stream resource. + * + * @experimental + */ + public static function dataStreamName($property, $dataStream) + { + return self::getDataStreamNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * display_video360_advertiser_link resource. + * + * @param string $property + * @param string $displayVideo360AdvertiserLink + * + * @return string The formatted display_video360_advertiser_link resource. + * + * @experimental + */ + public static function displayVideo360AdvertiserLinkName($property, $displayVideo360AdvertiserLink) + { + return self::getDisplayVideo360AdvertiserLinkNameTemplate()->render([ + 'property' => $property, + 'display_video_360_advertiser_link' => $displayVideo360AdvertiserLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * display_video360_advertiser_link_proposal resource. + * + * @param string $property + * @param string $displayVideo360AdvertiserLinkProposal + * + * @return string The formatted display_video360_advertiser_link_proposal resource. + * + * @experimental + */ + public static function displayVideo360AdvertiserLinkProposalName($property, $displayVideo360AdvertiserLinkProposal) + { + return self::getDisplayVideo360AdvertiserLinkProposalNameTemplate()->render([ + 'property' => $property, + 'display_video_360_advertiser_link_proposal' => $displayVideo360AdvertiserLinkProposal, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * enhanced_measurement_settings resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted enhanced_measurement_settings resource. + * + * @experimental + */ + public static function enhancedMeasurementSettingsName($property, $dataStream) + { + return self::getEnhancedMeasurementSettingsNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * event_create_rule resource. + * + * @param string $property + * @param string $dataStream + * @param string $eventCreateRule + * + * @return string The formatted event_create_rule resource. + * + * @experimental + */ + public static function eventCreateRuleName($property, $dataStream, $eventCreateRule) + { + return self::getEventCreateRuleNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + 'event_create_rule' => $eventCreateRule, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * expanded_data_set resource. + * + * @param string $property + * @param string $expandedDataSet + * + * @return string The formatted expanded_data_set resource. + * + * @experimental + */ + public static function expandedDataSetName($property, $expandedDataSet) + { + return self::getExpandedDataSetNameTemplate()->render([ + 'property' => $property, + 'expanded_data_set' => $expandedDataSet, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * firebase_link resource. + * + * @param string $property + * @param string $firebaseLink + * + * @return string The formatted firebase_link resource. + * + * @experimental + */ + public static function firebaseLinkName($property, $firebaseLink) + { + return self::getFirebaseLinkNameTemplate()->render([ + 'property' => $property, + 'firebase_link' => $firebaseLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * global_site_tag resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted global_site_tag resource. + * + * @experimental + */ + public static function globalSiteTagName($property, $dataStream) + { + return self::getGlobalSiteTagNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * google_ads_link resource. + * + * @param string $property + * @param string $googleAdsLink + * + * @return string The formatted google_ads_link resource. + * + * @experimental + */ + public static function googleAdsLinkName($property, $googleAdsLink) + { + return self::getGoogleAdsLinkNameTemplate()->render([ + 'property' => $property, + 'google_ads_link' => $googleAdsLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * google_signals_settings resource. + * + * @param string $property + * + * @return string The formatted google_signals_settings resource. + * + * @experimental + */ + public static function googleSignalsSettingsName($property) + { + return self::getGoogleSignalsSettingsNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * measurement_protocol_secret resource. + * + * @param string $property + * @param string $dataStream + * @param string $measurementProtocolSecret + * + * @return string The formatted measurement_protocol_secret resource. + * + * @experimental + */ + public static function measurementProtocolSecretName($property, $dataStream, $measurementProtocolSecret) + { + return self::getMeasurementProtocolSecretNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + 'measurement_protocol_secret' => $measurementProtocolSecret, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a property + * resource. + * + * @param string $property + * + * @return string The formatted property resource. + * + * @experimental + */ + public static function propertyName($property) + { + return self::getPropertyNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * property_access_binding resource. + * + * @param string $property + * @param string $accessBinding + * + * @return string The formatted property_access_binding resource. + * + * @experimental + */ + public static function propertyAccessBindingName($property, $accessBinding) + { + return self::getPropertyAccessBindingNameTemplate()->render([ + 'property' => $property, + 'access_binding' => $accessBinding, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * rollup_property_source_link resource. + * + * @param string $property + * @param string $rollupPropertySourceLink + * + * @return string The formatted rollup_property_source_link resource. + * + * @experimental + */ + public static function rollupPropertySourceLinkName($property, $rollupPropertySourceLink) + { + return self::getRollupPropertySourceLinkNameTemplate()->render([ + 'property' => $property, + 'rollup_property_source_link' => $rollupPropertySourceLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * sk_ad_network_conversion_value_schema resource. + * + * @param string $property + * @param string $dataStream + * @param string $skadnetworkConversionValueSchema + * + * @return string The formatted sk_ad_network_conversion_value_schema resource. + * + * @experimental + */ + public static function sKAdNetworkConversionValueSchemaName($property, $dataStream, $skadnetworkConversionValueSchema) + { + return self::getSKAdNetworkConversionValueSchemaNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + 'skadnetwork_conversion_value_schema' => $skadnetworkConversionValueSchema, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * search_ads360_link resource. + * + * @param string $property + * @param string $searchAds360Link + * + * @return string The formatted search_ads360_link resource. + * + * @experimental + */ + public static function searchAds360LinkName($property, $searchAds360Link) + { + return self::getSearchAds360LinkNameTemplate()->render([ + 'property' => $property, + 'search_ads_360_link' => $searchAds360Link, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * subproperty_event_filter resource. + * + * @param string $property + * @param string $subPropertyEventFilter + * + * @return string The formatted subproperty_event_filter resource. + * + * @experimental + */ + public static function subpropertyEventFilterName($property, $subPropertyEventFilter) + { + return self::getSubpropertyEventFilterNameTemplate()->render([ + 'property' => $property, + 'sub_property_event_filter' => $subPropertyEventFilter, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - accessBinding: accounts/{account}/accessBindings/{access_binding} + * - account: accounts/{account} + * - accountAccessBinding: accounts/{account}/accessBindings/{access_binding} + * - adSenseLink: properties/{property}/adSenseLinks/{adsense_link} + * - attributionSettings: properties/{property}/attributionSettings + * - audience: properties/{property}/audiences/{audience} + * - bigQueryLink: properties/{property}/bigQueryLinks/{bigquery_link} + * - channelGroup: properties/{property}/channelGroups/{channel_group} + * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} + * - customDimension: properties/{property}/customDimensions/{custom_dimension} + * - customMetric: properties/{property}/customMetrics/{custom_metric} + * - dataRedactionSettings: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * - dataRetentionSettings: properties/{property}/dataRetentionSettings + * - dataSharingSettings: accounts/{account}/dataSharingSettings + * - dataStream: properties/{property}/dataStreams/{data_stream} + * - displayVideo360AdvertiserLink: properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link} + * - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal} + * - enhancedMeasurementSettings: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings + * - eventCreateRule: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} + * - expandedDataSet: properties/{property}/expandedDataSets/{expanded_data_set} + * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} + * - globalSiteTag: properties/{property}/dataStreams/{data_stream}/globalSiteTag + * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} + * - googleSignalsSettings: properties/{property}/googleSignalsSettings + * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} + * - property: properties/{property} + * - propertyAccessBinding: properties/{property}/accessBindings/{access_binding} + * - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link} + * - sKAdNetworkConversionValueSchema: properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * - searchAds360Link: properties/{property}/searchAds360Links/{search_ads_360_link} + * - subpropertyEventFilter: properties/{property}/subpropertyEventFilters/{sub_property_event_filter} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'analyticsadmin.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or through this API) before MeasurementProtocolSecret resources may be + * created. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $acknowledgement = 'acknowledgement'; + * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $property Required. The property for which to acknowledge user data collection. + * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = []) + { + $request = new AcknowledgeUserDataCollectionRequest(); + $requestParamHeaders = []; + $request->setProperty($property); + $request->setAcknowledgement($acknowledgement); + $requestParamHeaders['property'] = $property; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Approves a DisplayVideo360AdvertiserLinkProposal. + * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + * DisplayVideo360AdvertiserLink will be created. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + * $response = $analyticsAdminServiceClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function approveDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) + { + $request = new ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ApproveDisplayVideo360AdvertiserLinkProposal', ApproveDisplayVideo360AdvertiserLinkProposalResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Archives an Audience on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $analyticsAdminServiceClient->archiveAudience($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Example format: properties/1234/audiences/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function archiveAudience($name, array $optionalArgs = []) + { + $request = new ArchiveAudienceRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ArchiveAudience', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Archives a CustomDimension on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function archiveCustomDimension($name, array $optionalArgs = []) + { + $request = new ArchiveCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ArchiveCustomDimension', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Archives a CustomMetric on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + * $analyticsAdminServiceClient->archiveCustomMetric($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function archiveCustomMetric($name, array $optionalArgs = []) + { + $request = new ArchiveCustomMetricRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates information about multiple access bindings to an account or + * property. + * + * This method is transactional. If any AccessBinding cannot be created, none + * of the AccessBindings will be created. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $requests = []; + * $response = $analyticsAdminServiceClient->batchCreateAccessBindings($formattedParent, $requests); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The account or property that owns the access bindings. The parent + * field in the CreateAccessBindingRequest messages must either be empty or + * match this field. Formats: + * - accounts/{account} + * - properties/{property} + * @param CreateAccessBindingRequest[] $requests Required. The requests specifying the access bindings to create. + * A maximum of 1000 access bindings can be created in a batch. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function batchCreateAccessBindings($parent, $requests, array $optionalArgs = []) + { + $request = new BatchCreateAccessBindingsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setRequests($requests); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('BatchCreateAccessBindings', BatchCreateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes information about multiple users' links to an account or property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $requests = []; + * $analyticsAdminServiceClient->batchDeleteAccessBindings($formattedParent, $requests); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field in DeleteAccessBindingRequest + * messages must match this field. Formats: + * - accounts/{account} + * - properties/{property} + * @param DeleteAccessBindingRequest[] $requests Required. The requests specifying the access bindings to delete. + * A maximum of 1000 access bindings can be deleted in a batch. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function batchDeleteAccessBindings($parent, $requests, array $optionalArgs = []) + { + $request = new BatchDeleteAccessBindingsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setRequests($requests); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('BatchDeleteAccessBindings', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets information about multiple access bindings to an account or property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $formattedNames = [ + * $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), + * ]; + * $response = $analyticsAdminServiceClient->batchGetAccessBindings($formattedParent, $formattedNames); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The account or property that owns the access bindings. The parent + * of all provided values for the 'names' field must match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * @param string[] $names Required. The names of the access bindings to retrieve. + * A maximum of 1000 access bindings can be retrieved in a batch. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function batchGetAccessBindings($parent, $names, array $optionalArgs = []) + { + $request = new BatchGetAccessBindingsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setNames($names); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('BatchGetAccessBindings', BatchGetAccessBindingsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates information about multiple access bindings to an account or + * property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $requests = []; + * $response = $analyticsAdminServiceClient->batchUpdateAccessBindings($formattedParent, $requests); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The account or property that owns the access bindings. The parent + * of all provided AccessBinding in UpdateAccessBindingRequest messages must + * match this field. + * Formats: + * - accounts/{account} + * - properties/{property} + * @param UpdateAccessBindingRequest[] $requests Required. The requests specifying the access bindings to update. + * A maximum of 1000 access bindings can be updated in a batch. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function batchUpdateAccessBindings($parent, $requests, array $optionalArgs = []) + { + $request = new BatchUpdateAccessBindingsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setRequests($requests); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('BatchUpdateAccessBindings', BatchUpdateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Cancels a DisplayVideo360AdvertiserLinkProposal. + * Cancelling can mean either: + * - Declining a proposal initiated from Display & Video 360 + * - Withdrawing a proposal initiated from Google Analytics + * After being cancelled, a proposal will eventually be deleted automatically. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + * $response = $analyticsAdminServiceClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function cancelDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) + { + $request = new CancelDisplayVideo360AdvertiserLinkProposalRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CancelDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates an access binding on an account or property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $accessBinding = new AccessBinding(); + * $response = $analyticsAdminServiceClient->createAccessBinding($formattedParent, $accessBinding); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Formats: + * - accounts/{account} + * - properties/{property} + * @param AccessBinding $accessBinding Required. The access binding to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AccessBinding + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createAccessBinding($parent, $accessBinding, array $optionalArgs = []) + { + $request = new CreateAccessBindingRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAccessBinding($accessBinding); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates an AdSenseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $adsenseLink = new AdSenseLink(); + * $response = $analyticsAdminServiceClient->createAdSenseLink($formattedParent, $adsenseLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + * @param AdSenseLink $adsenseLink Required. The AdSense Link to create + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AdSenseLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createAdSenseLink($parent, $adsenseLink, array $optionalArgs = []) + { + $request = new CreateAdSenseLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAdsenseLink($adsenseLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateAdSenseLink', AdSenseLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates an Audience. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $audience = new Audience(); + * $response = $analyticsAdminServiceClient->createAudience($formattedParent, $audience); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param Audience $audience Required. The audience to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Audience + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createAudience($parent, $audience, array $optionalArgs = []) + { + $request = new CreateAudienceRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setAudience($audience); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateAudience', Audience::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a ChannelGroup. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $channelGroup = new ChannelGroup(); + * $response = $analyticsAdminServiceClient->createChannelGroup($formattedParent, $channelGroup); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The property for which to create a ChannelGroup. + * Example format: properties/1234 + * @param ChannelGroup $channelGroup Required. The ChannelGroup to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ChannelGroup + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createChannelGroup($parent, $channelGroup, array $optionalArgs = []) + { + $request = new CreateChannelGroupRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setChannelGroup($channelGroup); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a connected site tag for a Universal Analytics property. You can + * create a maximum of 20 connected site tags per property. + * Note: This API cannot be used on GA4 properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $connectedSiteTag = new ConnectedSiteTag(); + * $response = $analyticsAdminServiceClient->createConnectedSiteTag($connectedSiteTag); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ConnectedSiteTag $connectedSiteTag Required. The tag to add to the Universal Analytics property + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * The Universal Analytics property to create connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createConnectedSiteTag($connectedSiteTag, array $optionalArgs = []) + { + $request = new CreateConnectedSiteTagRequest(); + $request->setConnectedSiteTag($connectedSiteTag); + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + } + + return $this->startCall('CreateConnectedSiteTag', CreateConnectedSiteTagResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a conversion event with the specified attributes. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $conversionEvent = new ConversionEvent(); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->createConversionEvent($conversionEvent, $formattedParent); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ConversionEvent $conversionEvent Required. The conversion event to create. + * @param string $parent Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ConversionEvent + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = []) + { + $request = new CreateConversionEventRequest(); + $requestParamHeaders = []; + $request->setConversionEvent($conversionEvent); + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a CustomDimension. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $customDimension = new CustomDimension(); + * $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param CustomDimension $customDimension Required. The CustomDimension to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CustomDimension + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createCustomDimension($parent, $customDimension, array $optionalArgs = []) + { + $request = new CreateCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setCustomDimension($customDimension); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a CustomMetric. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $customMetric = new CustomMetric(); + * $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param CustomMetric $customMetric Required. The CustomMetric to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CustomMetric + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createCustomMetric($parent, $customMetric, array $optionalArgs = []) + { + $request = new CreateCustomMetricRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setCustomMetric($customMetric); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a DataStream. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $dataStream = new DataStream(); + * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param DataStream $dataStream Required. The DataStream to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataStream + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createDataStream($parent, $dataStream, array $optionalArgs = []) + { + $request = new CreateDataStreamRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setDataStream($dataStream); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a DisplayVideo360AdvertiserLink. + * This can only be utilized by users who have proper authorization both on + * the Google Analytics property and on the Display & Video 360 advertiser. + * Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); + * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createDisplayVideo360AdvertiserLink($parent, $displayVideo360AdvertiserLink, array $optionalArgs = []) + { + $request = new CreateDisplayVideo360AdvertiserLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); + * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param DisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal Required. The DisplayVideo360AdvertiserLinkProposal to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createDisplayVideo360AdvertiserLinkProposal($parent, $displayVideo360AdvertiserLinkProposal, array $optionalArgs = []) + { + $request = new CreateDisplayVideo360AdvertiserLinkProposalRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates an EventCreateRule. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $eventCreateRule = new EventCreateRule(); + * $response = $analyticsAdminServiceClient->createEventCreateRule($formattedParent, $eventCreateRule); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/123/dataStreams/456 + * @param EventCreateRule $eventCreateRule Required. The EventCreateRule to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\EventCreateRule + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createEventCreateRule($parent, $eventCreateRule, array $optionalArgs = []) + { + $request = new CreateEventCreateRuleRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setEventCreateRule($eventCreateRule); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a ExpandedDataSet. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $expandedDataSet = new ExpandedDataSet(); + * $response = $analyticsAdminServiceClient->createExpandedDataSet($formattedParent, $expandedDataSet); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createExpandedDataSet($parent, $expandedDataSet, array $optionalArgs = []) + { + $request = new CreateExpandedDataSetRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setExpandedDataSet($expandedDataSet); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $firebaseLink = new FirebaseLink(); + * $response = $analyticsAdminServiceClient->createFirebaseLink($formattedParent, $firebaseLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param FirebaseLink $firebaseLink Required. The Firebase link to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\FirebaseLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createFirebaseLink($parent, $firebaseLink, array $optionalArgs = []) + { + $request = new CreateFirebaseLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setFirebaseLink($firebaseLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a GoogleAdsLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $googleAdsLink = new GoogleAdsLink(); + * $response = $analyticsAdminServiceClient->createGoogleAdsLink($formattedParent, $googleAdsLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs = []) + { + $request = new CreateGoogleAdsLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setGoogleAdsLink($googleAdsLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a measurement protocol secret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $measurementProtocolSecret = new MeasurementProtocolSecret(); + * $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createMeasurementProtocolSecret($parent, $measurementProtocolSecret, array $optionalArgs = []) + { + $request = new CreateMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setMeasurementProtocolSecret($measurementProtocolSecret); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates an "GA4" property with the specified location and attributes. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $property = new Property(); + * $response = $analyticsAdminServiceClient->createProperty($property); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $property Required. The property to create. + * Note: the supplied property must specify its parent. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createProperty($property, array $optionalArgs = []) + { + $request = new CreatePropertyRequest(); + $request->setProperty($property); + return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Create a roll-up property and all roll-up property source links. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $rollupProperty = new Property(); + * $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $rollupProperty Required. The roll-up property to create. + * @param array $optionalArgs { + * Optional. + * + * @type string[] $sourceProperties + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createRollupProperty($rollupProperty, array $optionalArgs = []) + { + $request = new CreateRollupPropertyRequest(); + $request->setRollupProperty($rollupProperty); + if (isset($optionalArgs['sourceProperties'])) { + $request->setSourceProperties($optionalArgs['sourceProperties']); + } + + return $this->startCall('CreateRollupProperty', CreateRollupPropertyResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a roll-up property source link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $rollupPropertySourceLink = new RollupPropertySourceLink(); + * $response = $analyticsAdminServiceClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param RollupPropertySourceLink $rollupPropertySourceLink Required. The roll-up property source link to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createRollupPropertySourceLink($parent, $rollupPropertySourceLink, array $optionalArgs = []) + { + $request = new CreateRollupPropertySourceLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setRollupPropertySourceLink($rollupPropertySourceLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a SKAdNetworkConversionValueSchema. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); + * $response = $analyticsAdminServiceClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent resource where this schema will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @param SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createSKAdNetworkConversionValueSchema($parent, $skadnetworkConversionValueSchema, array $optionalArgs = []) + { + $request = new CreateSKAdNetworkConversionValueSchemaRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a SearchAds360Link. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $searchAds360Link = new SearchAds360Link(); + * $response = $analyticsAdminServiceClient->createSearchAds360Link($formattedParent, $searchAds360Link); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param SearchAds360Link $searchAds360Link Required. The SearchAds360Link to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createSearchAds360Link($parent, $searchAds360Link, array $optionalArgs = []) + { + $request = new CreateSearchAds360LinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setSearchAds360Link($searchAds360Link); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); + } + + /** + * Create a subproperty and a subproperty event filter that applies to the + * created subproperty. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $subproperty = new Property(); + * $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * @param Property $subproperty Required. The subproperty to create. + * @param array $optionalArgs { + * Optional. + * + * @type SubpropertyEventFilter $subpropertyEventFilter + * Optional. The subproperty event filter to create on an ordinary property. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createSubproperty($parent, $subproperty, array $optionalArgs = []) + { + $request = new CreateSubpropertyRequest(); + $request->setParent($parent); + $request->setSubproperty($subproperty); + if (isset($optionalArgs['subpropertyEventFilter'])) { + $request->setSubpropertyEventFilter($optionalArgs['subpropertyEventFilter']); + } + + return $this->startCall('CreateSubproperty', CreateSubpropertyResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a subproperty Event Filter. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $subpropertyEventFilter = new SubpropertyEventFilter(); + * $response = $analyticsAdminServiceClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * @param SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createSubpropertyEventFilter($parent, $subpropertyEventFilter, array $optionalArgs = []) + { + $request = new CreateSubpropertyEventFilterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setSubpropertyEventFilter($subpropertyEventFilter); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateSubpropertyEventFilter', SubpropertyEventFilter::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes an access binding on an account or property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + * $analyticsAdminServiceClient->deleteAccessBinding($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteAccessBinding($name, array $optionalArgs = []) + { + $request = new DeleteAccessBindingRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteAccessBinding', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Marks target Account as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted accounts. + * However, they can be restored using the Trash Can UI. + * + * If the accounts are not restored before the expiration time, the account + * and all child resources (eg: Properties, GoogleAdsLinks, Streams, + * AccessBindings) will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $analyticsAdminServiceClient->deleteAccount($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteAccount($name, array $optionalArgs = []) + { + $request = new DeleteAccountRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteAccount', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes an AdSenseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + * $analyticsAdminServiceClient->deleteAdSenseLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteAdSenseLink($name, array $optionalArgs = []) + { + $request = new DeleteAdSenseLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteAdSenseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a ChannelGroup on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + * $analyticsAdminServiceClient->deleteChannelGroup($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The ChannelGroup to delete. + * Example format: properties/1234/channelGroups/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteChannelGroup($name, array $optionalArgs = []) + { + $request = new DeleteChannelGroupRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteChannelGroup', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a connected site tag for a Universal Analytics property. + * Note: this has no effect on GA4 properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $analyticsAdminServiceClient->deleteConnectedSiteTag(); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * The Universal Analytics property to delete connected site tags for. + * This API does not support GA4 properties. + * Format: properties/{universalAnalyticsPropertyId} + * Example: properties/1234 + * @type string $tagId + * Tag ID to forward events to. Also known as the Measurement ID, or the + * "G-ID" (For example: G-12345). + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteConnectedSiteTag(array $optionalArgs = []) + { + $request = new DeleteConnectedSiteTagRequest(); + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + } + + if (isset($optionalArgs['tagId'])) { + $request->setTagId($optionalArgs['tagId']); + } + + return $this->startCall('DeleteConnectedSiteTag', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a conversion event in a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + * $analyticsAdminServiceClient->deleteConversionEvent($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteConversionEvent($name, array $optionalArgs = []) + { + $request = new DeleteConversionEventRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a DataStream on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $analyticsAdminServiceClient->deleteDataStream($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteDataStream($name, array $optionalArgs = []) + { + $request = new DeleteDataStreamRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) + { + $request = new DeleteDisplayVideo360AdvertiserLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteDisplayVideo360AdvertiserLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + * This can only be used on cancelled proposals. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) + { + $request = new DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteDisplayVideo360AdvertiserLinkProposal', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes an EventCreateRule. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); + * $analyticsAdminServiceClient->deleteEventCreateRule($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteEventCreateRule($name, array $optionalArgs = []) + { + $request = new DeleteEventCreateRuleRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteEventCreateRule', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a ExpandedDataSet on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); + * $analyticsAdminServiceClient->deleteExpandedDataSet($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Example format: properties/1234/expandedDataSets/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteExpandedDataSet($name, array $optionalArgs = []) + { + $request = new DeleteExpandedDataSetRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteExpandedDataSet', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a FirebaseLink on a property + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteFirebaseLink($name, array $optionalArgs = []) + { + $request = new DeleteFirebaseLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteFirebaseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a GoogleAdsLink on a property + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + * $analyticsAdminServiceClient->deleteGoogleAdsLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteGoogleAdsLink($name, array $optionalArgs = []) + { + $request = new DeleteGoogleAdsLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes target MeasurementProtocolSecret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + * $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) + { + $request = new DeleteMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteMeasurementProtocolSecret', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Marks target Property as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted properties. + * However, they can be restored using the Trash Can UI. + * + * If the properties are not restored before the expiration time, the Property + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) + * will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found, or is not a GA4 Property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->deleteProperty($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteProperty($name, array $optionalArgs = []) + { + $request = new DeletePropertyRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a roll-up property source link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + * $analyticsAdminServiceClient->deleteRollupPropertySourceLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteRollupPropertySourceLink($name, array $optionalArgs = []) + { + $request = new DeleteRollupPropertySourceLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteRollupPropertySourceLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes target SKAdNetworkConversionValueSchema. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + * $analyticsAdminServiceClient->deleteSKAdNetworkConversionValueSchema($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the SKAdNetworkConversionValueSchema to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) + { + $request = new DeleteSKAdNetworkConversionValueSchemaRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteSKAdNetworkConversionValueSchema', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a SearchAds360Link on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + * $analyticsAdminServiceClient->deleteSearchAds360Link($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the SearchAds360Link to delete. + * Example format: properties/1234/SearchAds360Links/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteSearchAds360Link($name, array $optionalArgs = []) + { + $request = new DeleteSearchAds360LinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteSearchAds360Link', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a subproperty event filter. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + * $analyticsAdminServiceClient->deleteSubpropertyEventFilter($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteSubpropertyEventFilter($name, array $optionalArgs = []) + { + $request = new DeleteSubpropertyEventFilterRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteSubpropertyEventFilter', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Fetches the opt out status for the automated GA4 setup process for a UA + * property. + * Note: this has no effect on GA4 property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $property = 'property'; + * $response = $analyticsAdminServiceClient->fetchAutomatedGa4ConfigurationOptOut($property); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $property Required. The UA property to get the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function fetchAutomatedGa4ConfigurationOptOut($property, array $optionalArgs = []) + { + $request = new FetchAutomatedGa4ConfigurationOptOutRequest(); + $request->setProperty($property); + return $this->startCall('FetchAutomatedGa4ConfigurationOptOut', FetchAutomatedGa4ConfigurationOptOutResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Given a specified UA property, looks up the GA4 property connected to it. + * Note: this cannot be used with GA4 properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->fetchConnectedGa4Property($formattedProperty); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $property Required. The UA property for which to look up the connected GA4 property. + * Note this request uses the + * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internal_web_property_id} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\FetchConnectedGa4PropertyResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function fetchConnectedGa4Property($property, array $optionalArgs = []) + { + $request = new FetchConnectedGa4PropertyRequest(); + $request->setProperty($property); + return $this->startCall('FetchConnectedGa4Property', FetchConnectedGa4PropertyResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets information about an access binding. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + * $response = $analyticsAdminServiceClient->getAccessBinding($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the access binding to retrieve. + * Formats: + * - accounts/{account}/accessBindings/{accessBinding} + * - properties/{property}/accessBindings/{accessBinding} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AccessBinding + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getAccessBinding($name, array $optionalArgs = []) + { + $request = new GetAccessBindingRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single Account. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $response = $analyticsAdminServiceClient->getAccount($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Account + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getAccount($name, array $optionalArgs = []) + { + $request = new GetAccountRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAccount', Account::class, $optionalArgs, $request)->wait(); + } + + /** + * Looks up a single AdSenseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + * $response = $analyticsAdminServiceClient->getAdSenseLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AdSenseLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getAdSenseLink($name, array $optionalArgs = []) + { + $request = new GetAdSenseLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAdSenseLink', AdSenseLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a AttributionSettings singleton. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->attributionSettingsName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->getAttributionSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the attribution settings to retrieve. + * Format: properties/{property}/attributionSettings + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AttributionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getAttributionSettings($name, array $optionalArgs = []) + { + $request = new GetAttributionSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAttributionSettings', AttributionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single Audience. + * Audiences created before 2020 may not be supported. + * Default audiences will not show filter definitions. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->audienceName('[PROPERTY]', '[AUDIENCE]'); + * $response = $analyticsAdminServiceClient->getAudience($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the Audience to get. + * Example format: properties/1234/audiences/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Audience + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getAudience($name, array $optionalArgs = []) + { + $request = new GetAudienceRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAudience', Audience::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single BigQuery Link. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); + * $response = $analyticsAdminServiceClient->getBigQueryLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the BigQuery link to lookup. + * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} + * Example: properties/123/bigQueryLinks/456 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\BigQueryLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getBigQueryLink($name, array $optionalArgs = []) + { + $request = new GetBigQueryLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single ChannelGroup. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + * $response = $analyticsAdminServiceClient->getChannelGroup($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The ChannelGroup to get. + * Example format: properties/1234/channelGroups/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ChannelGroup + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getChannelGroup($name, array $optionalArgs = []) + { + $request = new GetChannelGroupRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); + } + + /** + * Retrieve a single conversion event. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + * $response = $analyticsAdminServiceClient->getConversionEvent($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ConversionEvent + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getConversionEvent($name, array $optionalArgs = []) + { + $request = new GetConversionEventRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single CustomDimension. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + * $response = $analyticsAdminServiceClient->getCustomDimension($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CustomDimension + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getCustomDimension($name, array $optionalArgs = []) + { + $request = new GetCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single CustomMetric. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + * $response = $analyticsAdminServiceClient->getCustomMetric($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CustomMetric + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getCustomMetric($name, array $optionalArgs = []) + { + $request = new GetCustomMetricRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single DataRedactionSettings. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getDataRedactionSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataRedactionSettings($name, array $optionalArgs = []) + { + $request = new GetDataRedactionSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns the singleton data retention settings for this property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataRetentionSettings($name, array $optionalArgs = []) + { + $request = new GetDataRetentionSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Get data sharing settings on an account. + * Data sharing settings are singletons. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataSharingSettingsName('[ACCOUNT]'); + * $response = $analyticsAdminServiceClient->getDataSharingSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataSharingSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataSharingSettings($name, array $optionalArgs = []) + { + $request = new GetDataSharingSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single DataStream. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getDataStream($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataStream + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataStream($name, array $optionalArgs = []) + { + $request = new GetDataStreamRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait(); + } + + /** + * Look up a single DisplayVideo360AdvertiserLink + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to get. + * Example format: properties/1234/displayVideo360AdvertiserLink/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) + { + $request = new GetDisplayVideo360AdvertiserLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) + { + $request = new GetDisplayVideo360AdvertiserLinkProposalRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns the enhanced measurement settings for this data stream. + * Note that the stream must enable enhanced measurement for these settings to + * take effect. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getEnhancedMeasurementSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings + * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getEnhancedMeasurementSettings($name, array $optionalArgs = []) + { + $request = new GetEnhancedMeasurementSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single EventCreateRule. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); + * $response = $analyticsAdminServiceClient->getEventCreateRule($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\EventCreateRule + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getEventCreateRule($name, array $optionalArgs = []) + { + $request = new GetEventCreateRuleRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single ExpandedDataSet. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); + * $response = $analyticsAdminServiceClient->getExpandedDataSet($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the ExpandedDataSet to get. + * Example format: properties/1234/expandedDataSets/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getExpandedDataSet($name, array $optionalArgs = []) + { + $request = new GetExpandedDataSetRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns the Site Tag for the specified web stream. + * Site Tags are immutable singletons. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getGlobalSiteTag($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the site tag to lookup. + * Note that site tags are singletons and do not have unique IDs. + * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + * Example: "properties/123/dataStreams/456/globalSiteTag" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\GlobalSiteTag + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getGlobalSiteTag($name, array $optionalArgs = []) + { + $request = new GetGlobalSiteTagRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetGlobalSiteTag', GlobalSiteTag::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for Google Signals settings for a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->googleSignalsSettingsName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->getGoogleSignalsSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the google signals settings to retrieve. + * Format: properties/{property}/googleSignalsSettings + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getGoogleSignalsSettings($name, array $optionalArgs = []) + { + $request = new GetGoogleSignalsSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + * $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getMeasurementProtocolSecret($name, array $optionalArgs = []) + { + $request = new GetMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single "GA4" Property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->getProperty($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getProperty($name, array $optionalArgs = []) + { + $request = new GetPropertyRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single roll-up property source Link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + * $response = $analyticsAdminServiceClient->getRollupPropertySourceLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getRollupPropertySourceLink($name, array $optionalArgs = []) + { + $request = new GetRollupPropertySourceLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Looks up a single SKAdNetworkConversionValueSchema. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) + { + $request = new GetSKAdNetworkConversionValueSchemaRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); + } + + /** + * Look up a single SearchAds360Link + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getSearchAds360Link($name, array $optionalArgs = []) + { + $request = new GetSearchAds360LinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all access bindings on an account or property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAccessBindings($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAccessBindings($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Formats: + * - accounts/{account} + * - properties/{property} + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAccessBindings($parent, array $optionalArgs = []) + { + $request = new ListAccessBindingsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAccessBindings', $optionalArgs, ListAccessBindingsResponse::class, $request); + } + + /** + * Returns summaries of all accounts accessible by the caller. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAccountSummaries(array $optionalArgs = []) + { + $request = new ListAccountSummariesRequest(); + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + return $this->getPagedListResponse('ListAccountSummaries', $optionalArgs, ListAccountSummariesResponse::class, $request); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type bool $showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAccounts(array $optionalArgs = []) + { + $request = new ListAccountsRequest(); + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + if (isset($optionalArgs['showDeleted'])) { + $request->setShowDeleted($optionalArgs['showDeleted']); + } + + return $this->getPagedListResponse('ListAccounts', $optionalArgs, ListAccountsResponse::class, $request); + } + + /** + * Lists AdSenseLinks on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAdSenseLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAdSenseLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAdSenseLinks($parent, array $optionalArgs = []) + { + $request = new ListAdSenseLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAdSenseLinks', $optionalArgs, ListAdSenseLinksResponse::class, $request); + } + + /** + * Lists Audiences on a property. + * Audiences created before 2020 may not be supported. + * Default audiences will not show filter definitions. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAudiences($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAudiences($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAudiences($parent, array $optionalArgs = []) + { + $request = new ListAudiencesRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListAudiences', $optionalArgs, ListAudiencesResponse::class, $request); + } + + /** + * Lists BigQuery Links on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listBigQueryLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listBigQueryLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listBigQueryLinks($parent, array $optionalArgs = []) + { + $request = new ListBigQueryLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListBigQueryLinks', $optionalArgs, ListBigQueryLinksResponse::class, $request); + } + + /** + * Lists ChannelGroups on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listChannelGroups($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listChannelGroups($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The property for which to list ChannelGroups. + * Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listChannelGroups($parent, array $optionalArgs = []) + { + $request = new ListChannelGroupsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListChannelGroups', $optionalArgs, ListChannelGroupsResponse::class, $request); + } + + /** + * Lists the connected site tags for a Universal Analytics property. A maximum + * of 20 connected site tags will be returned. Note: this has no effect on GA4 + * property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $response = $analyticsAdminServiceClient->listConnectedSiteTags(); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * The Universal Analytics property to fetch connected site tags for. + * This does not work on GA4 properties. A maximum of 20 connected site tags + * will be returned. + * Example Format: `properties/1234` + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ListConnectedSiteTagsResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listConnectedSiteTags(array $optionalArgs = []) + { + $request = new ListConnectedSiteTagsRequest(); + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + } + + return $this->startCall('ListConnectedSiteTags', ListConnectedSiteTagsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The resource name of the parent property. + * Example: 'properties/123' + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listConversionEvents($parent, array $optionalArgs = []) + { + $request = new ListConversionEventsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListConversionEvents', $optionalArgs, ListConversionEventsResponse::class, $request); + } + + /** + * Lists CustomDimensions on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listCustomDimensions($parent, array $optionalArgs = []) + { + $request = new ListCustomDimensionsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListCustomDimensions', $optionalArgs, ListCustomDimensionsResponse::class, $request); + } + + /** + * Lists CustomMetrics on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listCustomMetrics($parent, array $optionalArgs = []) + { + $request = new ListCustomMetricsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request); + } + + /** + * Lists DataStreams on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listDataStreams($parent, array $optionalArgs = []) + { + $request = new ListDataStreamsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request); + } + + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listDisplayVideo360AdvertiserLinkProposals($parent, array $optionalArgs = []) + { + $request = new ListDisplayVideo360AdvertiserLinkProposalsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinkProposals', $optionalArgs, ListDisplayVideo360AdvertiserLinkProposalsResponse::class, $request); + } + + /** + * Lists all DisplayVideo360AdvertiserLinks on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listDisplayVideo360AdvertiserLinks($parent, array $optionalArgs = []) + { + $request = new ListDisplayVideo360AdvertiserLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinks', $optionalArgs, ListDisplayVideo360AdvertiserLinksResponse::class, $request); + } + + /** + * Lists EventCreateRules on a web data stream. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listEventCreateRules($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listEventCreateRules($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/123/dataStreams/456 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listEventCreateRules($parent, array $optionalArgs = []) + { + $request = new ListEventCreateRulesRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListEventCreateRules', $optionalArgs, ListEventCreateRulesResponse::class, $request); + } + + /** + * Lists ExpandedDataSets on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listExpandedDataSets($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listExpandedDataSets($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listExpandedDataSets($parent, array $optionalArgs = []) + { + $request = new ListExpandedDataSetsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListExpandedDataSets', $optionalArgs, ListExpandedDataSetsResponse::class, $request); + } + + /** + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listFirebaseLinks($parent, array $optionalArgs = []) + { + $request = new ListFirebaseLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListFirebaseLinks', $optionalArgs, ListFirebaseLinksResponse::class, $request); + } + + /** + * Lists GoogleAdsLinks on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listGoogleAdsLinks($parent, array $optionalArgs = []) + { + $request = new ListGoogleAdsLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request); + } + + /** + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listMeasurementProtocolSecrets($parent, array $optionalArgs = []) + { + $request = new ListMeasurementProtocolSecretsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListMeasurementProtocolSecrets', $optionalArgs, ListMeasurementProtocolSecretsResponse::class, $request); + } + + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $filter = 'filter'; + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $filter Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type bool $showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listProperties($filter, array $optionalArgs = []) + { + $request = new ListPropertiesRequest(); + $request->setFilter($filter); + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + if (isset($optionalArgs['showDeleted'])) { + $request->setShowDeleted($optionalArgs['showDeleted']); + } + + return $this->getPagedListResponse('ListProperties', $optionalArgs, ListPropertiesResponse::class, $request); + } + + /** + * Lists roll-up property source Links on a property. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listRollupPropertySourceLinks($parent, array $optionalArgs = []) + { + $request = new ListRollupPropertySourceLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListRollupPropertySourceLinks', $optionalArgs, ListRollupPropertySourceLinksResponse::class, $request); + } + + /** + * Lists SKAdNetworkConversionValueSchema on a stream. + * Properties can have at most one SKAdNetworkConversionValueSchema. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) + { + $request = new ListSKAdNetworkConversionValueSchemasRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); + } + + /** + * Lists all SearchAds360Links on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listSearchAds360Links($parent, array $optionalArgs = []) + { + $request = new ListSearchAds360LinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); + } + + /** + * Requests a ticket for creating an account. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $response = $analyticsAdminServiceClient->provisionAccountTicket(); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type Account $account + * The account to create. + * @type string $redirectUri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function provisionAccountTicket(array $optionalArgs = []) + { + $request = new ProvisionAccountTicketRequest(); + if (isset($optionalArgs['account'])) { + $request->setAccount($optionalArgs['account']); + } + + if (isset($optionalArgs['redirectUri'])) { + $request->setRedirectUri($optionalArgs['redirectUri']); + } + + return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns a customized report of data access records. The report provides + * records of each time a user reads Google Analytics reporting data. Access + * records are retained for up to 2 years. + * + * Data Access Reports can be requested for a property. The property must be + * in Google Analytics 360. This method is only available to Administrators. + * + * These data access records include GA4 UI Reporting, GA4 UI Explorations, + * GA4 Data API, and other products like Firebase & Admob that can retrieve + * data from Google Analytics through a linkage. These records don't include + * property configuration changes like adding a stream or changing a + * property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $response = $analyticsAdminServiceClient->runAccessReport(); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $entity + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * @type AccessDimension[] $dimensions + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * @type AccessMetric[] $metrics + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * @type AccessDateRange[] $dateRanges + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * @type AccessFilterExpression $dimensionFilter + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @type AccessFilterExpression $metricFilter + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * @type int $offset + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type string $timeZone + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * @type AccessOrderBy[] $orderBys + * Specifies how rows are ordered in the response. + * @type bool $returnEntityQuota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * @type bool $includeAllUsers + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * @type bool $expandGroups + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\RunAccessReportResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function runAccessReport(array $optionalArgs = []) + { + $request = new RunAccessReportRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['entity'])) { + $request->setEntity($optionalArgs['entity']); + $requestParamHeaders['entity'] = $optionalArgs['entity']; + } + + if (isset($optionalArgs['dimensions'])) { + $request->setDimensions($optionalArgs['dimensions']); + } + + if (isset($optionalArgs['metrics'])) { + $request->setMetrics($optionalArgs['metrics']); + } + + if (isset($optionalArgs['dateRanges'])) { + $request->setDateRanges($optionalArgs['dateRanges']); + } + + if (isset($optionalArgs['dimensionFilter'])) { + $request->setDimensionFilter($optionalArgs['dimensionFilter']); + } + + if (isset($optionalArgs['metricFilter'])) { + $request->setMetricFilter($optionalArgs['metricFilter']); + } + + if (isset($optionalArgs['offset'])) { + $request->setOffset($optionalArgs['offset']); + } + + if (isset($optionalArgs['limit'])) { + $request->setLimit($optionalArgs['limit']); + } + + if (isset($optionalArgs['timeZone'])) { + $request->setTimeZone($optionalArgs['timeZone']); + } + + if (isset($optionalArgs['orderBys'])) { + $request->setOrderBys($optionalArgs['orderBys']); + } + + if (isset($optionalArgs['returnEntityQuota'])) { + $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); + } + + if (isset($optionalArgs['includeAllUsers'])) { + $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); + } + + if (isset($optionalArgs['expandGroups'])) { + $request->setExpandGroups($optionalArgs['expandGroups']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Searches through all changes to an account or its children given the + * specified set of filters. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedAccount = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $account Required. The account resource for which to return change history + * resources. + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @type int[] $resourceType + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1alpha\ChangeHistoryResourceType} + * @type int[] $action + * Optional. If set, only return changes that match one or more of these types + * of actions. + * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1alpha\ActionType} + * @type string[] $actorEmail + * Optional. If set, only return changes if they are made by a user in this + * list. + * @type Timestamp $earliestChangeTime + * Optional. If set, only return changes made after this time (inclusive). + * @type Timestamp $latestChangeTime + * Optional. If set, only return changes made before this time (inclusive). + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function searchChangeHistoryEvents($account, array $optionalArgs = []) + { + $request = new SearchChangeHistoryEventsRequest(); + $requestParamHeaders = []; + $request->setAccount($account); + $requestParamHeaders['account'] = $account; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + } + + if (isset($optionalArgs['resourceType'])) { + $request->setResourceType($optionalArgs['resourceType']); + } + + if (isset($optionalArgs['action'])) { + $request->setAction($optionalArgs['action']); + } + + if (isset($optionalArgs['actorEmail'])) { + $request->setActorEmail($optionalArgs['actorEmail']); + } + + if (isset($optionalArgs['earliestChangeTime'])) { + $request->setEarliestChangeTime($optionalArgs['earliestChangeTime']); + } + + if (isset($optionalArgs['latestChangeTime'])) { + $request->setLatestChangeTime($optionalArgs['latestChangeTime']); + } + + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('SearchChangeHistoryEvents', $optionalArgs, SearchChangeHistoryEventsResponse::class, $request); + } + + /** + * Sets the opt out status for the automated GA4 setup process for a UA + * property. + * Note: this has no effect on GA4 property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $property = 'property'; + * $response = $analyticsAdminServiceClient->setAutomatedGa4ConfigurationOptOut($property); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $property Required. The UA property to set the opt out status. Note this request uses + * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + * Format: properties/{internalWebPropertyId} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type bool $optOut + * The status to set. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function setAutomatedGa4ConfigurationOptOut($property, array $optionalArgs = []) + { + $request = new SetAutomatedGa4ConfigurationOptOutRequest(); + $request->setProperty($property); + if (isset($optionalArgs['optOut'])) { + $request->setOptOut($optionalArgs['optOut']); + } + + return $this->startCall('SetAutomatedGa4ConfigurationOptOut', SetAutomatedGa4ConfigurationOptOutResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates an access binding on an account or property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $accessBinding = new AccessBinding(); + * $response = $analyticsAdminServiceClient->updateAccessBinding($accessBinding); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param AccessBinding $accessBinding Required. The access binding to update. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AccessBinding + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateAccessBinding($accessBinding, array $optionalArgs = []) + { + $request = new UpdateAccessBindingRequest(); + $requestParamHeaders = []; + $request->setAccessBinding($accessBinding); + $requestParamHeaders['access_binding.name'] = $accessBinding->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates an account. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $account = new Account(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Account $account Required. The account to update. + * The account's `name` field is used to identify the account. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Account + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateAccount($account, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAccountRequest(); + $requestParamHeaders = []; + $request->setAccount($account); + $request->setUpdateMask($updateMask); + $requestParamHeaders['account.name'] = $account->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateAccount', Account::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates attribution settings on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $attributionSettings = new AttributionSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateAttributionSettings($attributionSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param AttributionSettings $attributionSettings Required. The attribution settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\AttributionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateAttributionSettings($attributionSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAttributionSettingsRequest(); + $requestParamHeaders = []; + $request->setAttributionSettings($attributionSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['attribution_settings.name'] = $attributionSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateAttributionSettings', AttributionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates an Audience on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $audience = new Audience(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateAudience($audience, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Audience $audience Required. The audience to update. + * The audience's `name` field is used to identify the audience to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Audience + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateAudience($audience, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAudienceRequest(); + $requestParamHeaders = []; + $request->setAudience($audience); + $request->setUpdateMask($updateMask); + $requestParamHeaders['audience.name'] = $audience->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateAudience', Audience::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a ChannelGroup. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $channelGroup = new ChannelGroup(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateChannelGroup($channelGroup, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ChannelGroup $channelGroup Required. The ChannelGroup to update. + * The resource's `name` field is used to identify the ChannelGroup to be + * updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ChannelGroup + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateChannelGroup($channelGroup, $updateMask, array $optionalArgs = []) + { + $request = new UpdateChannelGroupRequest(); + $requestParamHeaders = []; + $request->setChannelGroup($channelGroup); + $request->setUpdateMask($updateMask); + $requestParamHeaders['channel_group.name'] = $channelGroup->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a conversion event with the specified attributes. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $conversionEvent = new ConversionEvent(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateConversionEvent($conversionEvent, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ConversionEvent $conversionEvent Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ConversionEvent + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = []) + { + $request = new UpdateConversionEventRequest(); + $requestParamHeaders = []; + $request->setConversionEvent($conversionEvent); + $request->setUpdateMask($updateMask); + $requestParamHeaders['conversion_event.name'] = $conversionEvent->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a CustomDimension on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateCustomDimension($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type CustomDimension $customDimension + * The CustomDimension to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CustomDimension + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateCustomDimension($updateMask, array $optionalArgs = []) + { + $request = new UpdateCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['customDimension'])) { + $request->setCustomDimension($optionalArgs['customDimension']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a CustomMetric on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateCustomMetric($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type CustomMetric $customMetric + * The CustomMetric to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CustomMetric + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateCustomMetric($updateMask, array $optionalArgs = []) + { + $request = new UpdateCustomMetricRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['customMetric'])) { + $request->setCustomMetric($optionalArgs['customMetric']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a DataRedactionSettings on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $dataRedactionSettings = new DataRedactionSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param DataRedactionSettings $dataRedactionSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataRedactionSettings($dataRedactionSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateDataRedactionSettingsRequest(); + $requestParamHeaders = []; + $request->setDataRedactionSettings($dataRedactionSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['data_redaction_settings.name'] = $dataRedactionSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the singleton data retention settings for this property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $dataRetentionSettings = new DataRetentionSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateDataRetentionSettingsRequest(); + $requestParamHeaders = []; + $request->setDataRetentionSettings($dataRetentionSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a DataStream on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type DataStream $dataStream + * The DataStream to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataStream + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataStream($updateMask, array $optionalArgs = []) + { + $request = new UpdateDataStreamRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['dataStream'])) { + $request->setDataStream($optionalArgs['dataStream']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a DisplayVideo360AdvertiserLink on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDisplayVideo360AdvertiserLink($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink + * The DisplayVideo360AdvertiserLink to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDisplayVideo360AdvertiserLink($updateMask, array $optionalArgs = []) + { + $request = new UpdateDisplayVideo360AdvertiserLinkRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['displayVideo360AdvertiserLink'])) { + $request->setDisplayVideo360AdvertiserLink($optionalArgs['displayVideo360AdvertiserLink']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the enhanced measurement settings for this data stream. + * Note that the stream must enable enhanced measurement for these settings to + * take effect. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param EnhancedMeasurementSettings $enhancedMeasurementSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateEnhancedMeasurementSettingsRequest(); + $requestParamHeaders = []; + $request->setEnhancedMeasurementSettings($enhancedMeasurementSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['enhanced_measurement_settings.name'] = $enhancedMeasurementSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates an EventCreateRule. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $eventCreateRule = new EventCreateRule(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateEventCreateRule($eventCreateRule, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param EventCreateRule $eventCreateRule Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\EventCreateRule + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateEventCreateRule($eventCreateRule, $updateMask, array $optionalArgs = []) + { + $request = new UpdateEventCreateRuleRequest(); + $requestParamHeaders = []; + $request->setEventCreateRule($eventCreateRule); + $request->setUpdateMask($updateMask); + $requestParamHeaders['event_create_rule.name'] = $eventCreateRule->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a ExpandedDataSet on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $expandedDataSet = new ExpandedDataSet(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateExpandedDataSet($expandedDataSet, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to update. + * The resource's `name` field is used to identify the ExpandedDataSet to be + * updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateExpandedDataSet($expandedDataSet, $updateMask, array $optionalArgs = []) + { + $request = new UpdateExpandedDataSetRequest(); + $requestParamHeaders = []; + $request->setExpandedDataSet($expandedDataSet); + $request->setUpdateMask($updateMask); + $requestParamHeaders['expanded_data_set.name'] = $expandedDataSet->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a GoogleAdsLink on a property + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateGoogleAdsLink($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type GoogleAdsLink $googleAdsLink + * The GoogleAdsLink to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateGoogleAdsLink($updateMask, array $optionalArgs = []) + { + $request = new UpdateGoogleAdsLinkRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['googleAdsLink'])) { + $request->setGoogleAdsLink($optionalArgs['googleAdsLink']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates Google Signals settings for a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $googleSignalsSettings = new GoogleSignalsSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param GoogleSignalsSettings $googleSignalsSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateGoogleSignalsSettings($googleSignalsSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateGoogleSignalsSettingsRequest(); + $requestParamHeaders = []; + $request->setGoogleSignalsSettings($googleSignalsSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['google_signals_settings.name'] = $googleSignalsSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a measurement protocol secret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $measurementProtocolSecret = new MeasurementProtocolSecret(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask, array $optionalArgs = []) + { + $request = new UpdateMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setMeasurementProtocolSecret($measurementProtocolSecret); + $request->setUpdateMask($updateMask); + $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $property = new Property(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $property Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateProperty($property, $updateMask, array $optionalArgs = []) + { + $request = new UpdatePropertyRequest(); + $requestParamHeaders = []; + $request->setProperty($property); + $request->setUpdateMask($updateMask); + $requestParamHeaders['property.name'] = $property->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a SKAdNetworkConversionValueSchema. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to update. + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask, array $optionalArgs = []) + { + $request = new UpdateSKAdNetworkConversionValueSchemaRequest(); + $requestParamHeaders = []; + $request->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); + $request->setUpdateMask($updateMask); + $requestParamHeaders['skadnetwork_conversion_value_schema.name'] = $skadnetworkConversionValueSchema->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a SearchAds360Link on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateSearchAds360Link($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type SearchAds360Link $searchAds360Link + * The SearchAds360Link to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateSearchAds360Link($updateMask, array $optionalArgs = []) + { + $request = new UpdateSearchAds360LinkRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['searchAds360Link'])) { + $request->setSearchAds360Link($optionalArgs['searchAds360Link']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json new file mode 100644 index 000000000000..9c36224be4b8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json @@ -0,0 +1,658 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.analytics.admin.v1alpha", + "libraryPackage": "Google\\Analytics\\Admin\\V1alpha", + "services": { + "AnalyticsAdminService": { + "clients": { + "grpc": { + "libraryClient": "AnalyticsAdminServiceGapicClient", + "rpcs": { + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "approveDisplayVideo360AdvertiserLinkProposal" + ] + }, + "ArchiveAudience": { + "methods": [ + "archiveAudience" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archiveCustomDimension" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archiveCustomMetric" + ] + }, + "BatchCreateAccessBindings": { + "methods": [ + "batchCreateAccessBindings" + ] + }, + "BatchDeleteAccessBindings": { + "methods": [ + "batchDeleteAccessBindings" + ] + }, + "BatchGetAccessBindings": { + "methods": [ + "batchGetAccessBindings" + ] + }, + "BatchUpdateAccessBindings": { + "methods": [ + "batchUpdateAccessBindings" + ] + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "cancelDisplayVideo360AdvertiserLinkProposal" + ] + }, + "CreateAccessBinding": { + "methods": [ + "createAccessBinding" + ] + }, + "CreateAdSenseLink": { + "methods": [ + "createAdSenseLink" + ] + }, + "CreateAudience": { + "methods": [ + "createAudience" + ] + }, + "CreateChannelGroup": { + "methods": [ + "createChannelGroup" + ] + }, + "CreateConnectedSiteTag": { + "methods": [ + "createConnectedSiteTag" + ] + }, + "CreateConversionEvent": { + "methods": [ + "createConversionEvent" + ] + }, + "CreateCustomDimension": { + "methods": [ + "createCustomDimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "createCustomMetric" + ] + }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "CreateDisplayVideo360AdvertiserLink": { + "methods": [ + "createDisplayVideo360AdvertiserLink" + ] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "createDisplayVideo360AdvertiserLinkProposal" + ] + }, + "CreateEventCreateRule": { + "methods": [ + "createEventCreateRule" + ] + }, + "CreateExpandedDataSet": { + "methods": [ + "createExpandedDataSet" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "createFirebaseLink" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "createGoogleAdsLink" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "createMeasurementProtocolSecret" + ] + }, + "CreateProperty": { + "methods": [ + "createProperty" + ] + }, + "CreateRollupProperty": { + "methods": [ + "createRollupProperty" + ] + }, + "CreateRollupPropertySourceLink": { + "methods": [ + "createRollupPropertySourceLink" + ] + }, + "CreateSKAdNetworkConversionValueSchema": { + "methods": [ + "createSKAdNetworkConversionValueSchema" + ] + }, + "CreateSearchAds360Link": { + "methods": [ + "createSearchAds360Link" + ] + }, + "CreateSubproperty": { + "methods": [ + "createSubproperty" + ] + }, + "CreateSubpropertyEventFilter": { + "methods": [ + "createSubpropertyEventFilter" + ] + }, + "DeleteAccessBinding": { + "methods": [ + "deleteAccessBinding" + ] + }, + "DeleteAccount": { + "methods": [ + "deleteAccount" + ] + }, + "DeleteAdSenseLink": { + "methods": [ + "deleteAdSenseLink" + ] + }, + "DeleteChannelGroup": { + "methods": [ + "deleteChannelGroup" + ] + }, + "DeleteConnectedSiteTag": { + "methods": [ + "deleteConnectedSiteTag" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "deleteConversionEvent" + ] + }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "DeleteDisplayVideo360AdvertiserLink": { + "methods": [ + "deleteDisplayVideo360AdvertiserLink" + ] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "deleteDisplayVideo360AdvertiserLinkProposal" + ] + }, + "DeleteEventCreateRule": { + "methods": [ + "deleteEventCreateRule" + ] + }, + "DeleteExpandedDataSet": { + "methods": [ + "deleteExpandedDataSet" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "deleteFirebaseLink" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "deleteGoogleAdsLink" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "deleteMeasurementProtocolSecret" + ] + }, + "DeleteProperty": { + "methods": [ + "deleteProperty" + ] + }, + "DeleteRollupPropertySourceLink": { + "methods": [ + "deleteRollupPropertySourceLink" + ] + }, + "DeleteSKAdNetworkConversionValueSchema": { + "methods": [ + "deleteSKAdNetworkConversionValueSchema" + ] + }, + "DeleteSearchAds360Link": { + "methods": [ + "deleteSearchAds360Link" + ] + }, + "DeleteSubpropertyEventFilter": { + "methods": [ + "deleteSubpropertyEventFilter" + ] + }, + "FetchAutomatedGa4ConfigurationOptOut": { + "methods": [ + "fetchAutomatedGa4ConfigurationOptOut" + ] + }, + "FetchConnectedGa4Property": { + "methods": [ + "fetchConnectedGa4Property" + ] + }, + "GetAccessBinding": { + "methods": [ + "getAccessBinding" + ] + }, + "GetAccount": { + "methods": [ + "getAccount" + ] + }, + "GetAdSenseLink": { + "methods": [ + "getAdSenseLink" + ] + }, + "GetAttributionSettings": { + "methods": [ + "getAttributionSettings" + ] + }, + "GetAudience": { + "methods": [ + "getAudience" + ] + }, + "GetBigQueryLink": { + "methods": [ + "getBigQueryLink" + ] + }, + "GetChannelGroup": { + "methods": [ + "getChannelGroup" + ] + }, + "GetConversionEvent": { + "methods": [ + "getConversionEvent" + ] + }, + "GetCustomDimension": { + "methods": [ + "getCustomDimension" + ] + }, + "GetCustomMetric": { + "methods": [ + "getCustomMetric" + ] + }, + "GetDataRedactionSettings": { + "methods": [ + "getDataRedactionSettings" + ] + }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "getDataSharingSettings" + ] + }, + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, + "GetDisplayVideo360AdvertiserLink": { + "methods": [ + "getDisplayVideo360AdvertiserLink" + ] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "getDisplayVideo360AdvertiserLinkProposal" + ] + }, + "GetEnhancedMeasurementSettings": { + "methods": [ + "getEnhancedMeasurementSettings" + ] + }, + "GetEventCreateRule": { + "methods": [ + "getEventCreateRule" + ] + }, + "GetExpandedDataSet": { + "methods": [ + "getExpandedDataSet" + ] + }, + "GetGlobalSiteTag": { + "methods": [ + "getGlobalSiteTag" + ] + }, + "GetGoogleSignalsSettings": { + "methods": [ + "getGoogleSignalsSettings" + ] + }, + "GetMeasurementProtocolSecret": { + "methods": [ + "getMeasurementProtocolSecret" + ] + }, + "GetProperty": { + "methods": [ + "getProperty" + ] + }, + "GetRollupPropertySourceLink": { + "methods": [ + "getRollupPropertySourceLink" + ] + }, + "GetSKAdNetworkConversionValueSchema": { + "methods": [ + "getSKAdNetworkConversionValueSchema" + ] + }, + "GetSearchAds360Link": { + "methods": [ + "getSearchAds360Link" + ] + }, + "ListAccessBindings": { + "methods": [ + "listAccessBindings" + ] + }, + "ListAccountSummaries": { + "methods": [ + "listAccountSummaries" + ] + }, + "ListAccounts": { + "methods": [ + "listAccounts" + ] + }, + "ListAdSenseLinks": { + "methods": [ + "listAdSenseLinks" + ] + }, + "ListAudiences": { + "methods": [ + "listAudiences" + ] + }, + "ListBigQueryLinks": { + "methods": [ + "listBigQueryLinks" + ] + }, + "ListChannelGroups": { + "methods": [ + "listChannelGroups" + ] + }, + "ListConnectedSiteTags": { + "methods": [ + "listConnectedSiteTags" + ] + }, + "ListConversionEvents": { + "methods": [ + "listConversionEvents" + ] + }, + "ListCustomDimensions": { + "methods": [ + "listCustomDimensions" + ] + }, + "ListCustomMetrics": { + "methods": [ + "listCustomMetrics" + ] + }, + "ListDataStreams": { + "methods": [ + "listDataStreams" + ] + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "methods": [ + "listDisplayVideo360AdvertiserLinkProposals" + ] + }, + "ListDisplayVideo360AdvertiserLinks": { + "methods": [ + "listDisplayVideo360AdvertiserLinks" + ] + }, + "ListEventCreateRules": { + "methods": [ + "listEventCreateRules" + ] + }, + "ListExpandedDataSets": { + "methods": [ + "listExpandedDataSets" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "listGoogleAdsLinks" + ] + }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "listMeasurementProtocolSecrets" + ] + }, + "ListProperties": { + "methods": [ + "listProperties" + ] + }, + "ListRollupPropertySourceLinks": { + "methods": [ + "listRollupPropertySourceLinks" + ] + }, + "ListSKAdNetworkConversionValueSchemas": { + "methods": [ + "listSKAdNetworkConversionValueSchemas" + ] + }, + "ListSearchAds360Links": { + "methods": [ + "listSearchAds360Links" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provisionAccountTicket" + ] + }, + "RunAccessReport": { + "methods": [ + "runAccessReport" + ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "searchChangeHistoryEvents" + ] + }, + "SetAutomatedGa4ConfigurationOptOut": { + "methods": [ + "setAutomatedGa4ConfigurationOptOut" + ] + }, + "UpdateAccessBinding": { + "methods": [ + "updateAccessBinding" + ] + }, + "UpdateAccount": { + "methods": [ + "updateAccount" + ] + }, + "UpdateAttributionSettings": { + "methods": [ + "updateAttributionSettings" + ] + }, + "UpdateAudience": { + "methods": [ + "updateAudience" + ] + }, + "UpdateChannelGroup": { + "methods": [ + "updateChannelGroup" + ] + }, + "UpdateConversionEvent": { + "methods": [ + "updateConversionEvent" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "updateCustomDimension" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "updateCustomMetric" + ] + }, + "UpdateDataRedactionSettings": { + "methods": [ + "updateDataRedactionSettings" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, + "UpdateDataStream": { + "methods": [ + "updateDataStream" + ] + }, + "UpdateDisplayVideo360AdvertiserLink": { + "methods": [ + "updateDisplayVideo360AdvertiserLink" + ] + }, + "UpdateEnhancedMeasurementSettings": { + "methods": [ + "updateEnhancedMeasurementSettings" + ] + }, + "UpdateEventCreateRule": { + "methods": [ + "updateEventCreateRule" + ] + }, + "UpdateExpandedDataSet": { + "methods": [ + "updateExpandedDataSet" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "updateGoogleAdsLink" + ] + }, + "UpdateGoogleSignalsSettings": { + "methods": [ + "updateGoogleSignalsSettings" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "updateMeasurementProtocolSecret" + ] + }, + "UpdateProperty": { + "methods": [ + "updateProperty" + ] + }, + "UpdateSKAdNetworkConversionValueSchema": { + "methods": [ + "updateSKAdNetworkConversionValueSchema" + ] + }, + "UpdateSearchAds360Link": { + "methods": [ + "updateSearchAds360Link" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json new file mode 100644 index 000000000000..3355e5091af3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json @@ -0,0 +1,685 @@ +{ + "interfaces": { + "google.analytics.admin.v1alpha.AnalyticsAdminService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE", + "UNKNOWN" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "AcknowledgeUserDataCollection": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ArchiveAudience": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ArchiveCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ArchiveCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "BatchCreateAccessBindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "BatchDeleteAccessBindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "BatchGetAccessBindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "BatchUpdateAccessBindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateAccessBinding": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateAdSenseLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateAudience": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateChannelGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateConnectedSiteTag": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateExpandedDataSet": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateRollupProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSKAdNetworkConversionValueSchema": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSubproperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSubpropertyEventFilter": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteAccessBinding": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteAccount": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAdSenseLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteChannelGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConnectedSiteTag": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteExpandedDataSet": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteProperty": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteSKAdNetworkConversionValueSchema": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteSubpropertyEventFilter": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "FetchAutomatedGa4ConfigurationOptOut": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "FetchConnectedGa4Property": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAccessBinding": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAccount": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetAdSenseLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAttributionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAudience": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetBigQueryLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetChannelGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataRedactionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataSharingSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetEnhancedMeasurementSettings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetExpandedDataSet": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetGlobalSiteTag": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetGoogleSignalsSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetProperty": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSKAdNetworkConversionValueSchema": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccessBindings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccountSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccounts": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListAdSenseLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAudiences": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListBigQueryLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListChannelGroups": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConnectedSiteTags": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConversionEvents": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomDimensions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomMetrics": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDisplayVideo360AdvertiserLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListEventCreateRules": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListExpandedDataSets": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFirebaseLinks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListGoogleAdsLinks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListMeasurementProtocolSecrets": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListProperties": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListRollupPropertySourceLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSKAdNetworkConversionValueSchemas": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListSearchAds360Links": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ProvisionAccountTicket": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "RunAccessReport": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SearchChangeHistoryEvents": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SetAutomatedGa4ConfigurationOptOut": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAccessBinding": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAccount": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAttributionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAudience": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateChannelGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataRedactionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateEnhancedMeasurementSettings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateExpandedDataSet": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateGoogleSignalsSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateSKAdNetworkConversionValueSchema": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateSearchAds360Link": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php new file mode 100644 index 000000000000..5d77d02ca3fc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php @@ -0,0 +1,238 @@ + [ + 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ + 'ListAccessBindings' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccessBindings', + ], + ], + 'ListAccountSummaries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccountSummaries', + ], + ], + 'ListAccounts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccounts', + ], + ], + 'ListAdSenseLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAdsenseLinks', + ], + ], + 'ListAudiences' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAudiences', + ], + ], + 'ListBigQueryLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getBigqueryLinks', + ], + ], + 'ListChannelGroups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getChannelGroups', + ], + ], + 'ListConversionEvents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConversionEvents', + ], + ], + 'ListCustomDimensions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomDimensions', + ], + ], + 'ListCustomMetrics' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomMetrics', + ], + ], + 'ListDataStreams' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataStreams', + ], + ], + 'ListDisplayVideo360AdvertiserLinkProposals' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinkProposals', + ], + ], + 'ListDisplayVideo360AdvertiserLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinks', + ], + ], + 'ListEventCreateRules' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEventCreateRules', + ], + ], + 'ListExpandedDataSets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getExpandedDataSets', + ], + ], + 'ListFirebaseLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFirebaseLinks', + ], + ], + 'ListGoogleAdsLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getGoogleAdsLinks', + ], + ], + 'ListMeasurementProtocolSecrets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMeasurementProtocolSecrets', + ], + ], + 'ListProperties' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProperties', + ], + ], + 'ListRollupPropertySourceLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRollupPropertySourceLinks', + ], + ], + 'ListSKAdNetworkConversionValueSchemas' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', + ], + ], + 'ListSearchAds360Links' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSearchAds360Links', + ], + ], + 'SearchChangeHistoryEvents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getChangeHistoryEvents', + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php new file mode 100644 index 000000000000..14a5a77eb4e0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php @@ -0,0 +1,1536 @@ + [ + 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ + 'AcknowledgeUserDataCollection' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{property=properties/*}:acknowledgeUserDataCollection', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'ApproveDisplayVideo360AdvertiserLinkProposal' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ArchiveAudience' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{name=properties/*/audiences/*}:archive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ArchiveCustomDimension' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}:archive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ArchiveCustomMetric' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{name=properties/*/customMetrics/*}:archive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'BatchCreateAccessBindings' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchCreate', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchCreate', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeleteAccessBindings' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchDelete', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchDelete', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchGetAccessBindings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchGet', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchGet', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateAccessBindings' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchUpdate', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CancelDisplayVideo360AdvertiserLinkProposal' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateAccessBinding' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings', + 'body' => 'access_binding', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings', + 'body' => 'access_binding', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateAdSenseLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/adSenseLinks', + 'body' => 'adsense_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateAudience' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/audiences', + 'body' => 'audience', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChannelGroup' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/channelGroups', + 'body' => 'channel_group', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateConnectedSiteTag' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:createConnectedSiteTag', + 'body' => '*', + ], + 'CreateConversionEvent' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', + 'body' => 'conversion_event', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomDimension' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/customDimensions', + 'body' => 'custom_dimension', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomMetric' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/customMetrics', + 'body' => 'custom_metric', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataStream' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams', + 'body' => 'data_stream', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDisplayVideo360AdvertiserLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks', + 'body' => 'display_video_360_advertiser_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDisplayVideo360AdvertiserLinkProposal' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals', + 'body' => 'display_video_360_advertiser_link_proposal', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEventCreateRule' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules', + 'body' => 'event_create_rule', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateExpandedDataSet' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets', + 'body' => 'expanded_data_set', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFirebaseLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', + 'body' => 'firebase_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateGoogleAdsLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', + 'body' => 'google_ads_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMeasurementProtocolSecret' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', + 'body' => 'measurement_protocol_secret', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateProperty' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties', + 'body' => 'property', + ], + 'CreateRollupProperty' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:createRollupProperty', + 'body' => '*', + ], + 'CreateRollupPropertySourceLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', + 'body' => 'rollup_property_source_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSKAdNetworkConversionValueSchema' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', + 'body' => 'skadnetwork_conversion_value_schema', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSearchAds360Link' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', + 'body' => 'search_ads_360_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSubproperty' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:createSubproperty', + 'body' => '*', + ], + 'CreateSubpropertyEventFilter' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters', + 'body' => 'subproperty_event_filter', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAccessBinding' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=accounts/*/accessBindings/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/accessBindings/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAccount' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=accounts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteAdSenseLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/adSenseLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteChannelGroup' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/channelGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteConnectedSiteTag' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:deleteConnectedSiteTag', + 'body' => '*', + ], + 'DeleteConversionEvent' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/conversionEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataStream' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDisplayVideo360AdvertiserLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDisplayVideo360AdvertiserLinkProposal' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEventCreateRule' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteExpandedDataSet' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFirebaseLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/firebaseLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteGoogleAdsLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/googleAdsLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMeasurementProtocolSecret' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteProperty' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRollupPropertySourceLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSKAdNetworkConversionValueSchema' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSearchAds360Link' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSubpropertyEventFilter' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/subpropertyEventFilters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchAutomatedGa4ConfigurationOptOut' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut', + 'body' => '*', + ], + 'FetchConnectedGa4Property' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/properties:fetchConnectedGa4Property', + ], + 'GetAccessBinding' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=accounts/*/accessBindings/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/accessBindings/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAccount' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=accounts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAdSenseLink' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/adSenseLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAttributionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/attributionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAudience' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/audiences/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetBigQueryLink' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/bigQueryLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetChannelGroup' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/channelGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConversionEvent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/conversionEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomDimension' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomMetric' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/customMetrics/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataRedactionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataRetentionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataSharingSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=accounts/*/dataSharingSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataStream' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDisplayVideo360AdvertiserLink' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDisplayVideo360AdvertiserLinkProposal' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEnhancedMeasurementSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEventCreateRule' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetExpandedDataSet' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetGlobalSiteTag' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetGoogleSignalsSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/googleSignalsSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMeasurementProtocolSecret' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetProperty' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRollupPropertySourceLink' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSKAdNetworkConversionValueSchema' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSearchAds360Link' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAccessBindings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAccountSummaries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/accountSummaries', + ], + 'ListAccounts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/accounts', + ], + 'ListAdSenseLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/adSenseLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAudiences' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/audiences', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListBigQueryLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/bigQueryLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListChannelGroups' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/channelGroups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListConnectedSiteTags' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:listConnectedSiteTags', + 'body' => '*', + ], + 'ListConversionEvents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomDimensions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/customDimensions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomMetrics' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/customMetrics', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataStreams' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDisplayVideo360AdvertiserLinkProposals' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDisplayVideo360AdvertiserLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEventCreateRules' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListExpandedDataSets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFirebaseLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListGoogleAdsLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMeasurementProtocolSecrets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListProperties' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/properties', + 'queryParams' => [ + 'filter', + ], + ], + 'ListRollupPropertySourceLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSKAdNetworkConversionValueSchemas' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSearchAds360Links' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ProvisionAccountTicket' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/accounts:provisionAccountTicket', + 'body' => '*', + ], + 'RunAccessReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{entity=properties/*}:runAccessReport', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{entity=accounts/*}:runAccessReport', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'entity' => [ + 'getters' => [ + 'getEntity', + ], + ], + ], + ], + 'SearchChangeHistoryEvents' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{account=accounts/*}:searchChangeHistoryEvents', + 'body' => '*', + 'placeholders' => [ + 'account' => [ + 'getters' => [ + 'getAccount', + ], + ], + ], + ], + 'SetAutomatedGa4ConfigurationOptOut' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:setAutomatedGa4ConfigurationOptOut', + 'body' => '*', + ], + 'UpdateAccessBinding' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{access_binding.name=accounts/*/accessBindings/*}', + 'body' => 'access_binding', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{access_binding.name=properties/*/accessBindings/*}', + 'body' => 'access_binding', + ], + ], + 'placeholders' => [ + 'access_binding.name' => [ + 'getters' => [ + 'getAccessBinding', + 'getName', + ], + ], + ], + ], + 'UpdateAccount' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{account.name=accounts/*}', + 'body' => 'account', + 'placeholders' => [ + 'account.name' => [ + 'getters' => [ + 'getAccount', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateAttributionSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{attribution_settings.name=properties/*/attributionSettings}', + 'body' => 'attribution_settings', + 'placeholders' => [ + 'attribution_settings.name' => [ + 'getters' => [ + 'getAttributionSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateAudience' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{audience.name=properties/*/audiences/*}', + 'body' => 'audience', + 'placeholders' => [ + 'audience.name' => [ + 'getters' => [ + 'getAudience', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateChannelGroup' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{channel_group.name=properties/*/channelGroups/*}', + 'body' => 'channel_group', + 'placeholders' => [ + 'channel_group.name' => [ + 'getters' => [ + 'getChannelGroup', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateConversionEvent' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}', + 'body' => 'conversion_event', + 'placeholders' => [ + 'conversion_event.name' => [ + 'getters' => [ + 'getConversionEvent', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateCustomDimension' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}', + 'body' => 'custom_dimension', + 'placeholders' => [ + 'custom_dimension.name' => [ + 'getters' => [ + 'getCustomDimension', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateCustomMetric' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{custom_metric.name=properties/*/customMetrics/*}', + 'body' => 'custom_metric', + 'placeholders' => [ + 'custom_metric.name' => [ + 'getters' => [ + 'getCustomMetric', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataRedactionSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}', + 'body' => 'data_redaction_settings', + 'placeholders' => [ + 'data_redaction_settings.name' => [ + 'getters' => [ + 'getDataRedactionSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataRetentionSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}', + 'body' => 'data_retention_settings', + 'placeholders' => [ + 'data_retention_settings.name' => [ + 'getters' => [ + 'getDataRetentionSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataStream' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{data_stream.name=properties/*/dataStreams/*}', + 'body' => 'data_stream', + 'placeholders' => [ + 'data_stream.name' => [ + 'getters' => [ + 'getDataStream', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDisplayVideo360AdvertiserLink' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}', + 'body' => 'display_video_360_advertiser_link', + 'placeholders' => [ + 'display_video_360_advertiser_link.name' => [ + 'getters' => [ + 'getDisplayVideo360AdvertiserLink', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateEnhancedMeasurementSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}', + 'body' => 'enhanced_measurement_settings', + 'placeholders' => [ + 'enhanced_measurement_settings.name' => [ + 'getters' => [ + 'getEnhancedMeasurementSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateEventCreateRule' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}', + 'body' => 'event_create_rule', + 'placeholders' => [ + 'event_create_rule.name' => [ + 'getters' => [ + 'getEventCreateRule', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateExpandedDataSet' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}', + 'body' => 'expanded_data_set', + 'placeholders' => [ + 'expanded_data_set.name' => [ + 'getters' => [ + 'getExpandedDataSet', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateGoogleAdsLink' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}', + 'body' => 'google_ads_link', + 'placeholders' => [ + 'google_ads_link.name' => [ + 'getters' => [ + 'getGoogleAdsLink', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateGoogleSignalsSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}', + 'body' => 'google_signals_settings', + 'placeholders' => [ + 'google_signals_settings.name' => [ + 'getters' => [ + 'getGoogleSignalsSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateMeasurementProtocolSecret' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', + 'body' => 'measurement_protocol_secret', + 'placeholders' => [ + 'measurement_protocol_secret.name' => [ + 'getters' => [ + 'getMeasurementProtocolSecret', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateProperty' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{property.name=properties/*}', + 'body' => 'property', + 'placeholders' => [ + 'property.name' => [ + 'getters' => [ + 'getProperty', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSKAdNetworkConversionValueSchema' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', + 'body' => 'skadnetwork_conversion_value_schema', + 'placeholders' => [ + 'skadnetwork_conversion_value_schema.name' => [ + 'getters' => [ + 'getSkadnetworkConversionValueSchema', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSearchAds360Link' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}', + 'body' => 'search_ads_360_link', + 'placeholders' => [ + 'search_ads_360_link.name' => [ + 'getters' => [ + 'getSearchAds360Link', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php new file mode 100644 index 000000000000..5905bce3b087 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php @@ -0,0 +1,8578 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AnalyticsAdminServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AnalyticsAdminServiceClient($options); + } + + /** @test */ + public function acknowledgeUserDataCollectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AcknowledgeUserDataCollectionResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + $response = $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($formattedProperty, $actualValue); + $actualValue = $actualRequestObject->getAcknowledgement(); + $this->assertProtobufEquals($acknowledgement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function acknowledgeUserDataCollectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + try { + $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function approveDisplayVideo360AdvertiserLinkProposalTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $response = $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function approveDisplayVideo360AdvertiserLinkProposalExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + try { + $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveAudienceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $gapicClient->archiveAudience($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveAudienceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->archiveAudience($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $gapicClient->archiveCustomDimension($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + try { + $gapicClient->archiveCustomDimension($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $gapicClient->archiveCustomMetric($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + try { + $gapicClient->archiveCustomMetric($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateAccessBindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateAccessBindingsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $requests = []; + $response = $gapicClient->batchCreateAccessBindings($formattedParent, $requests); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateAccessBindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $requests = []; + try { + $gapicClient->batchCreateAccessBindings($formattedParent, $requests); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeleteAccessBindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $requests = []; + $gapicClient->batchDeleteAccessBindings($formattedParent, $requests); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeleteAccessBindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $requests = []; + try { + $gapicClient->batchDeleteAccessBindings($formattedParent, $requests); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchGetAccessBindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchGetAccessBindingsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $formattedNames = [ + $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), + ]; + $response = $gapicClient->batchGetAccessBindings($formattedParent, $formattedNames); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchGetAccessBindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $formattedNames = [ + $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), + ]; + try { + $gapicClient->batchGetAccessBindings($formattedParent, $formattedNames); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateAccessBindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateAccessBindingsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $requests = []; + $response = $gapicClient->batchUpdateAccessBindings($formattedParent, $requests); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateAccessBindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $requests = []; + try { + $gapicClient->batchUpdateAccessBindings($formattedParent, $requests); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelDisplayVideo360AdvertiserLinkProposalTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $validationEmail = 'validationEmail2105669718'; + $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); + $expectedResponse->setName($name2); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setValidationEmail($validationEmail); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $response = $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + try { + $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAccessBindingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $user = 'user3599307'; + $name = 'name3373707'; + $expectedResponse = new AccessBinding(); + $expectedResponse->setUser($user); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $accessBinding = new AccessBinding(); + $response = $gapicClient->createAccessBinding($formattedParent, $accessBinding); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAccessBinding(); + $this->assertProtobufEquals($accessBinding, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAccessBindingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $accessBinding = new AccessBinding(); + try { + $gapicClient->createAccessBinding($formattedParent, $accessBinding); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAdSenseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $adClientCode = 'adClientCode-1866307643'; + $expectedResponse = new AdSenseLink(); + $expectedResponse->setName($name); + $expectedResponse->setAdClientCode($adClientCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $adsenseLink = new AdSenseLink(); + $response = $gapicClient->createAdSenseLink($formattedParent, $adsenseLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAdsenseLink(); + $this->assertProtobufEquals($adsenseLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAdSenseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $adsenseLink = new AdSenseLink(); + try { + $gapicClient->createAdSenseLink($formattedParent, $adsenseLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAudienceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $membershipDurationDays = 1702404985; + $adsPersonalizationEnabled = false; + $expectedResponse = new Audience(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMembershipDurationDays($membershipDurationDays); + $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $audience = new Audience(); + $audienceDisplayName = 'audienceDisplayName1537141193'; + $audience->setDisplayName($audienceDisplayName); + $audienceDescription = 'audienceDescription-1901553832'; + $audience->setDescription($audienceDescription); + $audienceMembershipDurationDays = 1530655195; + $audience->setMembershipDurationDays($audienceMembershipDurationDays); + $audienceFilterClauses = []; + $audience->setFilterClauses($audienceFilterClauses); + $response = $gapicClient->createAudience($formattedParent, $audience); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAudience(); + $this->assertProtobufEquals($audience, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAudienceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $audience = new Audience(); + $audienceDisplayName = 'audienceDisplayName1537141193'; + $audience->setDisplayName($audienceDisplayName); + $audienceDescription = 'audienceDescription-1901553832'; + $audience->setDescription($audienceDescription); + $audienceMembershipDurationDays = 1530655195; + $audience->setMembershipDurationDays($audienceMembershipDurationDays); + $audienceFilterClauses = []; + $audience->setFilterClauses($audienceFilterClauses); + try { + $gapicClient->createAudience($formattedParent, $audience); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChannelGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $systemDefined = false; + $expectedResponse = new ChannelGroup(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setSystemDefined($systemDefined); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $channelGroup = new ChannelGroup(); + $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; + $channelGroup->setDisplayName($channelGroupDisplayName); + $channelGroupGroupingRule = []; + $channelGroup->setGroupingRule($channelGroupGroupingRule); + $response = $gapicClient->createChannelGroup($formattedParent, $channelGroup); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChannelGroup(); + $this->assertProtobufEquals($channelGroup, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChannelGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $channelGroup = new ChannelGroup(); + $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; + $channelGroup->setDisplayName($channelGroupDisplayName); + $channelGroupGroupingRule = []; + $channelGroup->setGroupingRule($channelGroupGroupingRule); + try { + $gapicClient->createChannelGroup($formattedParent, $channelGroup); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConnectedSiteTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CreateConnectedSiteTagResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $connectedSiteTag = new ConnectedSiteTag(); + $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; + $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); + $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; + $connectedSiteTag->setTagId($connectedSiteTagTagId); + $response = $gapicClient->createConnectedSiteTag($connectedSiteTag); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag', $actualFuncCall); + $actualValue = $actualRequestObject->getConnectedSiteTag(); + $this->assertProtobufEquals($connectedSiteTag, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConnectedSiteTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $connectedSiteTag = new ConnectedSiteTag(); + $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; + $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); + $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; + $connectedSiteTag->setTagId($connectedSiteTagTagId); + try { + $gapicClient->createConnectedSiteTag($connectedSiteTag); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $conversionEvent = new ConversionEvent(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->createConversionEvent($conversionEvent, $formattedParent); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getConversionEvent(); + $this->assertProtobufEquals($conversionEvent, $actualValue); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversionEvent = new ConversionEvent(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->createConversionEvent($conversionEvent, $formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customDimension = new CustomDimension(); + $customDimensionParameterName = 'customDimensionParameterName-405505313'; + $customDimension->setParameterName($customDimensionParameterName); + $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; + $customDimension->setDisplayName($customDimensionDisplayName); + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + $customDimension->setScope($customDimensionScope); + $response = $gapicClient->createCustomDimension($formattedParent, $customDimension); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomDimension(); + $this->assertProtobufEquals($customDimension, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customDimension = new CustomDimension(); + $customDimensionParameterName = 'customDimensionParameterName-405505313'; + $customDimension->setParameterName($customDimensionParameterName); + $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; + $customDimension->setDisplayName($customDimensionDisplayName); + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + $customDimension->setScope($customDimensionScope); + try { + $gapicClient->createCustomDimension($formattedParent, $customDimension); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customMetric = new CustomMetric(); + $customMetricParameterName = 'customMetricParameterName1627167443'; + $customMetric->setParameterName($customMetricParameterName); + $customMetricDisplayName = 'customMetricDisplayName-835715284'; + $customMetric->setDisplayName($customMetricDisplayName); + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetric->setMeasurementUnit($customMetricMeasurementUnit); + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + $customMetric->setScope($customMetricScope); + $response = $gapicClient->createCustomMetric($formattedParent, $customMetric); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomMetric(); + $this->assertProtobufEquals($customMetric, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customMetric = new CustomMetric(); + $customMetricParameterName = 'customMetricParameterName1627167443'; + $customMetric->setParameterName($customMetricParameterName); + $customMetricDisplayName = 'customMetricDisplayName-835715284'; + $customMetric->setDisplayName($customMetricDisplayName); + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetric->setMeasurementUnit($customMetricMeasurementUnit); + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + $customMetric->setScope($customMetricScope); + try { + $gapicClient->createCustomMetric($formattedParent, $customMetric); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + $response = $gapicClient->createDataStream($formattedParent, $dataStream); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataStream(); + $this->assertProtobufEquals($dataStream, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + try { + $gapicClient->createDataStream($formattedParent, $dataStream); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDisplayVideo360AdvertiserLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new DisplayVideo360AdvertiserLink(); + $expectedResponse->setName($name); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); + $response = $gapicClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLink(); + $this->assertProtobufEquals($displayVideo360AdvertiserLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDisplayVideo360AdvertiserLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); + try { + $gapicClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDisplayVideo360AdvertiserLinkProposalTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $validationEmail = 'validationEmail2105669718'; + $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); + $expectedResponse->setName($name); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setValidationEmail($validationEmail); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); + $response = $gapicClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLinkProposal(); + $this->assertProtobufEquals($displayVideo360AdvertiserLinkProposal, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDisplayVideo360AdvertiserLinkProposalExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); + try { + $gapicClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEventCreateRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $destinationEvent = 'destinationEvent-1300408535'; + $sourceCopyParameters = true; + $expectedResponse = new EventCreateRule(); + $expectedResponse->setName($name); + $expectedResponse->setDestinationEvent($destinationEvent); + $expectedResponse->setSourceCopyParameters($sourceCopyParameters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $eventCreateRule = new EventCreateRule(); + $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; + $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); + $eventCreateRuleEventConditions = []; + $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); + $response = $gapicClient->createEventCreateRule($formattedParent, $eventCreateRule); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEventCreateRule(); + $this->assertProtobufEquals($eventCreateRule, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEventCreateRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $eventCreateRule = new EventCreateRule(); + $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; + $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); + $eventCreateRuleEventConditions = []; + $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); + try { + $gapicClient->createEventCreateRule($formattedParent, $eventCreateRule); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createExpandedDataSetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new ExpandedDataSet(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $expandedDataSet = new ExpandedDataSet(); + $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; + $expandedDataSet->setDisplayName($expandedDataSetDisplayName); + $response = $gapicClient->createExpandedDataSet($formattedParent, $expandedDataSet); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getExpandedDataSet(); + $this->assertProtobufEquals($expandedDataSet, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createExpandedDataSetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $expandedDataSet = new ExpandedDataSet(); + $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; + $expandedDataSet->setDisplayName($expandedDataSetDisplayName); + try { + $gapicClient->createExpandedDataSet($formattedParent, $expandedDataSet); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFirebaseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $project = 'project-309310695'; + $expectedResponse = new FirebaseLink(); + $expectedResponse->setName($name); + $expectedResponse->setProject($project); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + $response = $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFirebaseLink(); + $this->assertProtobufEquals($firebaseLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFirebaseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + try { + $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customerId = 'customerId-1772061412'; + $canManageClients = false; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; + $expectedResponse = new GoogleAdsLink(); + $expectedResponse->setName($name); + $expectedResponse->setCustomerId($customerId); + $expectedResponse->setCanManageClients($canManageClients); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + $response = $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getGoogleAdsLink(); + $this->assertProtobufEquals($googleAdsLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + try { + $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $response = $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); + $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + try { + $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $response = $gapicClient->createProperty($property); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + try { + $gapicClient->createProperty($property); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CreateRollupPropertyResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $rollupProperty = new Property(); + $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; + $rollupProperty->setDisplayName($rollupPropertyDisplayName); + $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; + $rollupProperty->setTimeZone($rollupPropertyTimeZone); + $response = $gapicClient->createRollupProperty($rollupProperty); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getRollupProperty(); + $this->assertProtobufEquals($rollupProperty, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $rollupProperty = new Property(); + $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; + $rollupProperty->setDisplayName($rollupPropertyDisplayName); + $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; + $rollupProperty->setTimeZone($rollupPropertyTimeZone); + try { + $gapicClient->createRollupProperty($rollupProperty); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $sourceProperty = 'sourceProperty2069271929'; + $expectedResponse = new RollupPropertySourceLink(); + $expectedResponse->setName($name); + $expectedResponse->setSourceProperty($sourceProperty); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $rollupPropertySourceLink = new RollupPropertySourceLink(); + $response = $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRollupPropertySourceLink(); + $this->assertProtobufEquals($rollupPropertySourceLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertySourceLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $rollupPropertySourceLink = new RollupPropertySourceLink(); + try { + $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSKAdNetworkConversionValueSchemaTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $applyConversionValues = true; + $expectedResponse = new SKAdNetworkConversionValueSchema(); + $expectedResponse->setName($name); + $expectedResponse->setApplyConversionValues($applyConversionValues); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); + $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); + $response = $gapicClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); + $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSKAdNetworkConversionValueSchemaExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); + $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); + try { + $gapicClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSearchAds360LinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new SearchAds360Link(); + $expectedResponse->setName($name); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $searchAds360Link = new SearchAds360Link(); + $response = $gapicClient->createSearchAds360Link($formattedParent, $searchAds360Link); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSearchAds360Link(); + $this->assertProtobufEquals($searchAds360Link, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSearchAds360LinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $searchAds360Link = new SearchAds360Link(); + try { + $gapicClient->createSearchAds360Link($formattedParent, $searchAds360Link); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSubpropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CreateSubpropertyResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subproperty = new Property(); + $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; + $subproperty->setDisplayName($subpropertyDisplayName); + $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; + $subproperty->setTimeZone($subpropertyTimeZone); + $response = $gapicClient->createSubproperty($formattedParent, $subproperty); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSubproperty(); + $this->assertProtobufEquals($subproperty, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSubpropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subproperty = new Property(); + $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; + $subproperty->setDisplayName($subpropertyDisplayName); + $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; + $subproperty->setTimeZone($subpropertyTimeZone); + try { + $gapicClient->createSubproperty($formattedParent, $subproperty); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSubpropertyEventFilterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $applyToProperty = 'applyToProperty-1639692344'; + $expectedResponse = new SubpropertyEventFilter(); + $expectedResponse->setName($name); + $expectedResponse->setApplyToProperty($applyToProperty); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subpropertyEventFilter = new SubpropertyEventFilter(); + $subpropertyEventFilterFilterClauses = []; + $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); + $response = $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSubpropertyEventFilter(); + $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSubpropertyEventFilterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subpropertyEventFilter = new SubpropertyEventFilter(); + $subpropertyEventFilterFilterClauses = []; + $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); + try { + $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccessBindingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + $gapicClient->deleteAccessBinding($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccessBindingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + try { + $gapicClient->deleteAccessBinding($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $gapicClient->deleteAccount($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->deleteAccount($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAdSenseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + $gapicClient->deleteAdSenseLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAdSenseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + try { + $gapicClient->deleteAdSenseLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteChannelGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + $gapicClient->deleteChannelGroup($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteChannelGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + try { + $gapicClient->deleteChannelGroup($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConnectedSiteTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $gapicClient->deleteConnectedSiteTag(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConnectedSiteTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->deleteConnectedSiteTag(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $gapicClient->deleteConversionEvent($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + try { + $gapicClient->deleteConversionEvent($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $gapicClient->deleteDataStream($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->deleteDataStream($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDisplayVideo360AdvertiserLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + $gapicClient->deleteDisplayVideo360AdvertiserLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDisplayVideo360AdvertiserLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + try { + $gapicClient->deleteDisplayVideo360AdvertiserLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDisplayVideo360AdvertiserLinkProposalTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + try { + $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEventCreateRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); + $gapicClient->deleteEventCreateRule($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEventCreateRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); + try { + $gapicClient->deleteEventCreateRule($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteExpandedDataSetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); + $gapicClient->deleteExpandedDataSet($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteExpandedDataSetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); + try { + $gapicClient->deleteExpandedDataSet($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFirebaseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + $gapicClient->deleteFirebaseLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFirebaseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + try { + $gapicClient->deleteFirebaseLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + $gapicClient->deleteGoogleAdsLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + try { + $gapicClient->deleteGoogleAdsLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $gapicClient->deleteMeasurementProtocolSecret($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + try { + $gapicClient->deleteMeasurementProtocolSecret($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name2); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->deleteProperty($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->deleteProperty($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + $gapicClient->deleteRollupPropertySourceLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRollupPropertySourceLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + try { + $gapicClient->deleteRollupPropertySourceLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSKAdNetworkConversionValueSchemaTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + $gapicClient->deleteSKAdNetworkConversionValueSchema($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSKAdNetworkConversionValueSchemaExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + try { + $gapicClient->deleteSKAdNetworkConversionValueSchema($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSearchAds360LinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + $gapicClient->deleteSearchAds360Link($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSearchAds360LinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + try { + $gapicClient->deleteSearchAds360Link($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSubpropertyEventFilterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + $gapicClient->deleteSubpropertyEventFilter($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSubpropertyEventFilterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + try { + $gapicClient->deleteSubpropertyEventFilter($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchAutomatedGa4ConfigurationOptOutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $optOut = true; + $expectedResponse = new FetchAutomatedGa4ConfigurationOptOutResponse(); + $expectedResponse->setOptOut($optOut); + $transport->addResponse($expectedResponse); + // Mock request + $property = 'property-993141291'; + $response = $gapicClient->fetchAutomatedGa4ConfigurationOptOut($property); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchAutomatedGa4ConfigurationOptOutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = 'property-993141291'; + try { + $gapicClient->fetchAutomatedGa4ConfigurationOptOut($property); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchConnectedGa4PropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $property2 = 'property2-926037944'; + $expectedResponse = new FetchConnectedGa4PropertyResponse(); + $expectedResponse->setProperty($property2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->fetchConnectedGa4Property($formattedProperty); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($formattedProperty, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchConnectedGa4PropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->fetchConnectedGa4Property($formattedProperty); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccessBindingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $user = 'user3599307'; + $name2 = 'name2-1052831874'; + $expectedResponse = new AccessBinding(); + $expectedResponse->setUser($user); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + $response = $gapicClient->getAccessBinding($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccessBindingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); + try { + $gapicClient->getAccessBinding($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $deleted = false; + $expectedResponse = new Account(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setDeleted($deleted); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $response = $gapicClient->getAccount($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->getAccount($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAdSenseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $adClientCode = 'adClientCode-1866307643'; + $expectedResponse = new AdSenseLink(); + $expectedResponse->setName($name2); + $expectedResponse->setAdClientCode($adClientCode); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + $response = $gapicClient->getAdSenseLink($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAdSenseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); + try { + $gapicClient->getAdSenseLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttributionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new AttributionSettings(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); + $response = $gapicClient->getAttributionSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAttributionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); + try { + $gapicClient->getAttributionSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAudienceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $membershipDurationDays = 1702404985; + $adsPersonalizationEnabled = false; + $expectedResponse = new Audience(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMembershipDurationDays($membershipDurationDays); + $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); + $response = $gapicClient->getAudience($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAudienceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); + try { + $gapicClient->getAudience($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBigQueryLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $project = 'project-309310695'; + $dailyExportEnabled = true; + $streamingExportEnabled = false; + $freshDailyExportEnabled = false; + $includeAdvertisingId = false; + $expectedResponse = new BigQueryLink(); + $expectedResponse->setName($name2); + $expectedResponse->setProject($project); + $expectedResponse->setDailyExportEnabled($dailyExportEnabled); + $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); + $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); + $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); + $response = $gapicClient->getBigQueryLink($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBigQueryLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); + try { + $gapicClient->getBigQueryLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChannelGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $systemDefined = false; + $expectedResponse = new ChannelGroup(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setSystemDefined($systemDefined); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + $response = $gapicClient->getChannelGroup($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChannelGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); + try { + $gapicClient->getChannelGroup($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name2); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $response = $gapicClient->getConversionEvent($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + try { + $gapicClient->getConversionEvent($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name2); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $response = $gapicClient->getCustomDimension($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + try { + $gapicClient->getCustomDimension($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name2); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $response = $gapicClient->getCustomMetric($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + try { + $gapicClient->getCustomMetric($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRedactionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $emailRedactionEnabled = true; + $queryParameterRedactionEnabled = true; + $expectedResponse = new DataRedactionSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); + $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getDataRedactionSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRedactionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getDataRedactionSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); + $response = $gapicClient->getDataRetentionSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRetentionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); + try { + $gapicClient->getDataRetentionSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataSharingSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $sharingWithGoogleSupportEnabled = false; + $sharingWithGoogleAssignedSalesEnabled = false; + $sharingWithGoogleAnySalesEnabled = false; + $sharingWithGoogleProductsEnabled = true; + $sharingWithOthersEnabled = false; + $expectedResponse = new DataSharingSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); + $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); + $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); + $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); + $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); + $response = $gapicClient->getDataSharingSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataSharingSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); + try { + $gapicClient->getDataSharingSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getDataStream($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getDataStream($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDisplayVideo360AdvertiserLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new DisplayVideo360AdvertiserLink(); + $expectedResponse->setName($name2); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + $response = $gapicClient->getDisplayVideo360AdvertiserLink($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDisplayVideo360AdvertiserLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + try { + $gapicClient->getDisplayVideo360AdvertiserLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDisplayVideo360AdvertiserLinkProposalTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $validationEmail = 'validationEmail2105669718'; + $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); + $expectedResponse->setName($name2); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setValidationEmail($validationEmail); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $response = $gapicClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDisplayVideo360AdvertiserLinkProposalExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + try { + $gapicClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEnhancedMeasurementSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $streamEnabled = true; + $scrollsEnabled = true; + $outboundClicksEnabled = true; + $siteSearchEnabled = true; + $videoEngagementEnabled = false; + $fileDownloadsEnabled = true; + $pageChangesEnabled = false; + $formInteractionsEnabled = true; + $searchQueryParameter = 'searchQueryParameter638048347'; + $uriQueryParameter = 'uriQueryParameter964636703'; + $expectedResponse = new EnhancedMeasurementSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setStreamEnabled($streamEnabled); + $expectedResponse->setScrollsEnabled($scrollsEnabled); + $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); + $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); + $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); + $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); + $expectedResponse->setPageChangesEnabled($pageChangesEnabled); + $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); + $expectedResponse->setSearchQueryParameter($searchQueryParameter); + $expectedResponse->setUriQueryParameter($uriQueryParameter); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getEnhancedMeasurementSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEnhancedMeasurementSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getEnhancedMeasurementSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEventCreateRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $destinationEvent = 'destinationEvent-1300408535'; + $sourceCopyParameters = true; + $expectedResponse = new EventCreateRule(); + $expectedResponse->setName($name2); + $expectedResponse->setDestinationEvent($destinationEvent); + $expectedResponse->setSourceCopyParameters($sourceCopyParameters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); + $response = $gapicClient->getEventCreateRule($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEventCreateRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); + try { + $gapicClient->getEventCreateRule($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getExpandedDataSetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new ExpandedDataSet(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); + $response = $gapicClient->getExpandedDataSet($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getExpandedDataSetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); + try { + $gapicClient->getExpandedDataSet($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGlobalSiteTagTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $snippet = 'snippet-2061635299'; + $expectedResponse = new GlobalSiteTag(); + $expectedResponse->setName($name2); + $expectedResponse->setSnippet($snippet); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getGlobalSiteTag($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGlobalSiteTagExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getGlobalSiteTag($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGoogleSignalsSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new GoogleSignalsSettings(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); + $response = $gapicClient->getGoogleSignalsSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGoogleSignalsSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); + try { + $gapicClient->getGoogleSignalsSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $response = $gapicClient->getMeasurementProtocolSecret($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + try { + $gapicClient->getMeasurementProtocolSecret($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name2); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->getProperty($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->getProperty($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $sourceProperty = 'sourceProperty2069271929'; + $expectedResponse = new RollupPropertySourceLink(); + $expectedResponse->setName($name2); + $expectedResponse->setSourceProperty($sourceProperty); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + $response = $gapicClient->getRollupPropertySourceLink($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRollupPropertySourceLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + try { + $gapicClient->getRollupPropertySourceLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSKAdNetworkConversionValueSchemaTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $applyConversionValues = true; + $expectedResponse = new SKAdNetworkConversionValueSchema(); + $expectedResponse->setName($name2); + $expectedResponse->setApplyConversionValues($applyConversionValues); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + $response = $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSKAdNetworkConversionValueSchemaExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + try { + $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSearchAds360LinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new SearchAds360Link(); + $expectedResponse->setName($name2); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + $response = $gapicClient->getSearchAds360Link($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSearchAds360LinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + try { + $gapicClient->getSearchAds360Link($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessBindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accessBindingsElement = new AccessBinding(); + $accessBindings = [ + $accessBindingsElement, + ]; + $expectedResponse = new ListAccessBindingsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccessBindings($accessBindings); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $response = $gapicClient->listAccessBindings($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccessBindings()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccessBindingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->listAccessBindings($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountSummariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accountSummariesElement = new AccountSummary(); + $accountSummaries = [ + $accountSummariesElement, + ]; + $expectedResponse = new ListAccountSummariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccountSummaries($accountSummaries); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listAccountSummaries(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountSummariesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listAccountSummaries(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accountsElement = new Account(); + $accounts = [ + $accountsElement, + ]; + $expectedResponse = new ListAccountsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccounts($accounts); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listAccounts(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listAccounts(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdSenseLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $adsenseLinksElement = new AdSenseLink(); + $adsenseLinks = [ + $adsenseLinksElement, + ]; + $expectedResponse = new ListAdSenseLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAdsenseLinks($adsenseLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listAdSenseLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAdsenseLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAdSenseLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listAdSenseLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAudiencesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $audiencesElement = new Audience(); + $audiences = [ + $audiencesElement, + ]; + $expectedResponse = new ListAudiencesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAudiences($audiences); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listAudiences($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAudiences()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAudiencesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listAudiences($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBigQueryLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $bigqueryLinksElement = new BigQueryLink(); + $bigqueryLinks = [ + $bigqueryLinksElement, + ]; + $expectedResponse = new ListBigQueryLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setBigqueryLinks($bigqueryLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listBigQueryLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getBigqueryLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBigQueryLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listBigQueryLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChannelGroupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $channelGroupsElement = new ChannelGroup(); + $channelGroups = [ + $channelGroupsElement, + ]; + $expectedResponse = new ListChannelGroupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setChannelGroups($channelGroups); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listChannelGroups($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChannelGroups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChannelGroupsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listChannelGroups($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConnectedSiteTagsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListConnectedSiteTagsResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listConnectedSiteTags(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConnectedSiteTagsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listConnectedSiteTags(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversionEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $conversionEventsElement = new ConversionEvent(); + $conversionEvents = [ + $conversionEventsElement, + ]; + $expectedResponse = new ListConversionEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConversionEvents($conversionEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listConversionEvents($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversionEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listConversionEvents($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomDimensionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customDimensionsElement = new CustomDimension(); + $customDimensions = [ + $customDimensionsElement, + ]; + $expectedResponse = new ListCustomDimensionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomDimensions($customDimensions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listCustomDimensions($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomDimensionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listCustomDimensions($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomMetricsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customMetricsElement = new CustomMetric(); + $customMetrics = [ + $customMetricsElement, + ]; + $expectedResponse = new ListCustomMetricsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomMetrics($customMetrics); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listCustomMetrics($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomMetricsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listCustomMetrics($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataStreamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataStreamsElement = new DataStream(); + $dataStreams = [ + $dataStreamsElement, + ]; + $expectedResponse = new ListDataStreamsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataStreams($dataStreams); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listDataStreams($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataStreamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listDataStreams($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDisplayVideo360AdvertiserLinkProposalsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $displayVideo360AdvertiserLinkProposalsElement = new DisplayVideo360AdvertiserLinkProposal(); + $displayVideo360AdvertiserLinkProposals = [ + $displayVideo360AdvertiserLinkProposalsElement, + ]; + $expectedResponse = new ListDisplayVideo360AdvertiserLinkProposalsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDisplayVideo360AdvertiserLinkProposals($displayVideo360AdvertiserLinkProposals); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinkProposals()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDisplayVideo360AdvertiserLinkProposalsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDisplayVideo360AdvertiserLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $displayVideo360AdvertiserLinksElement = new DisplayVideo360AdvertiserLink(); + $displayVideo360AdvertiserLinks = [ + $displayVideo360AdvertiserLinksElement, + ]; + $expectedResponse = new ListDisplayVideo360AdvertiserLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDisplayVideo360AdvertiserLinks($displayVideo360AdvertiserLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listDisplayVideo360AdvertiserLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDisplayVideo360AdvertiserLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listDisplayVideo360AdvertiserLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEventCreateRulesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $eventCreateRulesElement = new EventCreateRule(); + $eventCreateRules = [ + $eventCreateRulesElement, + ]; + $expectedResponse = new ListEventCreateRulesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEventCreateRules($eventCreateRules); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->listEventCreateRules($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEventCreateRules()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEventCreateRulesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->listEventCreateRules($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listExpandedDataSetsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $expandedDataSetsElement = new ExpandedDataSet(); + $expandedDataSets = [ + $expandedDataSetsElement, + ]; + $expectedResponse = new ListExpandedDataSetsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setExpandedDataSets($expandedDataSets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listExpandedDataSets($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getExpandedDataSets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listExpandedDataSetsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listExpandedDataSets($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFirebaseLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $firebaseLinksElement = new FirebaseLink(); + $firebaseLinks = [ + $firebaseLinksElement, + ]; + $expectedResponse = new ListFirebaseLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFirebaseLinks($firebaseLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listFirebaseLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFirebaseLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listFirebaseLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGoogleAdsLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $googleAdsLinksElement = new GoogleAdsLink(); + $googleAdsLinks = [ + $googleAdsLinksElement, + ]; + $expectedResponse = new ListGoogleAdsLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setGoogleAdsLinks($googleAdsLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listGoogleAdsLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGoogleAdsLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listGoogleAdsLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMeasurementProtocolSecretsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); + $measurementProtocolSecrets = [ + $measurementProtocolSecretsElement, + ]; + $expectedResponse = new ListMeasurementProtocolSecretsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->listMeasurementProtocolSecrets($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMeasurementProtocolSecretsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->listMeasurementProtocolSecrets($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPropertiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $propertiesElement = new Property(); + $properties = [ + $propertiesElement, + ]; + $expectedResponse = new ListPropertiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProperties($properties); + $transport->addResponse($expectedResponse); + // Mock request + $filter = 'filter-1274492040'; + $response = $gapicClient->listProperties($filter); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties', $actualFuncCall); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPropertiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $filter = 'filter-1274492040'; + try { + $gapicClient->listProperties($filter); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRollupPropertySourceLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rollupPropertySourceLinksElement = new RollupPropertySourceLink(); + $rollupPropertySourceLinks = [ + $rollupPropertySourceLinksElement, + ]; + $expectedResponse = new ListRollupPropertySourceLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRollupPropertySourceLinks($rollupPropertySourceLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listRollupPropertySourceLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRollupPropertySourceLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRollupPropertySourceLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listRollupPropertySourceLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSKAdNetworkConversionValueSchemasTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemas = [ + $skadnetworkConversionValueSchemasElement, + ]; + $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSKAdNetworkConversionValueSchemasExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSearchAds360LinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $searchAds360LinksElement = new SearchAds360Link(); + $searchAds360Links = [ + $searchAds360LinksElement, + ]; + $expectedResponse = new ListSearchAds360LinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSearchAds360Links($searchAds360Links); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listSearchAds360Links($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSearchAds360LinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listSearchAds360Links($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionAccountTicketTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accountTicketId = 'accountTicketId-442102884'; + $expectedResponse = new ProvisionAccountTicketResponse(); + $expectedResponse->setAccountTicketId($accountTicketId); + $transport->addResponse($expectedResponse); + $response = $gapicClient->provisionAccountTicket(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionAccountTicketExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->provisionAccountTicket(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runAccessReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $expectedResponse = new RunAccessReportResponse(); + $expectedResponse->setRowCount($rowCount); + $transport->addResponse($expectedResponse); + $response = $gapicClient->runAccessReport(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runAccessReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->runAccessReport(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchChangeHistoryEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $changeHistoryEventsElement = new ChangeHistoryEvent(); + $changeHistoryEvents = [ + $changeHistoryEventsElement, + ]; + $expectedResponse = new SearchChangeHistoryEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); + $response = $gapicClient->searchChangeHistoryEvents($formattedAccount); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($formattedAccount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchChangeHistoryEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->searchChangeHistoryEvents($formattedAccount); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAutomatedGa4ConfigurationOptOutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new SetAutomatedGa4ConfigurationOptOutResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $property = 'property-993141291'; + $response = $gapicClient->setAutomatedGa4ConfigurationOptOut($property); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAutomatedGa4ConfigurationOptOutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = 'property-993141291'; + try { + $gapicClient->setAutomatedGa4ConfigurationOptOut($property); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccessBindingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $user = 'user3599307'; + $name = 'name3373707'; + $expectedResponse = new AccessBinding(); + $expectedResponse->setUser($user); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $accessBinding = new AccessBinding(); + $response = $gapicClient->updateAccessBinding($accessBinding); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding', $actualFuncCall); + $actualValue = $actualRequestObject->getAccessBinding(); + $this->assertProtobufEquals($accessBinding, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccessBindingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $accessBinding = new AccessBinding(); + try { + $gapicClient->updateAccessBinding($accessBinding); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $deleted = false; + $expectedResponse = new Account(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setDeleted($deleted); + $transport->addResponse($expectedResponse); + // Mock request + $account = new Account(); + $accountDisplayName = 'accountDisplayName-616446464'; + $account->setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAccount($account, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $account = new Account(); + $accountDisplayName = 'accountDisplayName-616446464'; + $account->setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + try { + $gapicClient->updateAccount($account, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAttributionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new AttributionSettings(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $attributionSettings = new AttributionSettings(); + $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); + $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); + $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; + $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); + $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; + $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAttributionSettings($attributionSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getAttributionSettings(); + $this->assertProtobufEquals($attributionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAttributionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $attributionSettings = new AttributionSettings(); + $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); + $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); + $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; + $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); + $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; + $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); + $updateMask = new FieldMask(); + try { + $gapicClient->updateAttributionSettings($attributionSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAudienceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $membershipDurationDays = 1702404985; + $adsPersonalizationEnabled = false; + $expectedResponse = new Audience(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setMembershipDurationDays($membershipDurationDays); + $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $audience = new Audience(); + $audienceDisplayName = 'audienceDisplayName1537141193'; + $audience->setDisplayName($audienceDisplayName); + $audienceDescription = 'audienceDescription-1901553832'; + $audience->setDescription($audienceDescription); + $audienceMembershipDurationDays = 1530655195; + $audience->setMembershipDurationDays($audienceMembershipDurationDays); + $audienceFilterClauses = []; + $audience->setFilterClauses($audienceFilterClauses); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAudience($audience, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience', $actualFuncCall); + $actualValue = $actualRequestObject->getAudience(); + $this->assertProtobufEquals($audience, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAudienceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $audience = new Audience(); + $audienceDisplayName = 'audienceDisplayName1537141193'; + $audience->setDisplayName($audienceDisplayName); + $audienceDescription = 'audienceDescription-1901553832'; + $audience->setDescription($audienceDescription); + $audienceMembershipDurationDays = 1530655195; + $audience->setMembershipDurationDays($audienceMembershipDurationDays); + $audienceFilterClauses = []; + $audience->setFilterClauses($audienceFilterClauses); + $updateMask = new FieldMask(); + try { + $gapicClient->updateAudience($audience, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChannelGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $systemDefined = false; + $expectedResponse = new ChannelGroup(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setSystemDefined($systemDefined); + $transport->addResponse($expectedResponse); + // Mock request + $channelGroup = new ChannelGroup(); + $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; + $channelGroup->setDisplayName($channelGroupDisplayName); + $channelGroupGroupingRule = []; + $channelGroup->setGroupingRule($channelGroupGroupingRule); + $updateMask = new FieldMask(); + $response = $gapicClient->updateChannelGroup($channelGroup, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getChannelGroup(); + $this->assertProtobufEquals($channelGroup, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChannelGroupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $channelGroup = new ChannelGroup(); + $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; + $channelGroup->setDisplayName($channelGroupDisplayName); + $channelGroupGroupingRule = []; + $channelGroup->setGroupingRule($channelGroupGroupingRule); + $updateMask = new FieldMask(); + try { + $gapicClient->updateChannelGroup($channelGroup, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $conversionEvent = new ConversionEvent(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateConversionEvent($conversionEvent, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getConversionEvent(); + $this->assertProtobufEquals($conversionEvent, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversionEvent = new ConversionEvent(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateConversionEvent($conversionEvent, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateCustomDimension($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateCustomDimension($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateCustomMetric($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateCustomMetric($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRedactionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $emailRedactionEnabled = true; + $queryParameterRedactionEnabled = true; + $expectedResponse = new DataRedactionSettings(); + $expectedResponse->setName($name); + $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); + $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $dataRedactionSettings = new DataRedactionSettings(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getDataRedactionSettings(); + $this->assertProtobufEquals($dataRedactionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRedactionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataRedactionSettings = new DataRedactionSettings(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); + $expectedResponse->setName($name); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); + $transport->addResponse($expectedResponse); + // Mock request + $dataRetentionSettings = new DataRetentionSettings(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getDataRetentionSettings(); + $this->assertProtobufEquals($dataRetentionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRetentionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataRetentionSettings = new DataRetentionSettings(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataStream($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataStream($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDisplayVideo360AdvertiserLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new DisplayVideo360AdvertiserLink(); + $expectedResponse->setName($name); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateDisplayVideo360AdvertiserLink($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDisplayVideo360AdvertiserLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateDisplayVideo360AdvertiserLink($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEnhancedMeasurementSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $streamEnabled = true; + $scrollsEnabled = true; + $outboundClicksEnabled = true; + $siteSearchEnabled = true; + $videoEngagementEnabled = false; + $fileDownloadsEnabled = true; + $pageChangesEnabled = false; + $formInteractionsEnabled = true; + $searchQueryParameter = 'searchQueryParameter638048347'; + $uriQueryParameter = 'uriQueryParameter964636703'; + $expectedResponse = new EnhancedMeasurementSettings(); + $expectedResponse->setName($name); + $expectedResponse->setStreamEnabled($streamEnabled); + $expectedResponse->setScrollsEnabled($scrollsEnabled); + $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); + $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); + $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); + $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); + $expectedResponse->setPageChangesEnabled($pageChangesEnabled); + $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); + $expectedResponse->setSearchQueryParameter($searchQueryParameter); + $expectedResponse->setUriQueryParameter($uriQueryParameter); + $transport->addResponse($expectedResponse); + // Mock request + $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); + $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; + $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); + $updateMask = new FieldMask(); + $response = $gapicClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getEnhancedMeasurementSettings(); + $this->assertProtobufEquals($enhancedMeasurementSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEnhancedMeasurementSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); + $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; + $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); + $updateMask = new FieldMask(); + try { + $gapicClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEventCreateRuleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $destinationEvent = 'destinationEvent-1300408535'; + $sourceCopyParameters = true; + $expectedResponse = new EventCreateRule(); + $expectedResponse->setName($name); + $expectedResponse->setDestinationEvent($destinationEvent); + $expectedResponse->setSourceCopyParameters($sourceCopyParameters); + $transport->addResponse($expectedResponse); + // Mock request + $eventCreateRule = new EventCreateRule(); + $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; + $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); + $eventCreateRuleEventConditions = []; + $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); + $updateMask = new FieldMask(); + $response = $gapicClient->updateEventCreateRule($eventCreateRule, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule', $actualFuncCall); + $actualValue = $actualRequestObject->getEventCreateRule(); + $this->assertProtobufEquals($eventCreateRule, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEventCreateRuleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $eventCreateRule = new EventCreateRule(); + $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; + $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); + $eventCreateRuleEventConditions = []; + $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); + $updateMask = new FieldMask(); + try { + $gapicClient->updateEventCreateRule($eventCreateRule, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateExpandedDataSetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new ExpandedDataSet(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $expandedDataSet = new ExpandedDataSet(); + $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; + $expandedDataSet->setDisplayName($expandedDataSetDisplayName); + $updateMask = new FieldMask(); + $response = $gapicClient->updateExpandedDataSet($expandedDataSet, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet', $actualFuncCall); + $actualValue = $actualRequestObject->getExpandedDataSet(); + $this->assertProtobufEquals($expandedDataSet, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateExpandedDataSetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $expandedDataSet = new ExpandedDataSet(); + $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; + $expandedDataSet->setDisplayName($expandedDataSetDisplayName); + $updateMask = new FieldMask(); + try { + $gapicClient->updateExpandedDataSet($expandedDataSet, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customerId = 'customerId-1772061412'; + $canManageClients = false; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; + $expectedResponse = new GoogleAdsLink(); + $expectedResponse->setName($name); + $expectedResponse->setCustomerId($customerId); + $expectedResponse->setCanManageClients($canManageClients); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateGoogleAdsLink($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateGoogleAdsLink($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleSignalsSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new GoogleSignalsSettings(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $googleSignalsSettings = new GoogleSignalsSettings(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getGoogleSignalsSettings(); + $this->assertProtobufEquals($googleSignalsSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleSignalsSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $googleSignalsSettings = new GoogleSignalsSettings(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + $response = $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); + $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + try { + $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + $response = $gapicClient->updateProperty($property, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + try { + $gapicClient->updateProperty($property, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSKAdNetworkConversionValueSchemaTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $applyConversionValues = true; + $expectedResponse = new SKAdNetworkConversionValueSchema(); + $expectedResponse->setName($name); + $expectedResponse->setApplyConversionValues($applyConversionValues); + $transport->addResponse($expectedResponse); + // Mock request + $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); + $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); + $updateMask = new FieldMask(); + $response = $gapicClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema', $actualFuncCall); + $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); + $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSKAdNetworkConversionValueSchemaExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); + $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); + $updateMask = new FieldMask(); + try { + $gapicClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSearchAds360LinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new SearchAds360Link(); + $expectedResponse->setName($name); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateSearchAds360Link($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateSearchAds360LinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateSearchAds360Link($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php new file mode 100644 index 0000000000000000000000000000000000000000..bc7f58527609d07206bda550081c5be34c976325 GIT binary patch literal 3919 zcmbtXUvnB&6fY2BI1oy2Z6?O)%ywI+>8Qj||B^;$30p!XK!Mb%%sBdnWmPI|!V07#i4f4{hIzDBnX17c|i`iq}Wla<< z76;T18RcI#?*z|sIJ>WGN*#;Eb4ux#mtKVi;}(3=B14SxyE-u=`L^w4^} z@Y(z5t<6x7U%L&zZNT=zZX(y^m3-*gyzp#ZdRDyym!&Vt_J}$jvPjk-+nXK??&S5D z65C9vHz6ZM(bvqj$W=&>#ILB(MAv+@@s)ojn-zeEmT#bp5;fBY5U8jy8d z-=Lww>j?q+!At3g`juhTlnK`tRID!vytfy?+rL!GLDqF>L@o6gHlEK5c>w8|2_EvC zKw@6b2KDdwG*+ZD5q#Cdpm7F9V3Op0doGjO;-*AGdOnA&?HEJ!z;h&CW#$^jTa~Twc$scfx4nmMsNS>I(30)Vt$}5CrdercE z#qjMDDk6SG{W%7y*`*CwJJ33N`$p%>rfwY8+f9A1dcUfdbC*a8lKNw9uak?B%aAVV zm1@0hd{OP}=i>NSO0SoLV}fL0Wv@~1Xeg0e;?nmIYc->#SMYs7ADoH)#USu`pj(MNOnk33lws3DQQqRET8&eEY zjIx?8{9k?tFpsz+1l2R7H{e>MskgLFwNbx->4%3}4Vgw_YkIqFboRA6^1KElJQ|Ib zp$oAD*5*v5rE49%B_)>#!biW%gp=y8u_;++qL+MzvCG_%A;X3@ki`rnyRhQB!F5?I z7UJgtWTJeLYmml1`{DZ$g%Vgx)*#b!aqys#mtt5v)97nVGoiiuPXbnDKr~p7veGH3 z!Ln?9K|3nW6$ioXyzHOB36*F;Dr~qS!_tM_g#g3eJ;ThvQV+)(nV1{5VD-$S7xwOr ze`An)7K&#{s9dBFk*~23aW-U);U3BsDzBtk#3w3iIX(EHkD75vXJ4PmbM(7s#|bP`Z{D{ zpPFdr^N7F+Dk#B{;XwMr;plg)j}pA)KEW|0H)A$ZnbL*3bMY7|C@KP}z^aT%8MPip z67S&e&4nd(7eMM;@cJ_h$OpnEAjd%!u1K-S-C3iMGJhl>ErlLVT;C-7koDbfv1=Gu z1abO14f1C`B?U$s_k)Q?s&F}ibc|a}kU5J(9l%w~b*u?v)bVl0`EEiz-wTGg#o@YL zP(8{{&_K$V%cQNiGkrrXU)U|Qm1D-@@Q3hb#PD;la^6@NR{ePD%_zw@r6V&Q4mmyH zs3f@pDMm*oE?Uk&5S}dk1UGQKd~uYOf>4nQpV+{fv9C(O3_oy(xG3aZHrN_a2Tk(b vE%`5VY~v<6T_w-#q&s4bIa(ItcW;Ng(mQemi)?Jq-PVMpT+E)rQ-J>f*$d)W literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php new file mode 100644 index 000000000000..bc598f5e8ab0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php @@ -0,0 +1,318 @@ +internalAddGeneratedFile( + ' +¶š +3google/analytics/admin/v1beta/analytics_admin.protogoogle.analytics.admin.v1beta-google/analytics/admin/v1beta/resources.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"ž +RunAccessReportRequest +entity ( B + +dimensions ( 2..google.analytics.admin.v1beta.AccessDimension< +metrics ( 2+.google.analytics.admin.v1beta.AccessMetricC + date_ranges ( 2..google.analytics.admin.v1beta.AccessDateRangeO +dimension_filter ( 25.google.analytics.admin.v1beta.AccessFilterExpressionL + metric_filter ( 25.google.analytics.admin.v1beta.AccessFilterExpression +offset ( +limit ( + time_zone ( ? + order_bys + ( 2,.google.analytics.admin.v1beta.AccessOrderBy +return_entity_quota ("» +RunAccessReportResponseO +dimension_headers ( 24.google.analytics.admin.v1beta.AccessDimensionHeaderI +metric_headers ( 21.google.analytics.admin.v1beta.AccessMetricHeader6 +rows ( 2(.google.analytics.admin.v1beta.AccessRow + row_count (9 +quota ( 2*.google.analytics.admin.v1beta.AccessQuota"P +GetAccountRequest; +name ( B-àAúA\' +%analyticsadmin.googleapis.com/Account"R +ListAccountsRequest + page_size ( + +page_token (  + show_deleted ("i +ListAccountsResponse8 +accounts ( 2&.google.analytics.admin.v1beta.Account +next_page_token ( "S +DeleteAccountRequest; +name ( B-àAúA\' +%analyticsadmin.googleapis.com/Account"Š +UpdateAccountRequest< +account ( 2&.google.analytics.admin.v1beta.AccountBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"n +ProvisionAccountTicketRequest7 +account ( 2&.google.analytics.admin.v1beta.Account + redirect_uri ( "; +ProvisionAccountTicketResponse +account_ticket_id ( "R +GetPropertyRequest< +name ( B.àAúA( +&analyticsadmin.googleapis.com/Property"i +ListPropertiesRequest +filter ( BàA + page_size ( + +page_token (  + show_deleted ("n +ListPropertiesResponse; + +properties ( 2\'.google.analytics.admin.v1beta.Property +next_page_token ( " +UpdatePropertyRequest> +property ( 2\'.google.analytics.admin.v1beta.PropertyBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"W +CreatePropertyRequest> +property ( 2\'.google.analytics.admin.v1beta.PropertyBàA"U +DeletePropertyRequest< +name ( B.àAúA( +&analyticsadmin.googleapis.com/Property"¨ +CreateFirebaseLinkRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkG + firebase_link ( 2+.google.analytics.admin.v1beta.FirebaseLinkBàA"] +DeleteFirebaseLinkRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/FirebaseLink"… +ListFirebaseLinksRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLink + page_size ( + +page_token ( "y +ListFirebaseLinksResponseC +firebase_links ( 2+.google.analytics.admin.v1beta.FirebaseLink +next_page_token ( "­ +CreateGoogleAdsLinkRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLinkJ +google_ads_link ( 2,.google.analytics.admin.v1beta.GoogleAdsLinkBàA"™ +UpdateGoogleAdsLinkRequestE +google_ads_link ( 2,.google.analytics.admin.v1beta.GoogleAdsLink4 + update_mask ( 2.google.protobuf.FieldMaskBàA"_ +DeleteGoogleAdsLinkRequestA +name ( B3àAúA- ++analyticsadmin.googleapis.com/GoogleAdsLink"‡ +ListGoogleAdsLinksRequestC +parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLink + page_size ( + +page_token ( "} +ListGoogleAdsLinksResponseF +google_ads_links ( 2,.google.analytics.admin.v1beta.GoogleAdsLink +next_page_token ( "h +GetDataSharingSettingsRequestG +name ( B9àAúA3 +1analyticsadmin.googleapis.com/DataSharingSettings"D +ListAccountSummariesRequest + page_size ( + +page_token ( " +ListAccountSummariesResponseH +account_summaries ( 2-.google.analytics.admin.v1beta.AccountSummary +next_page_token ( "† +$AcknowledgeUserDataCollectionRequest@ +property ( B.àAúA( +&analyticsadmin.googleapis.com/Property +acknowledgement ( BàA"\' +%AcknowledgeUserDataCollectionResponse" + SearchChangeHistoryEventsRequest> +account ( B-àAúA\' +%analyticsadmin.googleapis.com/Account@ +property ( B.àAúA( +&analyticsadmin.googleapis.com/PropertyT + resource_type (28.google.analytics.admin.v1beta.ChangeHistoryResourceTypeBàA> +action (2).google.analytics.admin.v1beta.ActionTypeBàA + actor_email ( BàA= +earliest_change_time ( 2.google.protobuf.TimestampBàA; +latest_change_time ( 2.google.protobuf.TimestampBàA + page_size (BàA + +page_token ( BàA"Ž +!SearchChangeHistoryEventsResponseP +change_history_events ( 21.google.analytics.admin.v1beta.ChangeHistoryEvent +next_page_token ( "t +#GetMeasurementProtocolSecretRequestM +name ( B?àAúA9 +7analyticsadmin.googleapis.com/MeasurementProtocolSecret"Ý +&CreateMeasurementProtocolSecretRequestO +parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecretb +measurement_protocol_secret ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecretBàA"w +&DeleteMeasurementProtocolSecretRequestM +name ( B?àAúA9 +7analyticsadmin.googleapis.com/MeasurementProtocolSecret" +&UpdateMeasurementProtocolSecretRequestb +measurement_protocol_secret ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecretBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"Ÿ +%ListMeasurementProtocolSecretsRequestO +parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecret + page_size ( + +page_token ( "¡ +&ListMeasurementProtocolSecretsResponse^ +measurement_protocol_secrets ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecret +next_page_token ( "´ +CreateConversionEventRequestM +conversion_event ( 2..google.analytics.admin.v1beta.ConversionEventBàAE +parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent"£ +UpdateConversionEventRequestM +conversion_event ( 2..google.analytics.admin.v1beta.ConversionEventBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"` +GetConversionEventRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/ConversionEvent"c +DeleteConversionEventRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/ConversionEvent"‹ +ListConversionEventsRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent + page_size ( + +page_token ( "‚ +ListConversionEventsResponseI +conversion_events ( 2..google.analytics.admin.v1beta.ConversionEvent +next_page_token ( "´ +CreateCustomDimensionRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimensionM +custom_dimension ( 2..google.analytics.admin.v1beta.CustomDimensionBàA"ž +UpdateCustomDimensionRequestH +custom_dimension ( 2..google.analytics.admin.v1beta.CustomDimension4 + update_mask ( 2.google.protobuf.FieldMaskBàA"‹ +ListCustomDimensionsRequestE +parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimension + page_size ( + +page_token ( "‚ +ListCustomDimensionsResponseI +custom_dimensions ( 2..google.analytics.admin.v1beta.CustomDimension +next_page_token ( "d +ArchiveCustomDimensionRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/CustomDimension"` +GetCustomDimensionRequestC +name ( B5àAúA/ +-analyticsadmin.googleapis.com/CustomDimension"¨ +CreateCustomMetricRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetricG + custom_metric ( 2+.google.analytics.admin.v1beta.CustomMetricBàA"• +UpdateCustomMetricRequestB + custom_metric ( 2+.google.analytics.admin.v1beta.CustomMetric4 + update_mask ( 2.google.protobuf.FieldMaskBàA"… +ListCustomMetricsRequestB +parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetric + page_size ( + +page_token ( "y +ListCustomMetricsResponseC +custom_metrics ( 2+.google.analytics.admin.v1beta.CustomMetric +next_page_token ( "^ +ArchiveCustomMetricRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/CustomMetric"Z +GetCustomMetricRequest@ +name ( B2àAúA, +*analyticsadmin.googleapis.com/CustomMetric"l +GetDataRetentionSettingsRequestI +name ( B;àAúA5 +3analyticsadmin.googleapis.com/DataRetentionSettings"¶ +"UpdateDataRetentionSettingsRequestZ +data_retention_settings ( 24.google.analytics.admin.v1beta.DataRetentionSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"  +CreateDataStreamRequest@ +parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStreamC + data_stream ( 2).google.analytics.admin.v1beta.DataStreamBàA"Y +DeleteDataStreamRequest> +name ( B0àAúA* +(analyticsadmin.googleapis.com/DataStream" +UpdateDataStreamRequest> + data_stream ( 2).google.analytics.admin.v1beta.DataStream4 + update_mask ( 2.google.protobuf.FieldMaskBàA" +ListDataStreamsRequest@ +parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStream + page_size ( + +page_token ( "s +ListDataStreamsResponse? + data_streams ( 2).google.analytics.admin.v1beta.DataStream +next_page_token ( "V +GetDataStreamRequest> +name ( B0àAúA* +(analyticsadmin.googleapis.com/DataStream2ÛP +AnalyticsAdminService + +GetAccount0.google.analytics.admin.v1beta.GetAccountRequest&.google.analytics.admin.v1beta.Account"(‚Óä“/v1beta/{name=accounts/*}ÚAname‘ + ListAccounts2.google.analytics.admin.v1beta.ListAccountsRequest3.google.analytics.admin.v1beta.ListAccountsResponse"‚Óä“/v1beta/accounts† + DeleteAccount3.google.analytics.admin.v1beta.DeleteAccountRequest.google.protobuf.Empty"(‚Óä“*/v1beta/{name=accounts/*}ÚAname¶ + UpdateAccount3.google.analytics.admin.v1beta.UpdateAccountRequest&.google.analytics.admin.v1beta.Account"H‚Óä“,2!/v1beta/{account.name=accounts/*}:accountÚAaccount,update_maskÉ +ProvisionAccountTicket<.google.analytics.admin.v1beta.ProvisionAccountTicketRequest=.google.analytics.admin.v1beta.ProvisionAccountTicketResponse"2‚Óä“,"\'/v1beta/accounts:provisionAccountTicket:*± +ListAccountSummaries:.google.analytics.admin.v1beta.ListAccountSummariesRequest;.google.analytics.admin.v1beta.ListAccountSummariesResponse" ‚Óä“/v1beta/accountSummaries• + GetProperty1.google.analytics.admin.v1beta.GetPropertyRequest\'.google.analytics.admin.v1beta.Property"*‚Óä“/v1beta/{name=properties/*}ÚAname™ +ListProperties4.google.analytics.admin.v1beta.ListPropertiesRequest5.google.analytics.admin.v1beta.ListPropertiesResponse"‚Óä“/v1beta/properties  +CreateProperty4.google.analytics.admin.v1beta.CreatePropertyRequest\'.google.analytics.admin.v1beta.Property"/‚Óä“"/v1beta/properties:propertyÚAproperty› +DeleteProperty4.google.analytics.admin.v1beta.DeletePropertyRequest\'.google.analytics.admin.v1beta.Property"*‚Óä“*/v1beta/{name=properties/*}ÚAname¾ +UpdateProperty4.google.analytics.admin.v1beta.UpdatePropertyRequest\'.google.analytics.admin.v1beta.Property"M‚Óä“02$/v1beta/{property.name=properties/*}:propertyÚAproperty,update_maskÖ +CreateFirebaseLink8.google.analytics.admin.v1beta.CreateFirebaseLinkRequest+.google.analytics.admin.v1beta.FirebaseLink"Y‚Óä“<"+/v1beta/{parent=properties/*}/firebaseLinks: firebase_linkÚAparent,firebase_link¢ +DeleteFirebaseLink8.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.google.protobuf.Empty":‚Óä“-*+/v1beta/{name=properties/*/firebaseLinks/*}ÚAnameÄ +ListFirebaseLinks7.google.analytics.admin.v1beta.ListFirebaseLinksRequest8.google.analytics.admin.v1beta.ListFirebaseLinksResponse"<‚Óä“-+/v1beta/{parent=properties/*}/firebaseLinksÚAparentÞ +CreateGoogleAdsLink9.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest,.google.analytics.admin.v1beta.GoogleAdsLink"^‚Óä“?",/v1beta/{parent=properties/*}/googleAdsLinks:google_ads_linkÚAparent,google_ads_linkó +UpdateGoogleAdsLink9.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest,.google.analytics.admin.v1beta.GoogleAdsLink"s‚Óä“O2.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest4.google.analytics.admin.v1beta.DataRetentionSettings"@‚Óä“31/v1beta/{name=properties/*/dataRetentionSettings}ÚAname© +UpdateDataRetentionSettingsA.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest4.google.analytics.admin.v1beta.DataRetentionSettings"‚Óä“d2I/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settingsÚA#data_retention_settings,update_maskÊ +CreateDataStream6.google.analytics.admin.v1beta.CreateDataStreamRequest).google.analytics.admin.v1beta.DataStream"S‚Óä“8")/v1beta/{parent=properties/*}/dataStreams: data_streamÚAparent,data_streamœ +DeleteDataStream6.google.analytics.admin.v1beta.DeleteDataStreamRequest.google.protobuf.Empty"8‚Óä“+*)/v1beta/{name=properties/*/dataStreams/*}ÚAnameÛ +UpdateDataStream6.google.analytics.admin.v1beta.UpdateDataStreamRequest).google.analytics.admin.v1beta.DataStream"d‚Óä“D25/v1beta/{data_stream.name=properties/*/dataStreams/*}: data_streamÚAdata_stream,update_mask¼ +ListDataStreams5.google.analytics.admin.v1beta.ListDataStreamsRequest6.google.analytics.admin.v1beta.ListDataStreamsResponse":‚Óä“+)/v1beta/{parent=properties/*}/dataStreamsÚAparent© + GetDataStream3.google.analytics.admin.v1beta.GetDataStreamRequest).google.analytics.admin.v1beta.DataStream"8‚Óä“+)/v1beta/{name=properties/*/dataStreams/*}ÚAnameì +RunAccessReport5.google.analytics.admin.v1beta.RunAccessReportRequest6.google.analytics.admin.v1beta.RunAccessReportResponse"j‚Óä“d"-/v1beta/{entity=properties/*}:runAccessReport:*Z0"+/v1beta/{entity=accounts/*}:runAccessReport:*„ÊAanalyticsadmin.googleapis.comÒAahttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.readonlyB~ +!com.google.analytics.admin.v1betaBAnalyticsAdminProtoPZBgoogle.golang.org/genproto/googleapis/analytics/admin/v1beta;adminbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php new file mode 100644 index 0000000000000000000000000000000000000000..7d44f3171098bfd170b12ed784ffcee89d8015c7 GIT binary patch literal 9580 zcmcgyO>^7E8IHcCl|;d?WYcmI({y6XvQ0H~CTZw82}nXDY?9yrpj4%rVjvQdkWeHC zAnhs{U3%)NryhFhrH9Vs2edQosr?D#0$69W)-K;k2v4hUxq3y=1&6Ac>x7|c6mQ`aV z)riSi#kh;9UbEv??Nscj**vP-TUNuWpSGQV07G@Q0$)t#@gqvx?htM1vDeR1qzr%`P?%|?t)P#aZy<6(@;q+{P}HG#nM zSfEy!f&xJHl}6ikq2qqm_NuPaYB$|7hNe zCYakMxZAGZ3Z%81t_yPyUcci%V*U)L*lGtT_ygV@9`M@VDt{jTxNFB07s3^K9+Zr{~f$@_rXd z4kXvtYB^p4Ibt@4_&QZ(pHP*;-wc|pmD%PM@ zou|)4;Op7$E2nCkb^DcFkCL(Q)%lzPox&V};>+EGyYAw6NMV-!vzFufuDdketWU|D z??BOIx{LG^Sok|>|G}7^m`a~ZpOO1r-wE~Fz=gy$-vJ#PjvF}RS^Qsfgk({_^fn^) zMAXR2Yx}^24RK}C!p1DPnEZHz1$#0QyY>N>M(^d{5-oDmYSi4OQ!|k;2V_&rE+#)6 zU$(>rNv+nv5_{yj)ATNgr_QmMOpPyIX?nw=L-JdROtT=Si7k@+;rQZvAhC#^g}rIu ztPbTc8r2KKp+08N4uv`m&(Wd2Zj$8ztBJQs1&wxH^t|`iWbik-SywMlk}M zUiguAmR=@{eE}W++XPwK_U%`28efGKER;#C@}*rJNd9oH{=z<9^-0yvC5vocy}bc_ zo`!EQ@Hwh8wisNRbzGmte?3K(bBu#aHSe-*MX>=CsOE|7QZHb>$qVZpB37-2c>*=z zZPmI1xA&qn=r~0XKO?uTnrBkN*93odz6N6lwXhr3K^hJ+@q@airVrHvaR%{O%FC=kZbIYo~o|`m(%EtJQSdU9@TV&WlO188#T_ zEa#|U*G$i<+g^7LHTJytguEX*r*S$ooS9yHOx_C{4j^isYP%<#ntxurM{W;{ZsI)Z z_69M+$)o*)t8ouQ>;6UF$zy&H)%dR_NkrllRqvdfSnjE~)X&kyXFcA*)8OVCkd8}= z)e9o}&H)_Rs^A$2pD9$I#E1e}_L;G-ZK`rEY2@+M01a(0?qkD6FpA^f@wGWUi~n(g ztPCwBJ}2{m+J1q1^qsUZHm4dc+zd`JJxung=e-%(7b9KnP5p3zp15umdj%Q$U_B1q zMwo}5!G?J{w>0DFc;vBp<|~?*dRcHP^}C64>9-T)0}BN>Bx zLLTXRW$s6o{bpu7%KjV5UUDV z{D{V_wlTtaB|3q!IWbCv4h|tE7s1jls~-#W30K5351l&tFMhq47c*qee*&6KVF}V>4GY{;;CeAus zbLKva$@~aWAqpl2?gdR8@rbN-SF#R)R z9pSL^tS_U`m|INlKNv9?j?X#+n4Kld1GL6Je2wZ8^s^^O$&r=3GY=NnB{v!CMM8w0 zRAJ928qpPIh!02Xo)%p#m>iH42>u)gnjW2wicHw3&|wvvoucz^rAaRm#BLuqd9N&z z%#A>BXkUrmb%yo|ArI|xh@+HyBHkj=%La&>%YAGX|Wmz-j9l2!SAht?`?mb=BsT5%{b#g9!NuFF?+#-{7XK49H9Kx((aUPkAPO_}yCi}>8+xcT*Y%kjr_)K=^BXSZ-BZgXDhtlqypIpz zyxcHwMT5+ERpb?B*GTgDD9a71ndmC4Qz7Xti!JF67s5;LiuQ7;^+7syOtzj-oU(Pd4T6!A+j)>%nPVr}}?0-4{gY&y*d!-|?;ZY%D8sbrXHLvH}s*EhfcM;1={O z5*gXm>)$^FQWypu!e+F9-bY8BCJX%H^l2V^CX)R8O*94t@Fnr3Sd)yUia&t65ABDx zXo|9=S2P(uWgsUg^iO|_W{J$}2Kq6QmPJayRi>h8aw)UN-D+Ew4PgqDaTaL>nMRlf z?Itgkg6dz-i15gwQjm3F7Hnz>KMRU3BQa%lVNP5mbHT+ty(lWBih;2UbXs1mKq85M zL>BvSLyIa3;hK^$uMU8?Nmj$)5bu+?CZj8*WDGe=^C6WL(w3}@Fx}Jr?B0dVQY7~s_jsps``Rz2Ct;266F@!U8RTC3#mDuF(-{sQ~;yh>As;@UW;L()(puEf@Gwx|&gBV^6qF zNl+P}GLceADM|%hSQS^uB6`{d6Ildi6V^ne3QgXYX=ap#8!W9s0=>9N0oKbZuoR+n znHOr>M>Si4(J8CCMH8!@SIcD(G+}-7kSytauhqnN$SoA|9R&offDBX^@)11FscMet zE*16+C8MM1-c8zo>%!xwAN@d>+6J3w znlQClCZzAEOPlx^7Sthm74DeBnRv zlb1?4*~}|C)ZR0Z(~%#5QTUQlhEZTF39!o=s1x!7*1SfRw-rrJOFGb{o;gdsELS8^rzfvL*|Wz;$%0&ddBwK)S@plq$bykb#9&8P)T#QqJ01!S_9AH8JQ zmANdwPwr+Fypge(*3HsR6vZtcl%$sh%}re z12r&RVFv4Ju)6tkyyXZ^)(mubT7X;_%5b5<$Eub^9@6#z`h}@_B^?Zg6`(|L#U*QM zp-?FcQ|VK37oQGXUAWQ_6nge0k_Ua;&GN(-X?}diygE8uiKctBb!0b?vfIrq{)m2+ paLETt&)9q5gIPBG>4WZfCXe}NI(=XDT>3>18_B=BIU{F;{1*XQy#@dP literal 0 HcmV?d00001 diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php new file mode 100644 index 000000000000..3e44c7218fb7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1beta.AccessBetweenFilter + */ +class AccessBetweenFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + protected $from_value = null; + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + protected $to_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\NumericValue $from_value + * Begins with this number. + * @type \Google\Analytics\Admin\V1beta\NumericValue $to_value + * Ends with this number. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; + * @return \Google\Analytics\Admin\V1beta\NumericValue|null + */ + public function getFromValue() + { + return $this->from_value; + } + + public function hasFromValue() + { + return isset($this->from_value); + } + + public function clearFromValue() + { + unset($this->from_value); + } + + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; + * @param \Google\Analytics\Admin\V1beta\NumericValue $var + * @return $this + */ + public function setFromValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); + $this->from_value = $var; + + return $this; + } + + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; + * @return \Google\Analytics\Admin\V1beta\NumericValue|null + */ + public function getToValue() + { + return $this->to_value; + } + + public function hasToValue() + { + return isset($this->to_value); + } + + public function clearToValue() + { + unset($this->to_value); + } + + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; + * @param \Google\Analytics\Admin\V1beta\NumericValue $var + * @return $this + */ + public function setToValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); + $this->to_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php new file mode 100644 index 000000000000..2693ac3c1401 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1beta.AccessDateRange + */ +class AccessDateRange extends \Google\Protobuf\Internal\Message +{ + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * + * Generated from protobuf field string start_date = 1; + */ + protected $start_date = ''; + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * + * Generated from protobuf field string end_date = 2; + */ + protected $end_date = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $start_date + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * @type string $end_date + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * + * Generated from protobuf field string start_date = 1; + * @return string + */ + public function getStartDate() + { + return $this->start_date; + } + + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the current time + * in the request's time zone. + * + * Generated from protobuf field string start_date = 1; + * @param string $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkString($var, True); + $this->start_date = $var; + + return $this; + } + + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * + * Generated from protobuf field string end_date = 2; + * @return string + */ + public function getEndDate() + { + return $this->end_date; + } + + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the current + * time in the request's time zone. + * + * Generated from protobuf field string end_date = 2; + * @param string $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkString($var, True); + $this->end_date = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php new file mode 100644 index 000000000000..ad8fa116e91b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php @@ -0,0 +1,81 @@ +google.analytics.admin.v1beta.AccessDimension + */ +class AccessDimension extends \Google\Protobuf\Internal\Message +{ + /** + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * The API name of the dimension. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of dimensions supported in this API. + * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php new file mode 100644 index 000000000000..5c89abc67615 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php @@ -0,0 +1,70 @@ +google.analytics.admin.v1beta.AccessDimensionHeader + */ +class AccessDimensionHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension's name; for example 'userEmail'. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * The dimension's name; for example 'userEmail'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The dimension's name; for example 'userEmail'. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * The dimension's name; for example 'userEmail'. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php new file mode 100644 index 000000000000..3c878103a7ef --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1beta.AccessDimensionValue + */ +class AccessDimensionValue extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The dimension value. For example, this value may be 'France' for the + * 'country' dimension. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php new file mode 100644 index 000000000000..7555f3b7e5bb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php @@ -0,0 +1,208 @@ +google.analytics.admin.v1beta.AccessFilter + */ +class AccessFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension name or metric name. + * + * Generated from protobuf field string field_name = 1; + */ + protected $field_name = ''; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\AccessStringFilter $string_filter + * Strings related filter. + * @type \Google\Analytics\Admin\V1beta\AccessInListFilter $in_list_filter + * A filter for in list values. + * @type \Google\Analytics\Admin\V1beta\AccessNumericFilter $numeric_filter + * A filter for numeric or date values. + * @type \Google\Analytics\Admin\V1beta\AccessBetweenFilter $between_filter + * A filter for two values. + * @type string $field_name + * The dimension name or metric name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Strings related filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * @return \Google\Analytics\Admin\V1beta\AccessStringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(2); + } + + public function hasStringFilter() + { + return $this->hasOneof(2); + } + + /** + * Strings related filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * @param \Google\Analytics\Admin\V1beta\AccessStringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessStringFilter::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for in list values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * @return \Google\Analytics\Admin\V1beta\AccessInListFilter|null + */ + public function getInListFilter() + { + return $this->readOneof(3); + } + + public function hasInListFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for in list values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * @param \Google\Analytics\Admin\V1beta\AccessInListFilter $var + * @return $this + */ + public function setInListFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessInListFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A filter for numeric or date values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * @return \Google\Analytics\Admin\V1beta\AccessNumericFilter|null + */ + public function getNumericFilter() + { + return $this->readOneof(4); + } + + public function hasNumericFilter() + { + return $this->hasOneof(4); + } + + /** + * A filter for numeric or date values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * @param \Google\Analytics\Admin\V1beta\AccessNumericFilter $var + * @return $this + */ + public function setNumericFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessNumericFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A filter for two values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * @return \Google\Analytics\Admin\V1beta\AccessBetweenFilter|null + */ + public function getBetweenFilter() + { + return $this->readOneof(5); + } + + public function hasBetweenFilter() + { + return $this->hasOneof(5); + } + + /** + * A filter for two values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * @param \Google\Analytics\Admin\V1beta\AccessBetweenFilter $var + * @return $this + */ + public function setBetweenFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessBetweenFilter::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The dimension name or metric name. + * + * Generated from protobuf field string field_name = 1; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * The dimension name or metric name. + * + * Generated from protobuf field string field_name = 1; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php new file mode 100644 index 000000000000..60c37583b955 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php @@ -0,0 +1,178 @@ +google.analytics.admin.v1beta.AccessFilterExpression + */ +class AccessFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $one_expression; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $and_group + * Each of the FilterExpressions in the and_group has an AND relationship. + * @type \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $or_group + * Each of the FilterExpressions in the or_group has an OR relationship. + * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $not_expression + * The FilterExpression is NOT of not_expression. + * @type \Google\Analytics\Admin\V1beta\AccessFilter $access_filter + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Each of the FilterExpressions in the and_group has an AND relationship. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * @return \Google\Analytics\Admin\V1beta\AccessFilterExpressionList|null + */ + public function getAndGroup() + { + return $this->readOneof(1); + } + + public function hasAndGroup() + { + return $this->hasOneof(1); + } + + /** + * Each of the FilterExpressions in the and_group has an AND relationship. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * @param \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $var + * @return $this + */ + public function setAndGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Each of the FilterExpressions in the or_group has an OR relationship. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * @return \Google\Analytics\Admin\V1beta\AccessFilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(2); + } + + public function hasOrGroup() + { + return $this->hasOneof(2); + } + + /** + * Each of the FilterExpressions in the or_group has an OR relationship. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * @param \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpressionList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The FilterExpression is NOT of not_expression. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(3); + } + + public function hasNotExpression() + { + return $this->hasOneof(3); + } + + /** + * The FilterExpression is NOT of not_expression. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * @return \Google\Analytics\Admin\V1beta\AccessFilter|null + */ + public function getAccessFilter() + { + return $this->readOneof(4); + } + + public function hasAccessFilter() + { + return $this->hasOneof(4); + } + + /** + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * @param \Google\Analytics\Admin\V1beta\AccessFilter $var + * @return $this + */ + public function setAccessFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneExpression() + { + return $this->whichOneof("one_expression"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php new file mode 100644 index 000000000000..dc507c8ce069 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1beta.AccessFilterExpressionList + */ +class AccessFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + private $expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions + * A list of filter expressions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExpressions() + { + return $this->expressions; + } + + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + * @param array<\Google\Analytics\Admin\V1beta\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); + $this->expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php new file mode 100644 index 000000000000..81057b5c955e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php @@ -0,0 +1,101 @@ +google.analytics.admin.v1beta.AccessInListFilter + */ +class AccessInListFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The list of string values. Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + */ + private $values; + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * The list of string values. Must be non-empty. + * @type bool $case_sensitive + * If true, the string value is case sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The list of string values. Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The list of string values. Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php new file mode 100644 index 000000000000..fefa95685fec --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php @@ -0,0 +1,80 @@ +google.analytics.admin.v1beta.AccessMetric + */ +class AccessMetric extends \Google\Protobuf\Internal\Message +{ + /** + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * The API name of the metric. See [Data Access + * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + * for the list of metrics supported in this API. + * Metrics are referenced by name in `metricFilter` & `orderBys`. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php new file mode 100644 index 000000000000..93fb29069548 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php @@ -0,0 +1,70 @@ +google.analytics.admin.v1beta.AccessMetricHeader + */ +class AccessMetricHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The metric's name; for example 'accessCount'. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * The metric's name; for example 'accessCount'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The metric's name; for example 'accessCount'. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * The metric's name; for example 'accessCount'. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php new file mode 100644 index 000000000000..39d8d6f9da45 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1beta.AccessMetricValue + */ +class AccessMetricValue extends \Google\Protobuf\Internal\Message +{ + /** + * The measurement value. For example, this value may be '13'. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The measurement value. For example, this value may be '13'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The measurement value. For example, this value may be '13'. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The measurement value. For example, this value may be '13'. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php new file mode 100644 index 000000000000..0e21c7cada03 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1beta.AccessNumericFilter + */ +class AccessNumericFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + */ + protected $operation = 0; + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $operation + * The operation type for this filter. + * @type \Google\Analytics\Admin\V1beta\NumericValue $value + * A numeric value or a date value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * @return int + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * @param int $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessNumericFilter\Operation::class); + $this->operation = $var; + + return $this; + } + + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; + * @return \Google\Analytics\Admin\V1beta\NumericValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; + * @param \Google\Analytics\Admin\V1beta\NumericValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php new file mode 100644 index 000000000000..bb570ffb41cd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php @@ -0,0 +1,85 @@ +google.analytics.admin.v1beta.AccessNumericFilter.Operation + */ +class Operation +{ + /** + * Unspecified. + * + * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; + */ + const OPERATION_UNSPECIFIED = 0; + /** + * Equal + * + * Generated from protobuf enum EQUAL = 1; + */ + const EQUAL = 1; + /** + * Less than + * + * Generated from protobuf enum LESS_THAN = 2; + */ + const LESS_THAN = 2; + /** + * Less than or equal + * + * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; + */ + const LESS_THAN_OR_EQUAL = 3; + /** + * Greater than + * + * Generated from protobuf enum GREATER_THAN = 4; + */ + const GREATER_THAN = 4; + /** + * Greater than or equal + * + * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; + */ + const GREATER_THAN_OR_EQUAL = 5; + + private static $valueToName = [ + self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', + self::EQUAL => 'EQUAL', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operation::class, \Google\Analytics\Admin\V1beta\AccessNumericFilter_Operation::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php new file mode 100644 index 000000000000..6170de42bfbb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php @@ -0,0 +1,148 @@ +google.analytics.admin.v1beta.AccessOrderBy + */ +class AccessOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * + * Generated from protobuf field bool desc = 3; + */ + protected $desc = false; + protected $one_order_by; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy $metric + * Sorts results by a metric's values. + * @type \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy $dimension + * Sorts results by a dimension's values. + * @type bool $desc + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Sorts results by a metric's values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * @return \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy|null + */ + public function getMetric() + { + return $this->readOneof(1); + } + + public function hasMetric() + { + return $this->hasOneof(1); + } + + /** + * Sorts results by a metric's values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * @param \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Sorts results by a dimension's values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * @return \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy|null + */ + public function getDimension() + { + return $this->readOneof(2); + } + + public function hasDimension() + { + return $this->hasOneof(2); + } + + /** + * Sorts results by a dimension's values. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * @param \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * + * Generated from protobuf field bool desc = 3; + * @return bool + */ + public function getDesc() + { + return $this->desc; + } + + /** + * If true, sorts by descending order. If false or unspecified, sorts in + * ascending order. + * + * Generated from protobuf field bool desc = 3; + * @param bool $var + * @return $this + */ + public function setDesc($var) + { + GPBUtil::checkBool($var); + $this->desc = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneOrderBy() + { + return $this->whichOneof("one_order_by"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php new file mode 100644 index 000000000000..fbaf660231cc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php @@ -0,0 +1,104 @@ +google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + */ +class DimensionOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + */ + protected $order_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * A dimension name in the request to order by. + * @type int $order_type + * Controls the rule for dimension value ordering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * @return int + */ + public function getOrderType() + { + return $this->order_type; + } + + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * @param int $var + * @return $this + */ + public function setOrderType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy\OrderType::class); + $this->order_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DimensionOrderBy::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_DimensionOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php new file mode 100644 index 000000000000..b0fbddbb0c0f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php @@ -0,0 +1,76 @@ +google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType + */ +class OrderType +{ + /** + * Unspecified. + * + * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; + */ + const ORDER_TYPE_UNSPECIFIED = 0; + /** + * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + * "b" < "z". + * + * Generated from protobuf enum ALPHANUMERIC = 1; + */ + const ALPHANUMERIC = 1; + /** + * Case insensitive alphanumeric sort by lower case Unicode code point. + * For example, "2" < "A" < "b" < "X" < "z". + * + * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + const CASE_INSENSITIVE_ALPHANUMERIC = 2; + /** + * Dimension values are converted to numbers before sorting. For example + * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + * "25". Non-numeric dimension values all have equal ordering value below + * all numeric values. + * + * Generated from protobuf enum NUMERIC = 3; + */ + const NUMERIC = 3; + + private static $valueToName = [ + self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', + self::ALPHANUMERIC => 'ALPHANUMERIC', + self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', + self::NUMERIC => 'NUMERIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OrderType::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_DimensionOrderBy_OrderType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php new file mode 100644 index 000000000000..3129518dec2d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php @@ -0,0 +1,70 @@ +google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy + */ +class MetricOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * A metric name in the request to order by. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricOrderBy::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_MetricOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php new file mode 100644 index 000000000000..6da0417338d0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php @@ -0,0 +1,283 @@ +google.analytics.admin.v1beta.AccessQuota + */ +class AccessQuota extends \Google\Protobuf\Internal\Message +{ + /** + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + protected $tokens_per_day = null; + /** + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + protected $tokens_per_hour = null; + /** + * Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + protected $concurrent_requests = null; + /** + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + */ + protected $server_errors_per_project_per_hour = null; + /** + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + */ + protected $tokens_per_project_per_hour = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_day + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_hour + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $concurrent_requests + * Properties can use up to 50 concurrent requests. + * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $server_errors_per_project_per_hour + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_project_per_hour + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null + */ + public function getTokensPerDay() + { + return $this->tokens_per_day; + } + + public function hasTokensPerDay() + { + return isset($this->tokens_per_day); + } + + public function clearTokensPerDay() + { + unset($this->tokens_per_day); + } + + /** + * Properties can use 250,000 tokens per day. Most requests consume fewer than + * 10 tokens. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var + * @return $this + */ + public function setTokensPerDay($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); + $this->tokens_per_day = $var; + + return $this; + } + + /** + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null + */ + public function getTokensPerHour() + { + return $this->tokens_per_hour; + } + + public function hasTokensPerHour() + { + return isset($this->tokens_per_hour); + } + + public function clearTokensPerHour() + { + unset($this->tokens_per_hour); + } + + /** + * Properties can use 50,000 tokens per hour. An API request consumes a single + * number of tokens, and that number is deducted from all of the hourly, + * daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var + * @return $this + */ + public function setTokensPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); + $this->tokens_per_hour = $var; + + return $this; + } + + /** + * Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null + */ + public function getConcurrentRequests() + { + return $this->concurrent_requests; + } + + public function hasConcurrentRequests() + { + return isset($this->concurrent_requests); + } + + public function clearConcurrentRequests() + { + unset($this->concurrent_requests); + } + + /** + * Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var + * @return $this + */ + public function setConcurrentRequests($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); + $this->concurrent_requests = $var; + + return $this; + } + + /** + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null + */ + public function getServerErrorsPerProjectPerHour() + { + return $this->server_errors_per_project_per_hour; + } + + public function hasServerErrorsPerProjectPerHour() + { + return isset($this->server_errors_per_project_per_hour); + } + + public function clearServerErrorsPerProjectPerHour() + { + unset($this->server_errors_per_project_per_hour); + } + + /** + * Properties and cloud project pairs can have up to 50 server errors per + * hour. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var + * @return $this + */ + public function setServerErrorsPerProjectPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); + $this->server_errors_per_project_per_hour = $var; + + return $this; + } + + /** + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null + */ + public function getTokensPerProjectPerHour() + { + return $this->tokens_per_project_per_hour; + } + + public function hasTokensPerProjectPerHour() + { + return isset($this->tokens_per_project_per_hour); + } + + public function clearTokensPerProjectPerHour() + { + unset($this->tokens_per_project_per_hour); + } + + /** + * Properties can use up to 25% of their tokens per project per hour. This + * amounts to Analytics 360 Properties can use 12,500 tokens per project per + * hour. An API request consumes a single number of tokens, and that number is + * deducted from all of the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var + * @return $this + */ + public function setTokensPerProjectPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); + $this->tokens_per_project_per_hour = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php new file mode 100644 index 000000000000..7b4a1d173763 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php @@ -0,0 +1,101 @@ +google.analytics.admin.v1beta.AccessQuotaStatus + */ +class AccessQuotaStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + */ + protected $consumed = 0; + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + */ + protected $remaining = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $consumed + * Quota consumed by this request. + * @type int $remaining + * Quota remaining after this request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + * @return int + */ + public function getConsumed() + { + return $this->consumed; + } + + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + * @param int $var + * @return $this + */ + public function setConsumed($var) + { + GPBUtil::checkInt32($var); + $this->consumed = $var; + + return $this; + } + + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + * @return int + */ + public function getRemaining() + { + return $this->remaining; + } + + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + * @param int $var + * @return $this + */ + public function setRemaining($var) + { + GPBUtil::checkInt32($var); + $this->remaining = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php new file mode 100644 index 000000000000..2f6666df4c04 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php @@ -0,0 +1,109 @@ +google.analytics.admin.v1beta.AccessRow + */ +class AccessRow extends \Google\Protobuf\Internal\Message +{ + /** + * List of dimension values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + private $dimension_values; + /** + * List of metric values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + private $metric_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values + * List of dimension values. These values are in the same order as specified + * in the request. + * @type array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values + * List of metric values. These values are in the same order as specified + * in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * List of dimension values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionValues() + { + return $this->dimension_values; + } + + /** + * List of dimension values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimensionValue::class); + $this->dimension_values = $arr; + + return $this; + } + + /** + * List of metric values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricValues() + { + return $this->metric_values; + } + + /** + * List of metric values. These values are in the same order as specified + * in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + * @param array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricValue::class); + $this->metric_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php new file mode 100644 index 000000000000..0ccae2352c66 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php @@ -0,0 +1,135 @@ +google.analytics.admin.v1beta.AccessStringFilter + */ +class AccessStringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + */ + protected $match_type = 0; + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * The match type for this filter. + * @type string $value + * The string value used for the matching. + * @type bool $case_sensitive + * If true, the string value is case sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessStringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php new file mode 100644 index 000000000000..1160ce4dab8a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php @@ -0,0 +1,92 @@ +google.analytics.admin.v1beta.AccessStringFilter.MatchType + */ +class MatchType +{ + /** + * Unspecified + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full match for the regular expression with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + /** + * Partial match for the regular expression with the string value. + * + * Generated from protobuf enum PARTIAL_REGEXP = 6; + */ + const PARTIAL_REGEXP = 6; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Admin\V1beta\AccessStringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php new file mode 100644 index 000000000000..b3498cd2931c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php @@ -0,0 +1,269 @@ +google.analytics.admin.v1beta.Account + */ +class Account extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Time when this account was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when account payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Required. Human-readable display name for this account. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Country of business. Must be a Unicode CLDR region code. + * + * Generated from protobuf field string region_code = 5; + */ + protected $region_code = ''; + /** + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * + * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deleted = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this account was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when account payload fields were last updated. + * @type string $display_name + * Required. Human-readable display name for this account. + * @type string $region_code + * Country of business. Must be a Unicode CLDR region code. + * @type bool $deleted + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this account. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Time when this account was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this account was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when account payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when account payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Required. Human-readable display name for this account. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Human-readable display name for this account. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Country of business. Must be a Unicode CLDR region code. + * + * Generated from protobuf field string region_code = 5; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Country of business. Must be a Unicode CLDR region code. + * + * Generated from protobuf field string region_code = 5; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * + * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getDeleted() + { + return $this->deleted; + } + + /** + * Output only. Indicates whether this Account is soft-deleted or not. Deleted + * accounts are excluded from List results unless specifically requested. + * + * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setDeleted($var) + { + GPBUtil::checkBool($var); + $this->deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php new file mode 100644 index 000000000000..39f4d4f56c00 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php @@ -0,0 +1,186 @@ +google.analytics.admin.v1beta.AccountSummary + */ +class AccountSummary extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * + * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { + */ + protected $account = ''; + /** + * Display name for the account referred to in this account summary. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * List of summaries for child accounts of this account. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + private $property_summaries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * @type string $account + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * @type string $display_name + * Display name for the account referred to in this account summary. + * @type array<\Google\Analytics\Admin\V1beta\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $property_summaries + * List of summaries for child accounts of this account. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for this account summary. + * Format: accountSummaries/{account_id} + * Example: "accountSummaries/1000" + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * + * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Resource name of account referred to by this account summary + * Format: accounts/{account_id} + * Example: "accounts/1000" + * + * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Display name for the account referred to in this account summary. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name for the account referred to in this account summary. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * List of summaries for child accounts of this account. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPropertySummaries() + { + return $this->property_summaries; + } + + /** + * List of summaries for child accounts of this account. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + * @param array<\Google\Analytics\Admin\V1beta\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPropertySummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\PropertySummary::class); + $this->property_summaries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php new file mode 100644 index 000000000000..0b2c9d56ae7f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + */ +class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property for which to acknowledge user data collection. + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $property = ''; + /** + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * + * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $acknowledgement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Required. The property for which to acknowledge user data collection. + * @type string $acknowledgement + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property for which to acknowledge user data collection. + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Required. The property for which to acknowledge user data collection. + * + * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * + * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAcknowledgement() + { + return $this->acknowledgement; + } + + /** + * Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * + * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAcknowledgement($var) + { + GPBUtil::checkString($var, True); + $this->acknowledgement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php new file mode 100644 index 000000000000..b8ff0399f227 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php @@ -0,0 +1,33 @@ +google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + */ +class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php new file mode 100644 index 000000000000..5001ae077d5e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php @@ -0,0 +1,68 @@ +google.analytics.admin.v1beta.ActionType + */ +class ActionType +{ + /** + * Action type unknown or not specified. + * + * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; + */ + const ACTION_TYPE_UNSPECIFIED = 0; + /** + * Resource was created in this change. + * + * Generated from protobuf enum CREATED = 1; + */ + const CREATED = 1; + /** + * Resource was updated in this change. + * + * Generated from protobuf enum UPDATED = 2; + */ + const UPDATED = 2; + /** + * Resource was deleted in this change. + * + * Generated from protobuf enum DELETED = 3; + */ + const DELETED = 3; + + private static $valueToName = [ + self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', + self::CREATED => 'CREATED', + self::UPDATED => 'UPDATED', + self::DELETED => 'DELETED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php new file mode 100644 index 000000000000..0e897307b8c9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php @@ -0,0 +1,69 @@ +google.analytics.admin.v1beta.ActorType + */ +class ActorType +{ + /** + * Unknown or unspecified actor type. + * + * Generated from protobuf enum ACTOR_TYPE_UNSPECIFIED = 0; + */ + const ACTOR_TYPE_UNSPECIFIED = 0; + /** + * Changes made by the user specified in actor_email. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + /** + * Changes made by the Google Analytics system. + * + * Generated from protobuf enum SYSTEM = 2; + */ + const SYSTEM = 2; + /** + * Changes made by Google Analytics support team staff. + * + * Generated from protobuf enum SUPPORT = 3; + */ + const SUPPORT = 3; + + private static $valueToName = [ + self::ACTOR_TYPE_UNSPECIFIED => 'ACTOR_TYPE_UNSPECIFIED', + self::USER => 'USER', + self::SYSTEM => 'SYSTEM', + self::SUPPORT => 'SUPPORT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php new file mode 100644 index 000000000000..2384859824e2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + */ +class ArchiveCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ArchiveCustomDimensionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php new file mode 100644 index 000000000000..00ad8f6cbc3a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.ArchiveCustomMetricRequest + */ +class ArchiveCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ArchiveCustomMetricRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php new file mode 100644 index 000000000000..980584249c8c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php @@ -0,0 +1,197 @@ +google.analytics.admin.v1beta.ChangeHistoryChange + */ +class ChangeHistoryChange extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the resource whose changes are described by this entry. + * + * Generated from protobuf field string resource = 1; + */ + protected $resource = ''; + /** + * The type of action that changed this resource. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; + */ + protected $action = 0; + /** + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + */ + protected $resource_before_change = null; + /** + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + */ + protected $resource_after_change = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * Resource name of the resource whose changes are described by this entry. + * @type int $action + * The type of action that changed this resource. + * @type \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $resource_before_change + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * @type \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $resource_after_change + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the resource whose changes are described by this entry. + * + * Generated from protobuf field string resource = 1; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Resource name of the resource whose changes are described by this entry. + * + * Generated from protobuf field string resource = 1; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * The type of action that changed this resource. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * The type of action that changed this resource. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ActionType::class); + $this->action = $var; + + return $this; + } + + /** + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * @return \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null + */ + public function getResourceBeforeChange() + { + return $this->resource_before_change; + } + + public function hasResourceBeforeChange() + { + return isset($this->resource_before_change); + } + + public function clearResourceBeforeChange() + { + unset($this->resource_before_change); + } + + /** + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * @param \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $var + * @return $this + */ + public function setResourceBeforeChange($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource::class); + $this->resource_before_change = $var; + + return $this; + } + + /** + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * @return \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null + */ + public function getResourceAfterChange() + { + return $this->resource_after_change; + } + + public function hasResourceAfterChange() + { + return isset($this->resource_after_change); + } + + public function clearResourceAfterChange() + { + unset($this->resource_after_change); + } + + /** + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * @param \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $var + * @return $this + */ + public function setResourceAfterChange($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource::class); + $this->resource_after_change = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php new file mode 100644 index 000000000000..19765fee14c8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php @@ -0,0 +1,310 @@ +google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + */ +class ChangeHistoryResource extends \Google\Protobuf\Internal\Message +{ + protected $resource; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\Account $account + * A snapshot of an Account resource in change history. + * @type \Google\Analytics\Admin\V1beta\Property $property + * A snapshot of a Property resource in change history. + * @type \Google\Analytics\Admin\V1beta\FirebaseLink $firebase_link + * A snapshot of a FirebaseLink resource in change history. + * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link + * A snapshot of a GoogleAdsLink resource in change history. + * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event + * A snapshot of a ConversionEvent resource in change history. + * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret + * A snapshot of a MeasurementProtocolSecret resource in change history. + * @type \Google\Analytics\Admin\V1beta\DataRetentionSettings $data_retention_settings + * A snapshot of a data retention settings resource in change history. + * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream + * A snapshot of a DataStream resource in change history. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A snapshot of an Account resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; + * @return \Google\Analytics\Admin\V1beta\Account|null + */ + public function getAccount() + { + return $this->readOneof(1); + } + + public function hasAccount() + { + return $this->hasOneof(1); + } + + /** + * A snapshot of an Account resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; + * @param \Google\Analytics\Admin\V1beta\Account $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A snapshot of a Property resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 2; + * @return \Google\Analytics\Admin\V1beta\Property|null + */ + public function getProperty() + { + return $this->readOneof(2); + } + + public function hasProperty() + { + return $this->hasOneof(2); + } + + /** + * A snapshot of a Property resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 2; + * @param \Google\Analytics\Admin\V1beta\Property $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A snapshot of a FirebaseLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * @return \Google\Analytics\Admin\V1beta\FirebaseLink|null + */ + public function getFirebaseLink() + { + return $this->readOneof(6); + } + + public function hasFirebaseLink() + { + return $this->hasOneof(6); + } + + /** + * A snapshot of a FirebaseLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * @param \Google\Analytics\Admin\V1beta\FirebaseLink $var + * @return $this + */ + public function setFirebaseLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\FirebaseLink::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * A snapshot of a GoogleAdsLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null + */ + public function getGoogleAdsLink() + { + return $this->readOneof(7); + } + + public function hasGoogleAdsLink() + { + return $this->hasOneof(7); + } + + /** + * A snapshot of a GoogleAdsLink resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var + * @return $this + */ + public function setGoogleAdsLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * A snapshot of a ConversionEvent resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null + */ + public function getConversionEvent() + { + return $this->readOneof(11); + } + + public function hasConversionEvent() + { + return $this->hasOneof(11); + } + + /** + * A snapshot of a ConversionEvent resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * A snapshot of a MeasurementProtocolSecret resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null + */ + public function getMeasurementProtocolSecret() + { + return $this->readOneof(12); + } + + public function hasMeasurementProtocolSecret() + { + return $this->hasOneof(12); + } + + /** + * A snapshot of a MeasurementProtocolSecret resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var + * @return $this + */ + public function setMeasurementProtocolSecret($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * A snapshot of a data retention settings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings|null + */ + public function getDataRetentionSettings() + { + return $this->readOneof(15); + } + + public function hasDataRetentionSettings() + { + return $this->hasOneof(15); + } + + /** + * A snapshot of a data retention settings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $var + * @return $this + */ + public function setDataRetentionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * A snapshot of a DataStream resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 18; + * @return \Google\Analytics\Admin\V1beta\DataStream|null + */ + public function getDataStream() + { + return $this->readOneof(18); + } + + public function hasDataStream() + { + return $this->hasOneof(18); + } + + /** + * A snapshot of a DataStream resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 18; + * @param \Google\Analytics\Admin\V1beta\DataStream $var + * @return $this + */ + public function setDataStream($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * @return string + */ + public function getResource() + { + return $this->whichOneof("resource"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ChangeHistoryResource::class, \Google\Analytics\Admin\V1beta\ChangeHistoryChange_ChangeHistoryResource::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php new file mode 100644 index 000000000000..92d007549c95 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php @@ -0,0 +1,266 @@ +google.analytics.admin.v1beta.ChangeHistoryEvent + */ +class ChangeHistoryEvent extends \Google\Protobuf\Internal\Message +{ + /** + * ID of this change history event. This ID is unique across Google Analytics. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Time when change was made. + * + * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; + */ + protected $change_time = null; + /** + * The type of actor that made this change. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; + */ + protected $actor_type = 0; + /** + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * + * Generated from protobuf field string user_actor_email = 4; + */ + protected $user_actor_email = ''; + /** + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * + * Generated from protobuf field bool changes_filtered = 5; + */ + protected $changes_filtered = false; + /** + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + private $changes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * ID of this change history event. This ID is unique across Google Analytics. + * @type \Google\Protobuf\Timestamp $change_time + * Time when change was made. + * @type int $actor_type + * The type of actor that made this change. + * @type string $user_actor_email + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * @type bool $changes_filtered + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * @type array<\Google\Analytics\Admin\V1beta\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $changes + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * ID of this change history event. This ID is unique across Google Analytics. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID of this change history event. This ID is unique across Google Analytics. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Time when change was made. + * + * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getChangeTime() + { + return $this->change_time; + } + + public function hasChangeTime() + { + return isset($this->change_time); + } + + public function clearChangeTime() + { + unset($this->change_time); + } + + /** + * Time when change was made. + * + * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->change_time = $var; + + return $this; + } + + /** + * The type of actor that made this change. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; + * @return int + */ + public function getActorType() + { + return $this->actor_type; + } + + /** + * The type of actor that made this change. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; + * @param int $var + * @return $this + */ + public function setActorType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ActorType::class); + $this->actor_type = $var; + + return $this; + } + + /** + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * + * Generated from protobuf field string user_actor_email = 4; + * @return string + */ + public function getUserActorEmail() + { + return $this->user_actor_email; + } + + /** + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + * + * Generated from protobuf field string user_actor_email = 4; + * @param string $var + * @return $this + */ + public function setUserActorEmail($var) + { + GPBUtil::checkString($var, True); + $this->user_actor_email = $var; + + return $this; + } + + /** + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * + * Generated from protobuf field bool changes_filtered = 5; + * @return bool + */ + public function getChangesFiltered() + { + return $this->changes_filtered; + } + + /** + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + * + * Generated from protobuf field bool changes_filtered = 5; + * @param bool $var + * @return $this + */ + public function setChangesFiltered($var) + { + GPBUtil::checkBool($var); + $this->changes_filtered = $var; + + return $this; + } + + /** + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChanges() + { + return $this->changes; + } + + /** + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + * @param array<\Google\Analytics\Admin\V1beta\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ChangeHistoryChange::class); + $this->changes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php new file mode 100644 index 000000000000..f592887925dc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php @@ -0,0 +1,131 @@ +google.analytics.admin.v1beta.ChangeHistoryResourceType + */ +class ChangeHistoryResourceType +{ + /** + * Resource type unknown or not specified. + * + * Generated from protobuf enum CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Account resource + * + * Generated from protobuf enum ACCOUNT = 1; + */ + const ACCOUNT = 1; + /** + * Property resource + * + * Generated from protobuf enum PROPERTY = 2; + */ + const PROPERTY = 2; + /** + * FirebaseLink resource + * + * Generated from protobuf enum FIREBASE_LINK = 6; + */ + const FIREBASE_LINK = 6; + /** + * GoogleAdsLink resource + * + * Generated from protobuf enum GOOGLE_ADS_LINK = 7; + */ + const GOOGLE_ADS_LINK = 7; + /** + * GoogleSignalsSettings resource + * + * Generated from protobuf enum GOOGLE_SIGNALS_SETTINGS = 8; + */ + const GOOGLE_SIGNALS_SETTINGS = 8; + /** + * ConversionEvent resource + * + * Generated from protobuf enum CONVERSION_EVENT = 9; + */ + const CONVERSION_EVENT = 9; + /** + * MeasurementProtocolSecret resource + * + * Generated from protobuf enum MEASUREMENT_PROTOCOL_SECRET = 10; + */ + const MEASUREMENT_PROTOCOL_SECRET = 10; + /** + * DataRetentionSettings resource + * + * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13; + */ + const DATA_RETENTION_SETTINGS = 13; + /** + * DisplayVideo360AdvertiserLink resource + * + * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + /** + * DisplayVideo360AdvertiserLinkProposal resource + * + * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + /** + * DataStream resource + * + * Generated from protobuf enum DATA_STREAM = 18; + */ + const DATA_STREAM = 18; + /** + * AttributionSettings resource + * + * Generated from protobuf enum ATTRIBUTION_SETTINGS = 20; + */ + const ATTRIBUTION_SETTINGS = 20; + + private static $valueToName = [ + self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', + self::ACCOUNT => 'ACCOUNT', + self::PROPERTY => 'PROPERTY', + self::FIREBASE_LINK => 'FIREBASE_LINK', + self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK', + self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS', + self::CONVERSION_EVENT => 'CONVERSION_EVENT', + self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET', + self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS', + self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK', + self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL', + self::DATA_STREAM => 'DATA_STREAM', + self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php new file mode 100644 index 000000000000..afe4529389a0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php @@ -0,0 +1,287 @@ +google.analytics.admin.v1beta.ConversionEvent + */ +class ConversionEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * + * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $event_name = ''; + /** + * Output only. Time when this conversion event was created in the property. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deletable = false; + /** + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * + * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom = false; + /** + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $counting_method = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * @type string $event_name + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this conversion event was created in the property. + * @type bool $deletable + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * @type bool $custom + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * @type int $counting_method + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this conversion event. + * Format: properties/{property}/conversionEvents/{conversion_event} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * + * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEventName() + { + return $this->event_name; + } + + /** + * Immutable. The event name for this conversion event. + * Examples: 'click', 'purchase' + * + * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEventName($var) + { + GPBUtil::checkString($var, True); + $this->event_name = $var; + + return $this; + } + + /** + * Output only. Time when this conversion event was created in the property. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this conversion event was created in the property. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getDeletable() + { + return $this->deletable; + } + + /** + * Output only. If set, this event can currently be deleted with + * DeleteConversionEvent. + * + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setDeletable($var) + { + GPBUtil::checkBool($var); + $this->deletable = $var; + + return $this; + } + + /** + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * + * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCustom() + { + return $this->custom; + } + + /** + * Output only. If set to true, this conversion event refers to a custom + * event. If set to false, this conversion event refers to a default event in + * GA. Default events typically have special meaning in GA. Default events are + * usually created for you by the GA system, but in some cases can be created + * by property admins. Custom events count towards the maximum number of + * custom conversion events that may be created per property. + * + * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkBool($var); + $this->custom = $var; + + return $this; + } + + /** + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCountingMethod() + { + return $this->counting_method; + } + + /** + * Optional. The method by which conversions will be counted across multiple + * events within a session. If this value is not provided, it will be set to + * `ONCE_PER_EVENT`. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCountingMethod($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ConversionEvent\ConversionCountingMethod::class); + $this->counting_method = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php new file mode 100644 index 000000000000..85ec17148b20 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php @@ -0,0 +1,66 @@ +google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod + */ +class ConversionCountingMethod +{ + /** + * Counting method not specified. + * + * Generated from protobuf enum CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + */ + const CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + /** + * Each Event instance is considered a Conversion. + * + * Generated from protobuf enum ONCE_PER_EVENT = 1; + */ + const ONCE_PER_EVENT = 1; + /** + * An Event instance is considered a Conversion at most once per session per + * user. + * + * Generated from protobuf enum ONCE_PER_SESSION = 2; + */ + const ONCE_PER_SESSION = 2; + + private static $valueToName = [ + self::CONVERSION_COUNTING_METHOD_UNSPECIFIED => 'CONVERSION_COUNTING_METHOD_UNSPECIFIED', + self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', + self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConversionCountingMethod::class, \Google\Analytics\Admin\V1beta\ConversionEvent_ConversionCountingMethod::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php new file mode 100644 index 000000000000..8831edba86d8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php @@ -0,0 +1,132 @@ +google.analytics.admin.v1beta.CreateConversionEventRequest + */ +class CreateConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversion event to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversion_event = null; + /** + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * @param string $parent Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent Required. The conversion event to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateConversionEventRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent): self + { + return (new self()) + ->setParent($parent) + ->setConversionEvent($conversionEvent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event + * Required. The conversion event to create. + * @type string $parent + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversion event to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null + */ + public function getConversionEvent() + { + return $this->conversion_event; + } + + public function hasConversionEvent() + { + return isset($this->conversion_event); + } + + public function clearConversionEvent() + { + unset($this->conversion_event); + } + + /** + * Required. The conversion event to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); + $this->conversion_event = $var; + + return $this; + } + + /** + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php new file mode 100644 index 000000000000..fa4ccec2cac8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php @@ -0,0 +1,127 @@ +google.analytics.admin.v1beta.CreateCustomDimensionRequest + */ +class CreateCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The CustomDimension to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_dimension = null; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\CustomDimension $customDimension Required. The CustomDimension to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateCustomDimensionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\CustomDimension $customDimension): self + { + return (new self()) + ->setParent($parent) + ->setCustomDimension($customDimension); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1beta\CustomDimension $custom_dimension + * Required. The CustomDimension to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The CustomDimension to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\CustomDimension|null + */ + public function getCustomDimension() + { + return $this->custom_dimension; + } + + public function hasCustomDimension() + { + return isset($this->custom_dimension); + } + + public function clearCustomDimension() + { + unset($this->custom_dimension); + } + + /** + * Required. The CustomDimension to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\CustomDimension $var + * @return $this + */ + public function setCustomDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomDimension::class); + $this->custom_dimension = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php new file mode 100644 index 000000000000..9b5fb5068313 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php @@ -0,0 +1,127 @@ +google.analytics.admin.v1beta.CreateCustomMetricRequest + */ +class CreateCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The CustomMetric to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_metric = null; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\CustomMetric $customMetric Required. The CustomMetric to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateCustomMetricRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\CustomMetric $customMetric): self + { + return (new self()) + ->setParent($parent) + ->setCustomMetric($customMetric); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1beta\CustomMetric $custom_metric + * Required. The CustomMetric to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The CustomMetric to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\CustomMetric|null + */ + public function getCustomMetric() + { + return $this->custom_metric; + } + + public function hasCustomMetric() + { + return isset($this->custom_metric); + } + + public function clearCustomMetric() + { + unset($this->custom_metric); + } + + /** + * Required. The CustomMetric to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\CustomMetric $var + * @return $this + */ + public function setCustomMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomMetric::class); + $this->custom_metric = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php new file mode 100644 index 000000000000..23be6af917a9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php @@ -0,0 +1,127 @@ +google.analytics.admin.v1beta.CreateDataStreamRequest + */ +class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DataStream to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_stream = null; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\DataStream $dataStream Required. The DataStream to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateDataStreamRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\DataStream $dataStream): self + { + return (new self()) + ->setParent($parent) + ->setDataStream($dataStream); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream + * Required. The DataStream to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DataStream to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\DataStream|null + */ + public function getDataStream() + { + return $this->data_stream; + } + + public function hasDataStream() + { + return isset($this->data_stream); + } + + public function clearDataStream() + { + unset($this->data_stream); + } + + /** + * Required. The DataStream to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\DataStream $var + * @return $this + */ + public function setDataStream($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); + $this->data_stream = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php new file mode 100644 index 000000000000..36a14c4fb5e3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php @@ -0,0 +1,132 @@ +google.analytics.admin.v1beta.CreateFirebaseLinkRequest + */ +class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Firebase link to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $firebase_link = null; + + /** + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\FirebaseLink $firebaseLink Required. The Firebase link to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateFirebaseLinkRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\FirebaseLink $firebaseLink): self + { + return (new self()) + ->setParent($parent) + ->setFirebaseLink($firebaseLink); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @type \Google\Analytics\Admin\V1beta\FirebaseLink $firebase_link + * Required. The Firebase link to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Firebase link to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\FirebaseLink|null + */ + public function getFirebaseLink() + { + return $this->firebase_link; + } + + public function hasFirebaseLink() + { + return isset($this->firebase_link); + } + + public function clearFirebaseLink() + { + unset($this->firebase_link); + } + + /** + * Required. The Firebase link to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\FirebaseLink $var + * @return $this + */ + public function setFirebaseLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\FirebaseLink::class); + $this->firebase_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php new file mode 100644 index 000000000000..ec369830145e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php @@ -0,0 +1,127 @@ +google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + */ +class CreateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The GoogleAdsLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $google_ads_link = null; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateGoogleAdsLinkRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink): self + { + return (new self()) + ->setParent($parent) + ->setGoogleAdsLink($googleAdsLink); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link + * Required. The GoogleAdsLink to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The GoogleAdsLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null + */ + public function getGoogleAdsLink() + { + return $this->google_ads_link; + } + + public function hasGoogleAdsLink() + { + return isset($this->google_ads_link); + } + + public function clearGoogleAdsLink() + { + unset($this->google_ads_link); + } + + /** + * Required. The GoogleAdsLink to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var + * @return $this + */ + public function setGoogleAdsLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); + $this->google_ads_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..d0df248fba28 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php @@ -0,0 +1,132 @@ +google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + */ +class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The measurement protocol secret to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement_protocol_secret = null; + + /** + * @param string $parent Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. + * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. + * + * @return \Google\Analytics\Admin\V1beta\CreateMeasurementProtocolSecretRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret): self + { + return (new self()) + ->setParent($parent) + ->setMeasurementProtocolSecret($measurementProtocolSecret); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret + * Required. The measurement protocol secret to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The measurement protocol secret to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null + */ + public function getMeasurementProtocolSecret() + { + return $this->measurement_protocol_secret; + } + + public function hasMeasurementProtocolSecret() + { + return isset($this->measurement_protocol_secret); + } + + public function clearMeasurementProtocolSecret() + { + unset($this->measurement_protocol_secret); + } + + /** + * Required. The measurement protocol secret to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var + * @return $this + */ + public function setMeasurementProtocolSecret($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); + $this->measurement_protocol_secret = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php new file mode 100644 index 000000000000..0d7a9402770c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php @@ -0,0 +1,95 @@ +google.analytics.admin.v1beta.CreatePropertyRequest + */ +class CreatePropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property = null; + + /** + * @param \Google\Analytics\Admin\V1beta\Property $property Required. The property to create. + * Note: the supplied property must specify its parent. + * + * @return \Google\Analytics\Admin\V1beta\CreatePropertyRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\Property $property): self + { + return (new self()) + ->setProperty($property); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\Property $property + * Required. The property to create. + * Note: the supplied property must specify its parent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\Property|null + */ + public function getProperty() + { + return $this->property; + } + + public function hasProperty() + { + return isset($this->property); + } + + public function clearProperty() + { + unset($this->property); + } + + /** + * Required. The property to create. + * Note: the supplied property must specify its parent. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\Property $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); + $this->property = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php new file mode 100644 index 000000000000..6d82579f7027 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php @@ -0,0 +1,301 @@ +google.analytics.admin.v1beta.CustomDimension + */ +class CustomDimension extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parameter_name = ''; + /** + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. Immutable. The scope of this dimension. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * + * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disallow_ads_personalization = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * @type string $parameter_name + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * @type string $display_name + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * @type string $description + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * @type int $scope + * Required. Immutable. The scope of this dimension. + * @type bool $disallow_ads_personalization + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this CustomDimension resource. + * Format: properties/{property}/customDimensions/{customDimension} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParameterName() + { + return $this->parameter_name; + } + + /** + * Required. Immutable. Tagging parameter name for this custom dimension. + * If this is a user-scoped dimension, then this is the user property name. + * If this is an event-scoped dimension, then this is the event parameter + * name. + * If this is an item-scoped dimension, then this is the parameter + * name found in the eCommerce items array. + * May only contain alphanumeric and underscore characters, starting with a + * letter. Max length of 24 characters for user-scoped dimensions, 40 + * characters for event-scoped dimensions. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParameterName($var) + { + GPBUtil::checkString($var, True); + $this->parameter_name = $var; + + return $this; + } + + /** + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name for this custom dimension as shown in the Analytics + * UI. Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description for this custom dimension. Max length of 150 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Immutable. The scope of this dimension. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. The scope of this dimension. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomDimension\DimensionScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * + * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisallowAdsPersonalization() + { + return $this->disallow_ads_personalization; + } + + /** + * Optional. If set to true, sets this dimension as NPA and excludes it from + * ads personalization. + * This is currently only supported by user-scoped custom dimensions. + * + * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisallowAdsPersonalization($var) + { + GPBUtil::checkBool($var); + $this->disallow_ads_personalization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php new file mode 100644 index 000000000000..888ee1bbef8d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1beta.CustomDimension.DimensionScope + */ +class DimensionScope +{ + /** + * Scope unknown or not specified. + * + * Generated from protobuf enum DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + const DIMENSION_SCOPE_UNSPECIFIED = 0; + /** + * Dimension scoped to an event. + * + * Generated from protobuf enum EVENT = 1; + */ + const EVENT = 1; + /** + * Dimension scoped to a user. + * + * Generated from protobuf enum USER = 2; + */ + const USER = 2; + /** + * Dimension scoped to eCommerce items + * + * Generated from protobuf enum ITEM = 3; + */ + const ITEM = 3; + + private static $valueToName = [ + self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', + self::EVENT => 'EVENT', + self::USER => 'USER', + self::ITEM => 'ITEM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DimensionScope::class, \Google\Analytics\Admin\V1beta\CustomDimension_DimensionScope::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php new file mode 100644 index 000000000000..d786eb4a8ca0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php @@ -0,0 +1,319 @@ +google.analytics.admin.v1beta.CustomMetric + */ +class CustomMetric extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parameter_name = ''; + /** + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The type for the custom metric's value. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement_unit = 0; + /** + * Required. Immutable. The scope of this custom metric. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $scope = 0; + /** + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $restricted_metric_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * @type string $parameter_name + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * @type string $display_name + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * @type string $description + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * @type int $measurement_unit + * Required. The type for the custom metric's value. + * @type int $scope + * Required. Immutable. The scope of this custom metric. + * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this CustomMetric resource. + * Format: properties/{property}/customMetrics/{customMetric} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParameterName() + { + return $this->parameter_name; + } + + /** + * Required. Immutable. Tagging name for this custom metric. + * If this is an event-scoped metric, then this is the event parameter + * name. + * May only contain alphanumeric and underscore charactes, starting with a + * letter. Max length of 40 characters for event-scoped metrics. + * + * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParameterName($var) + { + GPBUtil::checkString($var, True); + $this->parameter_name = $var; + + return $this; + } + + /** + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Display name for this custom metric as shown in the Analytics UI. + * Max length of 82 characters, alphanumeric plus space and underscore + * starting with a letter. Legacy system-generated display names may contain + * square brackets, but updates to this field will never permit square + * brackets. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description for this custom dimension. + * Max length of 150 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The type for the custom metric's value. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMeasurementUnit() + { + return $this->measurement_unit; + } + + /** + * Required. The type for the custom metric's value. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMeasurementUnit($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomMetric\MeasurementUnit::class); + $this->measurement_unit = $var; + + return $this; + } + + /** + * Required. Immutable. The scope of this custom metric. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Required. Immutable. The scope of this custom metric. + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomMetric\MetricScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRestrictedMetricType() + { + return $this->restricted_metric_type; + } + + /** + * Optional. Types of restricted data that this metric may contain. Required + * for metrics with CURRENCY measurement unit. Must be empty for metrics with + * a non-CURRENCY measurement unit. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRestrictedMetricType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\CustomMetric\RestrictedMetricType::class); + $this->restricted_metric_type = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php new file mode 100644 index 000000000000..1a36e23078f2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php @@ -0,0 +1,122 @@ +google.analytics.admin.v1beta.CustomMetric.MeasurementUnit + */ +class MeasurementUnit +{ + /** + * MeasurementUnit unspecified or missing. + * + * Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + const MEASUREMENT_UNIT_UNSPECIFIED = 0; + /** + * This metric uses default units. + * + * Generated from protobuf enum STANDARD = 1; + */ + const STANDARD = 1; + /** + * This metric measures a currency. + * + * Generated from protobuf enum CURRENCY = 2; + */ + const CURRENCY = 2; + /** + * This metric measures feet. + * + * Generated from protobuf enum FEET = 3; + */ + const FEET = 3; + /** + * This metric measures meters. + * + * Generated from protobuf enum METERS = 4; + */ + const METERS = 4; + /** + * This metric measures kilometers. + * + * Generated from protobuf enum KILOMETERS = 5; + */ + const KILOMETERS = 5; + /** + * This metric measures miles. + * + * Generated from protobuf enum MILES = 6; + */ + const MILES = 6; + /** + * This metric measures milliseconds. + * + * Generated from protobuf enum MILLISECONDS = 7; + */ + const MILLISECONDS = 7; + /** + * This metric measures seconds. + * + * Generated from protobuf enum SECONDS = 8; + */ + const SECONDS = 8; + /** + * This metric measures minutes. + * + * Generated from protobuf enum MINUTES = 9; + */ + const MINUTES = 9; + /** + * This metric measures hours. + * + * Generated from protobuf enum HOURS = 10; + */ + const HOURS = 10; + + private static $valueToName = [ + self::MEASUREMENT_UNIT_UNSPECIFIED => 'MEASUREMENT_UNIT_UNSPECIFIED', + self::STANDARD => 'STANDARD', + self::CURRENCY => 'CURRENCY', + self::FEET => 'FEET', + self::METERS => 'METERS', + self::KILOMETERS => 'KILOMETERS', + self::MILES => 'MILES', + self::MILLISECONDS => 'MILLISECONDS', + self::SECONDS => 'SECONDS', + self::MINUTES => 'MINUTES', + self::HOURS => 'HOURS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MeasurementUnit::class, \Google\Analytics\Admin\V1beta\CustomMetric_MeasurementUnit::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php new file mode 100644 index 000000000000..4ddabfcd63ec --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php @@ -0,0 +1,57 @@ +google.analytics.admin.v1beta.CustomMetric.MetricScope + */ +class MetricScope +{ + /** + * Scope unknown or not specified. + * + * Generated from protobuf enum METRIC_SCOPE_UNSPECIFIED = 0; + */ + const METRIC_SCOPE_UNSPECIFIED = 0; + /** + * Metric scoped to an event. + * + * Generated from protobuf enum EVENT = 1; + */ + const EVENT = 1; + + private static $valueToName = [ + self::METRIC_SCOPE_UNSPECIFIED => 'METRIC_SCOPE_UNSPECIFIED', + self::EVENT => 'EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricScope::class, \Google\Analytics\Admin\V1beta\CustomMetric_MetricScope::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php new file mode 100644 index 000000000000..7736c4df629b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php @@ -0,0 +1,65 @@ +google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType + */ +class RestrictedMetricType +{ + /** + * Type unknown or unspecified. + * + * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + /** + * Metric reports cost data. + * + * Generated from protobuf enum COST_DATA = 1; + */ + const COST_DATA = 1; + /** + * Metric reports revenue data. + * + * Generated from protobuf enum REVENUE_DATA = 2; + */ + const REVENUE_DATA = 2; + + private static $valueToName = [ + self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', + self::COST_DATA => 'COST_DATA', + self::REVENUE_DATA => 'REVENUE_DATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1beta\CustomMetric_RestrictedMetricType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php new file mode 100644 index 000000000000..f159622c5654 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php @@ -0,0 +1,143 @@ +google.analytics.admin.v1beta.DataRetentionSettings + */ +class DataRetentionSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * The length of time that event-level data is retained. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + */ + protected $event_data_retention = 0; + /** + * If true, reset the retention period for the user identifier with every + * event from that user. + * + * Generated from protobuf field bool reset_user_data_on_new_activity = 3; + */ + protected $reset_user_data_on_new_activity = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * @type int $event_data_retention + * The length of time that event-level data is retained. + * @type bool $reset_user_data_on_new_activity + * If true, reset the retention period for the user identifier with every + * event from that user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name for this DataRetentionSetting resource. + * Format: properties/{property}/dataRetentionSettings + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The length of time that event-level data is retained. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * @return int + */ + public function getEventDataRetention() + { + return $this->event_data_retention; + } + + /** + * The length of time that event-level data is retained. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * @param int $var + * @return $this + */ + public function setEventDataRetention($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings\RetentionDuration::class); + $this->event_data_retention = $var; + + return $this; + } + + /** + * If true, reset the retention period for the user identifier with every + * event from that user. + * + * Generated from protobuf field bool reset_user_data_on_new_activity = 3; + * @return bool + */ + public function getResetUserDataOnNewActivity() + { + return $this->reset_user_data_on_new_activity; + } + + /** + * If true, reset the retention period for the user identifier with every + * event from that user. + * + * Generated from protobuf field bool reset_user_data_on_new_activity = 3; + * @param bool $var + * @return $this + */ + public function setResetUserDataOnNewActivity($var) + { + GPBUtil::checkBool($var); + $this->reset_user_data_on_new_activity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php new file mode 100644 index 000000000000..11632b79f46a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php @@ -0,0 +1,88 @@ +google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration + */ +class RetentionDuration +{ + /** + * Data retention time duration is not specified. + * + * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0; + */ + const RETENTION_DURATION_UNSPECIFIED = 0; + /** + * The data retention time duration is 2 months. + * + * Generated from protobuf enum TWO_MONTHS = 1; + */ + const TWO_MONTHS = 1; + /** + * The data retention time duration is 14 months. + * + * Generated from protobuf enum FOURTEEN_MONTHS = 3; + */ + const FOURTEEN_MONTHS = 3; + /** + * The data retention time duration is 26 months. + * Available to 360 properties only. + * + * Generated from protobuf enum TWENTY_SIX_MONTHS = 4; + */ + const TWENTY_SIX_MONTHS = 4; + /** + * The data retention time duration is 38 months. + * Available to 360 properties only. + * + * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5; + */ + const THIRTY_EIGHT_MONTHS = 5; + /** + * The data retention time duration is 50 months. + * Available to 360 properties only. + * + * Generated from protobuf enum FIFTY_MONTHS = 6; + */ + const FIFTY_MONTHS = 6; + + private static $valueToName = [ + self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED', + self::TWO_MONTHS => 'TWO_MONTHS', + self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS', + self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS', + self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS', + self::FIFTY_MONTHS => 'FIFTY_MONTHS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1beta\DataRetentionSettings_RetentionDuration::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php new file mode 100644 index 000000000000..10a5a4775e93 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php @@ -0,0 +1,262 @@ +google.analytics.admin.v1beta.DataSharingSettings + */ +class DataSharingSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Allows Google support to access the data in order to help troubleshoot + * issues. + * + * Generated from protobuf field bool sharing_with_google_support_enabled = 2; + */ + protected $sharing_with_google_support_enabled = false; + /** + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * + * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; + */ + protected $sharing_with_google_assigned_sales_enabled = false; + /** + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * + * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; + */ + protected $sharing_with_google_any_sales_enabled = false; + /** + * Allows Google to use the data to improve other Google products or services. + * + * Generated from protobuf field bool sharing_with_google_products_enabled = 5; + */ + protected $sharing_with_google_products_enabled = false; + /** + * Allows Google to share the data anonymously in aggregate form with others. + * + * Generated from protobuf field bool sharing_with_others_enabled = 6; + */ + protected $sharing_with_others_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @type bool $sharing_with_google_support_enabled + * Allows Google support to access the data in order to help troubleshoot + * issues. + * @type bool $sharing_with_google_assigned_sales_enabled + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * @type bool $sharing_with_google_any_sales_enabled + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * @type bool $sharing_with_google_products_enabled + * Allows Google to use the data to improve other Google products or services. + * @type bool $sharing_with_others_enabled + * Allows Google to share the data anonymously in aggregate form with others. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Allows Google support to access the data in order to help troubleshoot + * issues. + * + * Generated from protobuf field bool sharing_with_google_support_enabled = 2; + * @return bool + */ + public function getSharingWithGoogleSupportEnabled() + { + return $this->sharing_with_google_support_enabled; + } + + /** + * Allows Google support to access the data in order to help troubleshoot + * issues. + * + * Generated from protobuf field bool sharing_with_google_support_enabled = 2; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleSupportEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_support_enabled = $var; + + return $this; + } + + /** + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * + * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; + * @return bool + */ + public function getSharingWithGoogleAssignedSalesEnabled() + { + return $this->sharing_with_google_assigned_sales_enabled; + } + + /** + * Allows Google sales teams that are assigned to the customer to access the + * data in order to suggest configuration changes to improve results. + * Sales team restrictions still apply when enabled. + * + * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleAssignedSalesEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_assigned_sales_enabled = $var; + + return $this; + } + + /** + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * + * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; + * @return bool + */ + public function getSharingWithGoogleAnySalesEnabled() + { + return $this->sharing_with_google_any_sales_enabled; + } + + /** + * Allows any of Google sales to access the data in order to suggest + * configuration changes to improve results. + * + * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleAnySalesEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_any_sales_enabled = $var; + + return $this; + } + + /** + * Allows Google to use the data to improve other Google products or services. + * + * Generated from protobuf field bool sharing_with_google_products_enabled = 5; + * @return bool + */ + public function getSharingWithGoogleProductsEnabled() + { + return $this->sharing_with_google_products_enabled; + } + + /** + * Allows Google to use the data to improve other Google products or services. + * + * Generated from protobuf field bool sharing_with_google_products_enabled = 5; + * @param bool $var + * @return $this + */ + public function setSharingWithGoogleProductsEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_google_products_enabled = $var; + + return $this; + } + + /** + * Allows Google to share the data anonymously in aggregate form with others. + * + * Generated from protobuf field bool sharing_with_others_enabled = 6; + * @return bool + */ + public function getSharingWithOthersEnabled() + { + return $this->sharing_with_others_enabled; + } + + /** + * Allows Google to share the data anonymously in aggregate form with others. + * + * Generated from protobuf field bool sharing_with_others_enabled = 6; + * @param bool $var + * @return $this + */ + public function setSharingWithOthersEnabled($var) + { + GPBUtil::checkBool($var); + $this->sharing_with_others_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php new file mode 100644 index 000000000000..eb97eb73d435 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php @@ -0,0 +1,356 @@ +google.analytics.admin.v1beta.DataStream + */ +class DataStream extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Immutable. The type of this DataStream resource. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * + * Generated from protobuf field string display_name = 3; + */ + protected $display_name = ''; + /** + * Output only. Time when this stream was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when stream payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + protected $stream_data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\DataStream\WebStreamData $web_stream_data + * Data specific to web streams. Must be populated if type is + * WEB_DATA_STREAM. + * @type \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData $android_app_stream_data + * Data specific to Android app streams. Must be populated if type is + * ANDROID_APP_DATA_STREAM. + * @type \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData $ios_app_stream_data + * Data specific to iOS app streams. Must be populated if type is + * IOS_APP_DATA_STREAM. + * @type string $name + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * @type int $type + * Required. Immutable. The type of this DataStream resource. + * @type string $display_name + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this stream was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when stream payload fields were last updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Data specific to web streams. Must be populated if type is + * WEB_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * @return \Google\Analytics\Admin\V1beta\DataStream\WebStreamData|null + */ + public function getWebStreamData() + { + return $this->readOneof(6); + } + + public function hasWebStreamData() + { + return $this->hasOneof(6); + } + + /** + * Data specific to web streams. Must be populated if type is + * WEB_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * @param \Google\Analytics\Admin\V1beta\DataStream\WebStreamData $var + * @return $this + */ + public function setWebStreamData($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\WebStreamData::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Data specific to Android app streams. Must be populated if type is + * ANDROID_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * @return \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData|null + */ + public function getAndroidAppStreamData() + { + return $this->readOneof(7); + } + + public function hasAndroidAppStreamData() + { + return $this->hasOneof(7); + } + + /** + * Data specific to Android app streams. Must be populated if type is + * ANDROID_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * @param \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData $var + * @return $this + */ + public function setAndroidAppStreamData($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Data specific to iOS app streams. Must be populated if type is + * IOS_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * @return \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData|null + */ + public function getIosAppStreamData() + { + return $this->readOneof(8); + } + + public function hasIosAppStreamData() + { + return $this->hasOneof(8); + } + + /** + * Data specific to iOS app streams. Must be populated if type is + * IOS_APP_DATA_STREAM. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * @param \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData $var + * @return $this + */ + public function setIosAppStreamData($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this Data Stream. + * Format: properties/{property_id}/dataStreams/{stream_id} + * Example: "properties/1000/dataStreams/2000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. The type of this DataStream resource. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. The type of this DataStream resource. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\DataStream\DataStreamType::class); + $this->type = $var; + + return $this; + } + + /** + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * + * Generated from protobuf field string display_name = 3; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Human-readable display name for the Data Stream. + * Required for web data streams. + * The max allowed display name length is 255 UTF-16 code units. + * + * Generated from protobuf field string display_name = 3; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Time when this stream was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this stream was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when stream payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when stream payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getStreamData() + { + return $this->whichOneof("stream_data"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php new file mode 100644 index 000000000000..41f363424c91 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php @@ -0,0 +1,112 @@ +google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + */ +class AndroidAppStreamData extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $firebase_app_id = ''; + /** + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * + * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $package_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $firebase_app_id + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * @type string $package_name + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFirebaseAppId() + { + return $this->firebase_app_id; + } + + /** + * Output only. ID of the corresponding Android app in Firebase, if any. + * This ID can change if the Android app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFirebaseAppId($var) + { + GPBUtil::checkString($var, True); + $this->firebase_app_id = $var; + + return $this; + } + + /** + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * + * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getPackageName() + { + return $this->package_name; + } + + /** + * Immutable. The package name for the app being measured. + * Example: "com.example.myandroidapp" + * + * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setPackageName($var) + { + GPBUtil::checkString($var, True); + $this->package_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_AndroidAppStreamData::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php new file mode 100644 index 000000000000..f56bdc100a42 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php @@ -0,0 +1,71 @@ +google.analytics.admin.v1beta.DataStream.DataStreamType + */ +class DataStreamType +{ + /** + * Type unknown or not specified. + * + * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + const DATA_STREAM_TYPE_UNSPECIFIED = 0; + /** + * Web data stream. + * + * Generated from protobuf enum WEB_DATA_STREAM = 1; + */ + const WEB_DATA_STREAM = 1; + /** + * Android app data stream. + * + * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2; + */ + const ANDROID_APP_DATA_STREAM = 2; + /** + * iOS app data stream. + * + * Generated from protobuf enum IOS_APP_DATA_STREAM = 3; + */ + const IOS_APP_DATA_STREAM = 3; + + private static $valueToName = [ + self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED', + self::WEB_DATA_STREAM => 'WEB_DATA_STREAM', + self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM', + self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataStreamType::class, \Google\Analytics\Admin\V1beta\DataStream_DataStreamType::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php new file mode 100644 index 000000000000..3ca74773442b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php @@ -0,0 +1,112 @@ +google.analytics.admin.v1beta.DataStream.IosAppStreamData + */ +class IosAppStreamData extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $firebase_app_id = ''; + /** + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * + * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $bundle_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $firebase_app_id + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * @type string $bundle_id + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFirebaseAppId() + { + return $this->firebase_app_id; + } + + /** + * Output only. ID of the corresponding iOS app in Firebase, if any. + * This ID can change if the iOS app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFirebaseAppId($var) + { + GPBUtil::checkString($var, True); + $this->firebase_app_id = $var; + + return $this; + } + + /** + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * + * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBundleId() + { + return $this->bundle_id; + } + + /** + * Required. Immutable. The Apple App Store Bundle ID for the app + * Example: "com.example.myiosapp" + * + * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBundleId($var) + { + GPBUtil::checkString($var, True); + $this->bundle_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_IosAppStreamData::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php new file mode 100644 index 000000000000..26d2801d7bbd --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php @@ -0,0 +1,150 @@ +google.analytics.admin.v1beta.DataStream.WebStreamData + */ +class WebStreamData extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * + * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $measurement_id = ''; + /** + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $firebase_app_id = ''; + /** + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * + * Generated from protobuf field string default_uri = 3; + */ + protected $default_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $measurement_id + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * @type string $firebase_app_id + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * @type string $default_uri + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * + * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMeasurementId() + { + return $this->measurement_id; + } + + /** + * Output only. Analytics Measurement ID. + * Example: "G-1A2BCD345E" + * + * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMeasurementId($var) + { + GPBUtil::checkString($var, True); + $this->measurement_id = $var; + + return $this; + } + + /** + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFirebaseAppId() + { + return $this->firebase_app_id; + } + + /** + * Output only. ID of the corresponding web app in Firebase, if any. + * This ID can change if the web app is deleted and recreated. + * + * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFirebaseAppId($var) + { + GPBUtil::checkString($var, True); + $this->firebase_app_id = $var; + + return $this; + } + + /** + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * + * Generated from protobuf field string default_uri = 3; + * @return string + */ + public function getDefaultUri() + { + return $this->default_uri; + } + + /** + * Domain name of the web app being measured, or empty. + * Example: "http://www.google.com", "https://www.google.com" + * + * Generated from protobuf field string default_uri = 3; + * @param string $var + * @return $this + */ + public function setDefaultUri($var) + { + GPBUtil::checkString($var, True); + $this->default_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WebStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_WebStreamData::class); + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php new file mode 100644 index 000000000000..4e8c387e03ed --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.DeleteAccountRequest + */ +class DeleteAccountRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeleteAccountRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php new file mode 100644 index 000000000000..c10da9d7155c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.DeleteConversionEventRequest + */ +class DeleteConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeleteConversionEventRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php new file mode 100644 index 000000000000..1743a5808221 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.DeleteDataStreamRequest + */ +class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeleteDataStreamRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php new file mode 100644 index 000000000000..3637f46fdcf6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + */ +class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * Please see {@see AnalyticsAdminServiceClient::firebaseLinkName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeleteFirebaseLinkRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php new file mode 100644 index 000000000000..a0e08a72a199 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php @@ -0,0 +1,81 @@ +google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + */ +class DeleteGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 + * Please see {@see AnalyticsAdminServiceClient::googleAdsLinkName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeleteGoogleAdsLinkRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Example format: properties/1234/googleAdsLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Example format: properties/1234/googleAdsLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..11d1855ca0c8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + */ +class DeleteMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeleteMeasurementProtocolSecretRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php new file mode 100644 index 000000000000..0f1066e9be4c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.DeletePropertyRequest + */ +class DeletePropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\DeletePropertyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php new file mode 100644 index 000000000000..fb86b8060dc8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php @@ -0,0 +1,165 @@ +google.analytics.admin.v1beta.FirebaseLink + */ +class FirebaseLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Example format: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $project = ''; + /** + * Output only. Time when this FirebaseLink was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Example format: properties/1234/firebaseLinks/5678 + * @type string $project + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this FirebaseLink was originally created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Example format: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Example format: properties/1234/firebaseLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Immutable. Firebase project resource name. When creating a FirebaseLink, + * you may provide this resource name using either a project number or project + * ID. Once this resource has been created, returned FirebaseLinks will always + * have a project_name that contains a project number. + * Format: 'projects/{project number}' + * Example: 'projects/1234' + * + * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Output only. Time when this FirebaseLink was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this FirebaseLink was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php new file mode 100644 index 000000000000..2d2dff0d7814 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.GetAccountRequest + */ +class GetAccountRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetAccountRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php new file mode 100644 index 000000000000..d93e93e1f55a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.GetConversionEventRequest + */ +class GetConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetConversionEventRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php new file mode 100644 index 000000000000..94a2b1021792 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.GetCustomDimensionRequest + */ +class GetCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetCustomDimensionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php new file mode 100644 index 000000000000..6610662810be --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.GetCustomMetricRequest + */ +class GetCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetCustomMetricRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php new file mode 100644 index 000000000000..15828be733b6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php @@ -0,0 +1,96 @@ +google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + */ +class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * Please see {@see AnalyticsAdminServiceClient::dataRetentionSettingsName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetDataRetentionSettingsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php new file mode 100644 index 000000000000..51536932b2a7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.GetDataSharingSettingsRequest + */ +class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * Please see {@see AnalyticsAdminServiceClient::dataSharingSettingsName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetDataSharingSettingsRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php new file mode 100644 index 000000000000..aab7f2686212 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php @@ -0,0 +1,86 @@ +google.analytics.admin.v1beta.GetDataStreamRequest + */ +class GetDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetDataStreamRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..5a1c207ba97a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + */ +class GetMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetMeasurementProtocolSecretRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php new file mode 100644 index 000000000000..50ce00257946 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php @@ -0,0 +1,91 @@ +google.analytics.admin.v1beta.GetPropertyRequest + */ +class GetPropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\GetPropertyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php new file mode 100644 index 000000000000..85e6f6f829ea --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php @@ -0,0 +1,358 @@ +google.analytics.admin.v1beta.GoogleAdsLink + */ +class GoogleAdsLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. Google Ads customer ID. + * + * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $customer_id = ''; + /** + * Output only. If true, this link is for a Google Ads manager account. + * + * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $can_manage_clients = false; + /** + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + protected $ads_personalization_enabled = null; + /** + * Output only. Time when this link was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when this link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * + * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $creator_email_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * @type string $customer_id + * Immutable. Google Ads customer ID. + * @type bool $can_manage_clients + * Output only. If true, this link is for a Google Ads manager account. + * @type \Google\Protobuf\BoolValue $ads_personalization_enabled + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when this link was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when this link was last updated. + * @type string $creator_email_address + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Format: + * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} + * Note: googleAdsLinkId is not the Google Ads customer ID. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. Google Ads customer ID. + * + * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getCustomerId() + { + return $this->customer_id; + } + + /** + * Immutable. Google Ads customer ID. + * + * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setCustomerId($var) + { + GPBUtil::checkString($var, True); + $this->customer_id = $var; + + return $this; + } + + /** + * Output only. If true, this link is for a Google Ads manager account. + * + * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCanManageClients() + { + return $this->can_manage_clients; + } + + /** + * Output only. If true, this link is for a Google Ads manager account. + * + * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCanManageClients($var) + { + GPBUtil::checkBool($var); + $this->can_manage_clients = $var; + + return $this; + } + + /** + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @return \Google\Protobuf\BoolValue|null + */ + public function getAdsPersonalizationEnabled() + { + return $this->ads_personalization_enabled; + } + + public function hasAdsPersonalizationEnabled() + { + return isset($this->ads_personalization_enabled); + } + + public function clearAdsPersonalizationEnabled() + { + unset($this->ads_personalization_enabled); + } + + /** + * Returns the unboxed value from getAdsPersonalizationEnabled() + + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @return bool|null + */ + public function getAdsPersonalizationEnabledUnwrapped() + { + return $this->readWrapperValue("ads_personalization_enabled"); + } + + /** + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setAdsPersonalizationEnabled($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->ads_personalization_enabled = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enable personalized advertising features with this integration. + * Automatically publish my Google Analytics audience lists and Google + * Analytics remarketing events/parameters to the linked Google Ads account. + * If this field is not set on create/update, it will be defaulted to true. + * + * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; + * @param bool|null $var + * @return $this + */ + public function setAdsPersonalizationEnabledUnwrapped($var) + { + $this->writeWrapperValue("ads_personalization_enabled", $var); + return $this;} + + /** + * Output only. Time when this link was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when this link was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when this link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when this link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * + * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreatorEmailAddress() + { + return $this->creator_email_address; + } + + /** + * Output only. Email address of the user that created the link. + * An empty string will be returned if the email address can't be retrieved. + * + * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreatorEmailAddress($var) + { + GPBUtil::checkString($var, True); + $this->creator_email_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php new file mode 100644 index 000000000000..887b34452f65 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php @@ -0,0 +1,229 @@ +google.analytics.admin.v1beta.IndustryCategory + */ +class IndustryCategory +{ + /** + * Industry category unspecified + * + * Generated from protobuf enum INDUSTRY_CATEGORY_UNSPECIFIED = 0; + */ + const INDUSTRY_CATEGORY_UNSPECIFIED = 0; + /** + * Automotive + * + * Generated from protobuf enum AUTOMOTIVE = 1; + */ + const AUTOMOTIVE = 1; + /** + * Business and industrial markets + * + * Generated from protobuf enum BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + */ + const BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + /** + * Finance + * + * Generated from protobuf enum FINANCE = 3; + */ + const FINANCE = 3; + /** + * Healthcare + * + * Generated from protobuf enum HEALTHCARE = 4; + */ + const HEALTHCARE = 4; + /** + * Technology + * + * Generated from protobuf enum TECHNOLOGY = 5; + */ + const TECHNOLOGY = 5; + /** + * Travel + * + * Generated from protobuf enum TRAVEL = 6; + */ + const TRAVEL = 6; + /** + * Other + * + * Generated from protobuf enum OTHER = 7; + */ + const OTHER = 7; + /** + * Arts and entertainment + * + * Generated from protobuf enum ARTS_AND_ENTERTAINMENT = 8; + */ + const ARTS_AND_ENTERTAINMENT = 8; + /** + * Beauty and fitness + * + * Generated from protobuf enum BEAUTY_AND_FITNESS = 9; + */ + const BEAUTY_AND_FITNESS = 9; + /** + * Books and literature + * + * Generated from protobuf enum BOOKS_AND_LITERATURE = 10; + */ + const BOOKS_AND_LITERATURE = 10; + /** + * Food and drink + * + * Generated from protobuf enum FOOD_AND_DRINK = 11; + */ + const FOOD_AND_DRINK = 11; + /** + * Games + * + * Generated from protobuf enum GAMES = 12; + */ + const GAMES = 12; + /** + * Hobbies and leisure + * + * Generated from protobuf enum HOBBIES_AND_LEISURE = 13; + */ + const HOBBIES_AND_LEISURE = 13; + /** + * Home and garden + * + * Generated from protobuf enum HOME_AND_GARDEN = 14; + */ + const HOME_AND_GARDEN = 14; + /** + * Internet and telecom + * + * Generated from protobuf enum INTERNET_AND_TELECOM = 15; + */ + const INTERNET_AND_TELECOM = 15; + /** + * Law and government + * + * Generated from protobuf enum LAW_AND_GOVERNMENT = 16; + */ + const LAW_AND_GOVERNMENT = 16; + /** + * News + * + * Generated from protobuf enum NEWS = 17; + */ + const NEWS = 17; + /** + * Online communities + * + * Generated from protobuf enum ONLINE_COMMUNITIES = 18; + */ + const ONLINE_COMMUNITIES = 18; + /** + * People and society + * + * Generated from protobuf enum PEOPLE_AND_SOCIETY = 19; + */ + const PEOPLE_AND_SOCIETY = 19; + /** + * Pets and animals + * + * Generated from protobuf enum PETS_AND_ANIMALS = 20; + */ + const PETS_AND_ANIMALS = 20; + /** + * Real estate + * + * Generated from protobuf enum REAL_ESTATE = 21; + */ + const REAL_ESTATE = 21; + /** + * Reference + * + * Generated from protobuf enum REFERENCE = 22; + */ + const REFERENCE = 22; + /** + * Science + * + * Generated from protobuf enum SCIENCE = 23; + */ + const SCIENCE = 23; + /** + * Sports + * + * Generated from protobuf enum SPORTS = 24; + */ + const SPORTS = 24; + /** + * Jobs and education + * + * Generated from protobuf enum JOBS_AND_EDUCATION = 25; + */ + const JOBS_AND_EDUCATION = 25; + /** + * Shopping + * + * Generated from protobuf enum SHOPPING = 26; + */ + const SHOPPING = 26; + + private static $valueToName = [ + self::INDUSTRY_CATEGORY_UNSPECIFIED => 'INDUSTRY_CATEGORY_UNSPECIFIED', + self::AUTOMOTIVE => 'AUTOMOTIVE', + self::BUSINESS_AND_INDUSTRIAL_MARKETS => 'BUSINESS_AND_INDUSTRIAL_MARKETS', + self::FINANCE => 'FINANCE', + self::HEALTHCARE => 'HEALTHCARE', + self::TECHNOLOGY => 'TECHNOLOGY', + self::TRAVEL => 'TRAVEL', + self::OTHER => 'OTHER', + self::ARTS_AND_ENTERTAINMENT => 'ARTS_AND_ENTERTAINMENT', + self::BEAUTY_AND_FITNESS => 'BEAUTY_AND_FITNESS', + self::BOOKS_AND_LITERATURE => 'BOOKS_AND_LITERATURE', + self::FOOD_AND_DRINK => 'FOOD_AND_DRINK', + self::GAMES => 'GAMES', + self::HOBBIES_AND_LEISURE => 'HOBBIES_AND_LEISURE', + self::HOME_AND_GARDEN => 'HOME_AND_GARDEN', + self::INTERNET_AND_TELECOM => 'INTERNET_AND_TELECOM', + self::LAW_AND_GOVERNMENT => 'LAW_AND_GOVERNMENT', + self::NEWS => 'NEWS', + self::ONLINE_COMMUNITIES => 'ONLINE_COMMUNITIES', + self::PEOPLE_AND_SOCIETY => 'PEOPLE_AND_SOCIETY', + self::PETS_AND_ANIMALS => 'PETS_AND_ANIMALS', + self::REAL_ESTATE => 'REAL_ESTATE', + self::REFERENCE => 'REFERENCE', + self::SCIENCE => 'SCIENCE', + self::SPORTS => 'SPORTS', + self::JOBS_AND_EDUCATION => 'JOBS_AND_EDUCATION', + self::SHOPPING => 'SHOPPING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php new file mode 100644 index 000000000000..5a9b57747f11 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php @@ -0,0 +1,125 @@ +google.analytics.admin.v1beta.ListAccountSummariesRequest + */ +class ListAccountSummariesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $page_size + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php new file mode 100644 index 000000000000..134ce7115217 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListAccountSummariesResponse + */ +class ListAccountSummariesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Account summaries of all accounts the caller has access to. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + private $account_summaries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $account_summaries + * Account summaries of all accounts the caller has access to. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Account summaries of all accounts the caller has access to. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccountSummaries() + { + return $this->account_summaries; + } + + /** + * Account summaries of all accounts the caller has access to. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + * @param array<\Google\Analytics\Admin\V1beta\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccountSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccountSummary::class); + $this->account_summaries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php new file mode 100644 index 000000000000..ad5ace2c52d0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php @@ -0,0 +1,167 @@ +google.analytics.admin.v1beta.ListAccountsRequest + */ +class ListAccountsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * + * Generated from protobuf field bool show_deleted = 3; + */ + protected $show_deleted = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @type bool $show_deleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 1; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * + * Generated from protobuf field bool show_deleted = 3; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * + * Generated from protobuf field bool show_deleted = 3; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php new file mode 100644 index 000000000000..e6172f138b63 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListAccountsResponse + */ +class ListAccountsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + private $accounts; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\Account>|\Google\Protobuf\Internal\RepeatedField $accounts + * Results that were accessible to the caller. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccounts() + { + return $this->accounts; + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; + * @param array<\Google\Analytics\Admin\V1beta\Account>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\Account::class); + $this->accounts = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php new file mode 100644 index 000000000000..33bf19c74838 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php @@ -0,0 +1,174 @@ +google.analytics.admin.v1beta.ListConversionEventsRequest + */ +class ListConversionEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The resource name of the parent property. + * Example: 'properties/123' + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListConversionEventsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent property. + * Example: 'properties/123' + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the parent property. + * Example: 'properties/123' + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php new file mode 100644 index 000000000000..8c2c55e646f6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListConversionEventsResponse + */ +class ListConversionEventsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The requested conversion events + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + private $conversion_events; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $conversion_events + * The requested conversion events + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The requested conversion events + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConversionEvents() + { + return $this->conversion_events; + } + + /** + * The requested conversion events + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + * @param array<\Google\Analytics\Admin\V1beta\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConversionEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ConversionEvent::class); + $this->conversion_events = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php new file mode 100644 index 000000000000..b0a3860f8064 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php @@ -0,0 +1,169 @@ +google.analytics.admin.v1beta.ListCustomDimensionsRequest + */ +class ListCustomDimensionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListCustomDimensionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php new file mode 100644 index 000000000000..94d2a87c2a86 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListCustomDimensionsResponse + */ +class ListCustomDimensionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of CustomDimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + private $custom_dimensions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $custom_dimensions + * List of CustomDimensions. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of CustomDimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomDimensions() + { + return $this->custom_dimensions; + } + + /** + * List of CustomDimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + * @param array<\Google\Analytics\Admin\V1beta\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\CustomDimension::class); + $this->custom_dimensions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php new file mode 100644 index 000000000000..5020f949e437 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php @@ -0,0 +1,169 @@ +google.analytics.admin.v1beta.ListCustomMetricsRequest + */ +class ListCustomMetricsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListCustomMetricsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php new file mode 100644 index 000000000000..595e81384613 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListCustomMetricsResponse + */ +class ListCustomMetricsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of CustomMetrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + private $custom_metrics; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $custom_metrics + * List of CustomMetrics. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of CustomMetrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomMetrics() + { + return $this->custom_metrics; + } + + /** + * List of CustomMetrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + * @param array<\Google\Analytics\Admin\V1beta\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\CustomMetric::class); + $this->custom_metrics = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php new file mode 100644 index 000000000000..a7fd9dae8a76 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php @@ -0,0 +1,169 @@ +google.analytics.admin.v1beta.ListDataStreamsRequest + */ +class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListDataStreamsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDataStreams` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php new file mode 100644 index 000000000000..5ccce411e91d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListDataStreamsResponse + */ +class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of DataStreams. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + private $data_streams; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\DataStream>|\Google\Protobuf\Internal\RepeatedField $data_streams + * List of DataStreams. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of DataStreams. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDataStreams() + { + return $this->data_streams; + } + + /** + * List of DataStreams. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + * @param array<\Google\Analytics\Admin\V1beta\DataStream>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDataStreams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\DataStream::class); + $this->data_streams = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php new file mode 100644 index 000000000000..c6b89d422b86 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php @@ -0,0 +1,178 @@ +google.analytics.admin.v1beta.ListFirebaseLinksRequest + */ +class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListFirebaseLinksRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListFirebaseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListFirebaseLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php new file mode 100644 index 000000000000..b320bb008f5c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php @@ -0,0 +1,113 @@ +google.analytics.admin.v1beta.ListFirebaseLinksResponse + */ +class ListFirebaseLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of FirebaseLinks. This will have at most one value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + private $firebase_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $firebase_links + * List of FirebaseLinks. This will have at most one value. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of FirebaseLinks. This will have at most one value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFirebaseLinks() + { + return $this->firebase_links; + } + + /** + * List of FirebaseLinks. This will have at most one value. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + * @param array<\Google\Analytics\Admin\V1beta\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFirebaseLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\FirebaseLink::class); + $this->firebase_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * Currently, Google Analytics supports only one FirebaseLink per property, + * so this will never be populated. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php new file mode 100644 index 000000000000..5db7e835bc8e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php @@ -0,0 +1,169 @@ +google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + */ +class ListGoogleAdsLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Example format: properties/1234 + * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListGoogleAdsLinksRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Example format: properties/1234 + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Example format: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListGoogleAdsLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php new file mode 100644 index 000000000000..83af6ed59375 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + */ +class ListGoogleAdsLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of GoogleAdsLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + private $google_ads_links; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $google_ads_links + * List of GoogleAdsLinks. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of GoogleAdsLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGoogleAdsLinks() + { + return $this->google_ads_links; + } + + /** + * List of GoogleAdsLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + * @param array<\Google\Analytics\Admin\V1beta\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGoogleAdsLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); + $this->google_ads_links = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php new file mode 100644 index 000000000000..7b63fb17d190 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php @@ -0,0 +1,179 @@ +google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + */ +class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. + * + * @return \Google\Analytics\Admin\V1beta\ListMeasurementProtocolSecretsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @type int $page_size + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * @type string $page_token + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php new file mode 100644 index 000000000000..0a841ff0b82c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + */ +class ListMeasurementProtocolSecretsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of secrets for the parent stream specified in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + */ + private $measurement_protocol_secrets; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $measurement_protocol_secrets + * A list of secrets for the parent stream specified in the request. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * A list of secrets for the parent stream specified in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMeasurementProtocolSecrets() + { + return $this->measurement_protocol_secrets; + } + + /** + * A list of secrets for the parent stream specified in the request. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * @param array<\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMeasurementProtocolSecrets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); + $this->measurement_protocol_secrets = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php new file mode 100644 index 000000000000..66946ecd9fb9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php @@ -0,0 +1,257 @@ +google.analytics.admin.v1beta.ListPropertiesRequest + */ +class ListPropertiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * + * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = ''; + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * + * Generated from protobuf field bool show_deleted = 4; + */ + protected $show_deleted = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @type int $page_size + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @type bool $show_deleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * + * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * + * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * + * Generated from protobuf field bool show_deleted = 4; + * @return bool + */ + public function getShowDeleted() + { + return $this->show_deleted; + } + + /** + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * + * Generated from protobuf field bool show_deleted = 4; + * @param bool $var + * @return $this + */ + public function setShowDeleted($var) + { + GPBUtil::checkBool($var); + $this->show_deleted = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php new file mode 100644 index 000000000000..f0bf255bc083 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.ListPropertiesResponse + */ +class ListPropertiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results that matched the filter criteria and were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + private $properties; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\Property>|\Google\Protobuf\Internal\RepeatedField $properties + * Results that matched the filter criteria and were accessible to the caller. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Results that matched the filter criteria and were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProperties() + { + return $this->properties; + } + + /** + * Results that matched the filter criteria and were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; + * @param array<\Google\Analytics\Admin\V1beta\Property>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\Property::class); + $this->properties = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php new file mode 100644 index 000000000000..79a409a5548e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php @@ -0,0 +1,151 @@ +google.analytics.admin.v1beta.MeasurementProtocolSecret + */ +class MeasurementProtocolSecret extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. Human-readable display name for this secret. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * + * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $secret_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @type string $display_name + * Required. Human-readable display name for this secret. + * @type string $secret_value + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this secret. This secret may be a child of + * any type of stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Human-readable display name for this secret. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Human-readable display name for this secret. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * + * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSecretValue() + { + return $this->secret_value; + } + + /** + * Output only. The measurement protocol secret value. Pass this value to the + * api_secret field of the Measurement Protocol API when sending hits to this + * secret's parent property. + * + * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSecretValue($var) + { + GPBUtil::checkString($var, True); + $this->secret_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php new file mode 100644 index 000000000000..0952ee5c779c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php @@ -0,0 +1,108 @@ +google.analytics.admin.v1beta.NumericValue + */ +class NumericValue extends \Google\Protobuf\Internal\Message +{ + protected $one_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int64_value + * Integer value + * @type float $double_value + * Double value + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); + parent::__construct($data); + } + + /** + * Integer value + * + * Generated from protobuf field int64 int64_value = 1; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(1); + } + + public function hasInt64Value() + { + return $this->hasOneof(1); + } + + /** + * Integer value + * + * Generated from protobuf field int64 int64_value = 1; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Double value + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * Double value + * + * Generated from protobuf field double double_value = 2; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneValue() + { + return $this->whichOneof("one_value"); + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php new file mode 100644 index 000000000000..39f017937c2e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php @@ -0,0 +1,611 @@ +google.analytics.admin.v1beta.Property + */ +class Property extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" + * types cannot yet be created with the Google Analytics Admin API. + * + * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $property_type = 0; + /** + * Output only. Time when the entity was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when entity payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parent = ''; + /** + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * + * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + */ + protected $industry_category = 0; + /** + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_zone = ''; + /** + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * + * Generated from protobuf field string currency_code = 8; + */ + protected $currency_code = ''; + /** + * Output only. The Google Analytics service level that applies to this + * property. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_level = 0; + /** + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delete_time = null; + /** + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expire_time = null; + /** + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * + * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $account = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * @type int $property_type + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" + * types cannot yet be created with the Google Analytics Admin API. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the entity was originally created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time when entity payload fields were last updated. + * @type string $parent + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * @type string $display_name + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * @type int $industry_category + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * @type string $time_zone + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * @type string $currency_code + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * @type int $service_level + * Output only. The Google Analytics service level that applies to this + * property. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * @type \Google\Protobuf\Timestamp $expire_time + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * @type string $account + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Resource name of this property. + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" + * types cannot yet be created with the Google Analytics Admin API. + * + * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getPropertyType() + { + return $this->property_type; + } + + /** + * Immutable. The property type for this Property resource. When creating a + * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" + * types cannot yet be created with the Google Analytics Admin API. + * + * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setPropertyType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\PropertyType::class); + $this->property_type = $var; + + return $this; + } + + /** + * Output only. Time when the entity was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the entity was originally created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when entity payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time when entity payload fields were last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Immutable. Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/101" + * + * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. Human-readable display name for this property. + * The max allowed display name length is 100 UTF-16 code units. + * + * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * + * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * @return int + */ + public function getIndustryCategory() + { + return $this->industry_category; + } + + /** + * Industry associated with this property + * Example: AUTOMOTIVE, FOOD_AND_DRINK + * + * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * @param int $var + * @return $this + */ + public function setIndustryCategory($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\IndustryCategory::class); + $this->industry_category = $var; + + return $this; + } + + /** + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Required. Reporting Time Zone, used as the day boundary for reports, + * regardless of where the data originates. If the time zone honors DST, + * Analytics will automatically adjust for the changes. + * NOTE: Changing the time zone only affects data going forward, and is not + * applied retroactively. + * Format: https://www.iana.org/time-zones + * Example: "America/Los_Angeles" + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * + * Generated from protobuf field string currency_code = 8; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * The currency type used in reports involving monetary values. + * Format: https://en.wikipedia.org/wiki/ISO_4217 + * Examples: "USD", "EUR", "JPY" + * + * Generated from protobuf field string currency_code = 8; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Output only. The Google Analytics service level that applies to this + * property. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getServiceLevel() + { + return $this->service_level; + } + + /** + * Output only. The Google Analytics service level that applies to this + * property. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setServiceLevel($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ServiceLevel::class); + $this->service_level = $var; + + return $this; + } + + /** + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. If set, the time at which this property was trashed. If not + * set, then this property is not currently in the trash can. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->expire_time; + } + + public function hasExpireTime() + { + return isset($this->expire_time); + } + + public function clearExpireTime() + { + unset($this->expire_time); + } + + /** + * Output only. If set, the time at which this trashed property will be + * permanently deleted. If not set, then this property is not currently in the + * trash can and is not slated to be deleted. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expire_time = $var; + + return $this; + } + + /** + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * + * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Immutable. The resource name of the parent account + * Format: accounts/{account_id} + * Example: "accounts/123" + * + * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php new file mode 100644 index 000000000000..2b198f304695 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php @@ -0,0 +1,189 @@ +google.analytics.admin.v1beta.PropertySummary + */ +class PropertySummary extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + */ + protected $property = ''; + /** + * Display name for the property referred to in this property summary. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * The property's property type. + * + * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; + */ + protected $property_type = 0; + /** + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * @type string $display_name + * Display name for the property referred to in this property summary. + * @type int $property_type + * The property's property type. + * @type string $parent + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Resource name of property referred to by this property summary + * Format: properties/{property_id} + * Example: "properties/1000" + * + * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Display name for the property referred to in this property summary. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name for the property referred to in this property summary. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * The property's property type. + * + * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; + * @return int + */ + public function getPropertyType() + { + return $this->property_type; + } + + /** + * The property's property type. + * + * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; + * @param int $var + * @return $this + */ + public function setPropertyType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\PropertyType::class); + $this->property_type = $var; + + return $this; + } + + /** + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Resource name of this property's logical parent. + * Note: The Property-Moving UI can be used to change the parent. + * Format: accounts/{account}, properties/{property} + * Example: "accounts/100", "properties/200" + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php new file mode 100644 index 000000000000..746a8078f25e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php @@ -0,0 +1,68 @@ +google.analytics.admin.v1beta.PropertyType + */ +class PropertyType +{ + /** + * Unknown or unspecified property type + * + * Generated from protobuf enum PROPERTY_TYPE_UNSPECIFIED = 0; + */ + const PROPERTY_TYPE_UNSPECIFIED = 0; + /** + * Ordinary GA4 property + * + * Generated from protobuf enum PROPERTY_TYPE_ORDINARY = 1; + */ + const PROPERTY_TYPE_ORDINARY = 1; + /** + * GA4 subproperty + * + * Generated from protobuf enum PROPERTY_TYPE_SUBPROPERTY = 2; + */ + const PROPERTY_TYPE_SUBPROPERTY = 2; + /** + * GA4 rollup property + * + * Generated from protobuf enum PROPERTY_TYPE_ROLLUP = 3; + */ + const PROPERTY_TYPE_ROLLUP = 3; + + private static $valueToName = [ + self::PROPERTY_TYPE_UNSPECIFIED => 'PROPERTY_TYPE_UNSPECIFIED', + self::PROPERTY_TYPE_ORDINARY => 'PROPERTY_TYPE_ORDINARY', + self::PROPERTY_TYPE_SUBPROPERTY => 'PROPERTY_TYPE_SUBPROPERTY', + self::PROPERTY_TYPE_ROLLUP => 'PROPERTY_TYPE_ROLLUP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php new file mode 100644 index 000000000000..0005e6b70010 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1beta.ProvisionAccountTicketRequest + */ +class ProvisionAccountTicketRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The account to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; + */ + protected $account = null; + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * + * Generated from protobuf field string redirect_uri = 2; + */ + protected $redirect_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\Account $account + * The account to create. + * @type string $redirect_uri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The account to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; + * @return \Google\Analytics\Admin\V1beta\Account|null + */ + public function getAccount() + { + return $this->account; + } + + public function hasAccount() + { + return isset($this->account); + } + + public function clearAccount() + { + unset($this->account); + } + + /** + * The account to create. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; + * @param \Google\Analytics\Admin\V1beta\Account $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); + $this->account = $var; + + return $this; + } + + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * + * Generated from protobuf field string redirect_uri = 2; + * @return string + */ + public function getRedirectUri() + { + return $this->redirect_uri; + } + + /** + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * + * Generated from protobuf field string redirect_uri = 2; + * @param string $var + * @return $this + */ + public function setRedirectUri($var) + { + GPBUtil::checkString($var, True); + $this->redirect_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php new file mode 100644 index 000000000000..6a82de170909 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1beta.ProvisionAccountTicketResponse + */ +class ProvisionAccountTicketResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The param to be passed in the ToS link. + * + * Generated from protobuf field string account_ticket_id = 1; + */ + protected $account_ticket_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account_ticket_id + * The param to be passed in the ToS link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The param to be passed in the ToS link. + * + * Generated from protobuf field string account_ticket_id = 1; + * @return string + */ + public function getAccountTicketId() + { + return $this->account_ticket_id; + } + + /** + * The param to be passed in the ToS link. + * + * Generated from protobuf field string account_ticket_id = 1; + * @param string $var + * @return $this + */ + public function setAccountTicketId($var) + { + GPBUtil::checkString($var, True); + $this->account_ticket_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php new file mode 100644 index 000000000000..cf8d00f072db --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php @@ -0,0 +1,583 @@ +google.analytics.admin.v1beta.RunAccessReportRequest + */ +class RunAccessReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * + * Generated from protobuf field string entity = 1; + */ + protected $entity = ''; + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + private $dimensions; + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + private $metrics; + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + private $date_ranges; + /** + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + protected $dimension_filter = null; + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + protected $metric_filter = null; + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + */ + protected $offset = 0; + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + */ + protected $limit = 0; + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * + * Generated from protobuf field string time_zone = 9; + */ + protected $time_zone = ''; + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + private $order_bys; + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * + * Generated from protobuf field bool return_entity_quota = 11; + */ + protected $return_entity_quota = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * @type array<\Google\Analytics\Admin\V1beta\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * @type array<\Google\Analytics\Admin\V1beta\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * @type array<\Google\Analytics\Admin\V1beta\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $dimension_filter + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $metric_filter + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * @type int|string $offset + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int|string $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type string $time_zone + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * @type array<\Google\Analytics\Admin\V1beta\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys + * Specifies how rows are ordered in the response. + * @type bool $return_entity_quota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * + * Generated from protobuf field string entity = 1; + * @return string + */ + public function getEntity() + { + return $this->entity; + } + + /** + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * + * Generated from protobuf field string entity = 1; + * @param string $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkString($var, True); + $this->entity = $var; + + return $this; + } + + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + * @param array<\Google\Analytics\Admin\V1beta\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + * @param array<\Google\Analytics\Admin\V1beta\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDateRanges() + { + return $this->date_ranges; + } + + /** + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + * @param array<\Google\Analytics\Admin\V1beta\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDateRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDateRange::class); + $this->date_ranges = $arr; + + return $this; + } + + /** + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null + */ + public function getDimensionFilter() + { + return $this->dimension_filter; + } + + public function hasDimensionFilter() + { + return isset($this->dimension_filter); + } + + public function clearDimensionFilter() + { + unset($this->dimension_filter); + } + + /** + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var + * @return $this + */ + public function setDimensionFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); + $this->dimension_filter = $var; + + return $this; + } + + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null + */ + public function getMetricFilter() + { + return $this->metric_filter; + } + + public function hasMetricFilter() + { + return isset($this->metric_filter); + } + + public function clearMetricFilter() + { + unset($this->metric_filter); + } + + /** + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var + * @return $this + */ + public function setMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); + $this->metric_filter = $var; + + return $this; + } + + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + * @return int|string + */ + public function getOffset() + { + return $this->offset; + } + + /** + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + * @param int|string $var + * @return $this + */ + public function setOffset($var) + { + GPBUtil::checkInt64($var); + $this->offset = $var; + + return $this; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + * @return int|string + */ + public function getLimit() + { + return $this->limit; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + * @param int|string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt64($var); + $this->limit = $var; + + return $this; + } + + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * + * Generated from protobuf field string time_zone = 9; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * + * Generated from protobuf field string time_zone = 9; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrderBys() + { + return $this->order_bys; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + * @param array<\Google\Analytics\Admin\V1beta\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrderBys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessOrderBy::class); + $this->order_bys = $arr; + + return $this; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * + * Generated from protobuf field bool return_entity_quota = 11; + * @return bool + */ + public function getReturnEntityQuota() + { + return $this->return_entity_quota; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * + * Generated from protobuf field bool return_entity_quota = 11; + * @param bool $var + * @return $this + */ + public function setReturnEntityQuota($var) + { + GPBUtil::checkBool($var); + $this->return_entity_quota = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php new file mode 100644 index 000000000000..32d64a075493 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php @@ -0,0 +1,257 @@ +google.analytics.admin.v1beta.RunAccessReportResponse + */ +class RunAccessReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + */ + private $dimension_headers; + /** + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + private $metric_headers; + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + private $rows; + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 4; + */ + protected $row_count = 0; + /** + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + protected $quota = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * @type array<\Google\Analytics\Admin\V1beta\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * @type array<\Google\Analytics\Admin\V1beta\AccessRow>|\Google\Protobuf\Internal\RepeatedField $rows + * Rows of dimension value combinations and metric values in the report. + * @type int $row_count + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type \Google\Analytics\Admin\V1beta\AccessQuota $quota + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionHeaders() + { + return $this->dimension_headers; + } + + /** + * The header for a column in the report that corresponds to a specific + * dimension. The number of DimensionHeaders and ordering of DimensionHeaders + * matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimensionHeader::class); + $this->dimension_headers = $arr; + + return $this; + } + + /** + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricHeaders() + { + return $this->metric_headers; + } + + /** + * The header for a column in the report that corresponds to a specific + * metric. The number of MetricHeaders and ordering of MetricHeaders matches + * the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + * @param array<\Google\Analytics\Admin\V1beta\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricHeader::class); + $this->metric_headers = $arr; + + return $this; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + * @param array<\Google\Analytics\Admin\V1beta\AccessRow>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessRow::class); + $this->rows = $arr; + + return $this; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 4; + * @return int + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 4; + * @param int $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt32($var); + $this->row_count = $var; + + return $this; + } + + /** + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; + * @return \Google\Analytics\Admin\V1beta\AccessQuota|null + */ + public function getQuota() + { + return $this->quota; + } + + public function hasQuota() + { + return isset($this->quota); + } + + public function clearQuota() + { + unset($this->quota); + } + + /** + * The quota state for this Analytics property including this request. This + * field doesn't work with account-level requests. + * + * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; + * @param \Google\Analytics\Admin\V1beta\AccessQuota $var + * @return $this + */ + public function setQuota($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuota::class); + $this->quota = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php new file mode 100644 index 000000000000..b40543a51b55 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php @@ -0,0 +1,407 @@ +google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + */ +class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account resource for which to return change history + * resources. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $account = ''; + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * + * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $property = ''; + /** + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $resource_type; + /** + * Optional. If set, only return changes that match one or more of these types + * of actions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $action; + /** + * Optional. If set, only return changes if they are made by a user in this + * list. + * + * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $actor_email; + /** + * Optional. If set, only return changes made after this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $earliest_change_time = null; + /** + * Optional. If set, only return changes made before this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latest_change_time = null; + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account + * Required. The account resource for which to return change history + * resources. + * @type string $property + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_type + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @type array|\Google\Protobuf\Internal\RepeatedField $action + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @type array|\Google\Protobuf\Internal\RepeatedField $actor_email + * Optional. If set, only return changes if they are made by a user in this + * list. + * @type \Google\Protobuf\Timestamp $earliest_change_time + * Optional. If set, only return changes made after this time (inclusive). + * @type \Google\Protobuf\Timestamp $latest_change_time + * Optional. If set, only return changes made before this time (inclusive). + * @type int $page_size + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * @type string $page_token + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account resource for which to return change history + * resources. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAccount() + { + return $this->account; + } + + /** + * Required. The account resource for which to return change history + * resources. + * + * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkString($var, True); + $this->account = $var; + + return $this; + } + + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * + * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * + * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\ChangeHistoryResourceType::class); + $this->resource_type = $arr; + + return $this; + } + + /** + * Optional. If set, only return changes that match one or more of these types + * of actions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAction() + { + return $this->action; + } + + /** + * Optional. If set, only return changes that match one or more of these types + * of actions. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAction($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\ActionType::class); + $this->action = $arr; + + return $this; + } + + /** + * Optional. If set, only return changes if they are made by a user in this + * list. + * + * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActorEmail() + { + return $this->actor_email; + } + + /** + * Optional. If set, only return changes if they are made by a user in this + * list. + * + * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActorEmail($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->actor_email = $arr; + + return $this; + } + + /** + * Optional. If set, only return changes made after this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEarliestChangeTime() + { + return $this->earliest_change_time; + } + + public function hasEarliestChangeTime() + { + return isset($this->earliest_change_time); + } + + public function clearEarliestChangeTime() + { + unset($this->earliest_change_time); + } + + /** + * Optional. If set, only return changes made after this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEarliestChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->earliest_change_time = $var; + + return $this; + } + + /** + * Optional. If set, only return changes made before this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLatestChangeTime() + { + return $this->latest_change_time; + } + + public function hasLatestChangeTime() + { + return isset($this->latest_change_time); + } + + public function clearLatestChangeTime() + { + unset($this->latest_change_time); + } + + /** + * Optional. If set, only return changes made before this time (inclusive). + * + * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLatestChangeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->latest_change_time = $var; + + return $this; + } + + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + * + * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php new file mode 100644 index 000000000000..446954be0938 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + */ +class SearchChangeHistoryEventsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + */ + private $change_history_events; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1beta\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $change_history_events + * Results that were accessible to the caller. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChangeHistoryEvents() + { + return $this->change_history_events; + } + + /** + * Results that were accessible to the caller. + * + * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * @param array<\Google\Analytics\Admin\V1beta\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChangeHistoryEvents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ChangeHistoryEvent::class); + $this->change_history_events = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php new file mode 100644 index 000000000000..4ff6e7266ab6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php @@ -0,0 +1,61 @@ +google.analytics.admin.v1beta.ServiceLevel + */ +class ServiceLevel +{ + /** + * Service level not specified or invalid. + * + * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0; + */ + const SERVICE_LEVEL_UNSPECIFIED = 0; + /** + * The standard version of Google Analytics. + * + * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1; + */ + const GOOGLE_ANALYTICS_STANDARD = 1; + /** + * The paid, premium version of Google Analytics. + * + * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2; + */ + const GOOGLE_ANALYTICS_360 = 2; + + private static $valueToName = [ + self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED', + self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD', + self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php new file mode 100644 index 000000000000..26003ae8efe1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php @@ -0,0 +1,156 @@ +google.analytics.admin.v1beta.UpdateAccountRequest + */ +class UpdateAccountRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\Account $account Required. The account to update. + * The account's `name` field is used to identify the account. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateAccountRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\Account $account, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAccount($account) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\Account $account + * Required. The account to update. + * The account's `name` field is used to identify the account. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\Account|null + */ + public function getAccount() + { + return $this->account; + } + + public function hasAccount() + { + return isset($this->account); + } + + public function clearAccount() + { + unset($this->account); + } + + /** + * Required. The account to update. + * The account's `name` field is used to identify the account. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\Account $var + * @return $this + */ + public function setAccount($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); + $this->account = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php new file mode 100644 index 000000000000..7446a39035e8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php @@ -0,0 +1,156 @@ +google.analytics.admin.v1beta.UpdateConversionEventRequest + */ +class UpdateConversionEventRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversion_event = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateConversionEventRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setConversionEvent($conversionEvent) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null + */ + public function getConversionEvent() + { + return $this->conversion_event; + } + + public function hasConversionEvent() + { + return isset($this->conversion_event); + } + + public function clearConversionEvent() + { + unset($this->conversion_event); + } + + /** + * Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); + $this->conversion_event = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php new file mode 100644 index 000000000000..8f5570a83572 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php @@ -0,0 +1,146 @@ +google.analytics.admin.v1beta.UpdateCustomDimensionRequest + */ +class UpdateCustomDimensionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The CustomDimension to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + protected $custom_dimension = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\CustomDimension $customDimension The CustomDimension to update + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateCustomDimensionRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\CustomDimension $customDimension, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCustomDimension($customDimension) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\CustomDimension $custom_dimension + * The CustomDimension to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The CustomDimension to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * @return \Google\Analytics\Admin\V1beta\CustomDimension|null + */ + public function getCustomDimension() + { + return $this->custom_dimension; + } + + public function hasCustomDimension() + { + return isset($this->custom_dimension); + } + + public function clearCustomDimension() + { + unset($this->custom_dimension); + } + + /** + * The CustomDimension to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * @param \Google\Analytics\Admin\V1beta\CustomDimension $var + * @return $this + */ + public function setCustomDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomDimension::class); + $this->custom_dimension = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php new file mode 100644 index 000000000000..2a6a68a15fbe --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php @@ -0,0 +1,146 @@ +google.analytics.admin.v1beta.UpdateCustomMetricRequest + */ +class UpdateCustomMetricRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The CustomMetric to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + protected $custom_metric = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\CustomMetric $customMetric The CustomMetric to update + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateCustomMetricRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\CustomMetric $customMetric, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCustomMetric($customMetric) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\CustomMetric $custom_metric + * The CustomMetric to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The CustomMetric to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * @return \Google\Analytics\Admin\V1beta\CustomMetric|null + */ + public function getCustomMetric() + { + return $this->custom_metric; + } + + public function hasCustomMetric() + { + return isset($this->custom_metric); + } + + public function clearCustomMetric() + { + unset($this->custom_metric); + } + + /** + * The CustomMetric to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * @param \Google\Analytics\Admin\V1beta\CustomMetric $var + * @return $this + */ + public function setCustomMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomMetric::class); + $this->custom_metric = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php new file mode 100644 index 000000000000..62465168648e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php @@ -0,0 +1,156 @@ +google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + */ +class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_retention_settings = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $dataRetentionSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateDataRetentionSettingsRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\DataRetentionSettings $dataRetentionSettings, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataRetentionSettings($dataRetentionSettings) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\DataRetentionSettings $data_retention_settings + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings|null + */ + public function getDataRetentionSettings() + { + return $this->data_retention_settings; + } + + public function hasDataRetentionSettings() + { + return isset($this->data_retention_settings); + } + + public function clearDataRetentionSettings() + { + unset($this->data_retention_settings); + } + + /** + * Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $var + * @return $this + */ + public function setDataRetentionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings::class); + $this->data_retention_settings = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php new file mode 100644 index 000000000000..75f89f3ac6b9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php @@ -0,0 +1,146 @@ +google.analytics.admin.v1beta.UpdateDataStreamRequest + */ +class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The DataStream to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + protected $data_stream = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\DataStream $dataStream The DataStream to update + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateDataStreamRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\DataStream $dataStream, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataStream($dataStream) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream + * The DataStream to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The DataStream to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; + * @return \Google\Analytics\Admin\V1beta\DataStream|null + */ + public function getDataStream() + { + return $this->data_stream; + } + + public function hasDataStream() + { + return isset($this->data_stream); + } + + public function clearDataStream() + { + unset($this->data_stream); + } + + /** + * The DataStream to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; + * @param \Google\Analytics\Admin\V1beta\DataStream $var + * @return $this + */ + public function setDataStream($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); + $this->data_stream = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php new file mode 100644 index 000000000000..74207c5be17f --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php @@ -0,0 +1,151 @@ +google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + */ +class UpdateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The GoogleAdsLink to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + protected $google_ads_link = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink The GoogleAdsLink to update + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdateGoogleAdsLinkRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setGoogleAdsLink($googleAdsLink) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link + * The GoogleAdsLink to update + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The GoogleAdsLink to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null + */ + public function getGoogleAdsLink() + { + return $this->google_ads_link; + } + + public function hasGoogleAdsLink() + { + return isset($this->google_ads_link); + } + + public function clearGoogleAdsLink() + { + unset($this->google_ads_link); + } + + /** + * The GoogleAdsLink to update + * + * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var + * @return $this + */ + public function setGoogleAdsLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); + $this->google_ads_link = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php new file mode 100644 index 000000000000..ea5707e1ccd1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php @@ -0,0 +1,141 @@ +google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + */ +class UpdateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The measurement protocol secret to update. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $measurement_protocol_secret = null; + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * @return \Google\Analytics\Admin\V1beta\UpdateMeasurementProtocolSecretRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setMeasurementProtocolSecret($measurementProtocolSecret) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret + * Required. The measurement protocol secret to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The measurement protocol secret to update. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null + */ + public function getMeasurementProtocolSecret() + { + return $this->measurement_protocol_secret; + } + + public function hasMeasurementProtocolSecret() + { + return isset($this->measurement_protocol_secret); + } + + public function clearMeasurementProtocolSecret() + { + unset($this->measurement_protocol_secret); + } + + /** + * Required. The measurement protocol secret to update. + * + * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var + * @return $this + */ + public function setMeasurementProtocolSecret($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); + $this->measurement_protocol_secret = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Omitted fields will not be + * updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php new file mode 100644 index 000000000000..f876aa7fa4c8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php @@ -0,0 +1,161 @@ +google.analytics.admin.v1beta.UpdatePropertyRequest + */ +class UpdatePropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $property = null; + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Analytics\Admin\V1beta\Property $property Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * @return \Google\Analytics\Admin\V1beta\UpdatePropertyRequest + * + * @experimental + */ + public static function build(\Google\Analytics\Admin\V1beta\Property $property, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setProperty($property) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1beta\Property $property + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1beta\Property|null + */ + public function getProperty() + { + return $this->property; + } + + public function hasProperty() + { + return isset($this->property); + } + + public function clearProperty() + { + unset($this->property); + } + + /** + * Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * + * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1beta\Property $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); + $this->property = $var; + + return $this; + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php new file mode 100644 index 000000000000..f53ce9cba38d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php @@ -0,0 +1,87 @@ +setProperty($formattedProperty) + ->setAcknowledgement($acknowledgement); + + // Call the API and handle any network failures. + try { + /** @var AcknowledgeUserDataCollectionResponse $response */ + $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $acknowledgement = '[ACKNOWLEDGEMENT]'; + + acknowledge_user_data_collection_sample($formattedProperty, $acknowledgement); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php new file mode 100644 index 000000000000..5beca8a3e3cb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->archiveCustomDimension($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customDimensionName( + '[PROPERTY]', + '[CUSTOM_DIMENSION]' + ); + + archive_custom_dimension_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php new file mode 100644 index 000000000000..bfd3529ff92c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->archiveCustomMetric($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + + archive_custom_metric_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php new file mode 100644 index 000000000000..3f815f73f010 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php @@ -0,0 +1,74 @@ +setConversionEvent($conversionEvent) + ->setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ConversionEvent $response */ + $response = $analyticsAdminServiceClient->createConversionEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_conversion_event_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php new file mode 100644 index 000000000000..152fadc53181 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php @@ -0,0 +1,107 @@ +setParameterName($customDimensionParameterName) + ->setDisplayName($customDimensionDisplayName) + ->setScope($customDimensionScope); + $request = (new CreateCustomDimensionRequest()) + ->setParent($formattedParent) + ->setCustomDimension($customDimension); + + // Call the API and handle any network failures. + try { + /** @var CustomDimension $response */ + $response = $analyticsAdminServiceClient->createCustomDimension($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $customDimensionParameterName = '[PARAMETER_NAME]'; + $customDimensionDisplayName = '[DISPLAY_NAME]'; + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + + create_custom_dimension_sample( + $formattedParent, + $customDimensionParameterName, + $customDimensionDisplayName, + $customDimensionScope + ); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php new file mode 100644 index 000000000000..d887cd8f7bac --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php @@ -0,0 +1,108 @@ +setParameterName($customMetricParameterName) + ->setDisplayName($customMetricDisplayName) + ->setMeasurementUnit($customMetricMeasurementUnit) + ->setScope($customMetricScope); + $request = (new CreateCustomMetricRequest()) + ->setParent($formattedParent) + ->setCustomMetric($customMetric); + + // Call the API and handle any network failures. + try { + /** @var CustomMetric $response */ + $response = $analyticsAdminServiceClient->createCustomMetric($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $customMetricParameterName = '[PARAMETER_NAME]'; + $customMetricDisplayName = '[DISPLAY_NAME]'; + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + + create_custom_metric_sample( + $formattedParent, + $customMetricParameterName, + $customMetricDisplayName, + $customMetricMeasurementUnit, + $customMetricScope + ); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php new file mode 100644 index 000000000000..6b4f173aaab3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php @@ -0,0 +1,77 @@ +setType($dataStreamType); + $request = (new CreateDataStreamRequest()) + ->setParent($formattedParent) + ->setDataStream($dataStream); + + // Call the API and handle any network failures. + try { + /** @var DataStream $response */ + $response = $analyticsAdminServiceClient->createDataStream($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + + create_data_stream_sample($formattedParent, $dataStreamType); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php new file mode 100644 index 000000000000..627bfed86eea --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php @@ -0,0 +1,76 @@ +setParent($formattedParent) + ->setFirebaseLink($firebaseLink); + + // Call the API and handle any network failures. + try { + /** @var FirebaseLink $response */ + $response = $analyticsAdminServiceClient->createFirebaseLink($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_firebase_link_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php new file mode 100644 index 000000000000..f46c70cb7205 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php @@ -0,0 +1,73 @@ +setParent($formattedParent) + ->setGoogleAdsLink($googleAdsLink); + + // Call the API and handle any network failures. + try { + /** @var GoogleAdsLink $response */ + $response = $analyticsAdminServiceClient->createGoogleAdsLink($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + create_google_ads_link_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php new file mode 100644 index 000000000000..0dc13bee1da3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php @@ -0,0 +1,79 @@ +setDisplayName($measurementProtocolSecretDisplayName); + $request = (new CreateMeasurementProtocolSecretRequest()) + ->setParent($formattedParent) + ->setMeasurementProtocolSecret($measurementProtocolSecret); + + // Call the API and handle any network failures. + try { + /** @var MeasurementProtocolSecret $response */ + $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; + + create_measurement_protocol_secret_sample($formattedParent, $measurementProtocolSecretDisplayName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php new file mode 100644 index 000000000000..780c371f05c8 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php @@ -0,0 +1,85 @@ +setDisplayName($propertyDisplayName) + ->setTimeZone($propertyTimeZone); + $request = (new CreatePropertyRequest()) + ->setProperty($property); + + // Call the API and handle any network failures. + try { + /** @var Property $response */ + $response = $analyticsAdminServiceClient->createProperty($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $propertyDisplayName = '[DISPLAY_NAME]'; + $propertyTimeZone = '[TIME_ZONE]'; + + create_property_sample($propertyDisplayName, $propertyTimeZone); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php new file mode 100644 index 000000000000..61db2101e3e2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->deleteAccount($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + delete_account_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php new file mode 100644 index 000000000000..36a743cf9973 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->deleteConversionEvent($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::conversionEventName( + '[PROPERTY]', + '[CONVERSION_EVENT]' + ); + + delete_conversion_event_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php new file mode 100644 index 000000000000..809ae4e19b02 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->deleteDataStream($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + delete_data_stream_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php new file mode 100644 index 000000000000..04eab87ba683 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->deleteFirebaseLink($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + + delete_firebase_link_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php new file mode 100644 index 000000000000..3ce9bb067561 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->deleteGoogleAdsLink($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + + delete_google_ads_link_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php new file mode 100644 index 000000000000..5c765f2df4e6 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( + '[PROPERTY]', + '[DATA_STREAM]', + '[MEASUREMENT_PROTOCOL_SECRET]' + ); + + delete_measurement_protocol_secret_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php new file mode 100644 index 000000000000..3d784e2223e4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php @@ -0,0 +1,83 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Property $response */ + $response = $analyticsAdminServiceClient->deleteProperty($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + delete_property_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php new file mode 100644 index 000000000000..093401c500d5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Account $response */ + $response = $analyticsAdminServiceClient->getAccount($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + get_account_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php new file mode 100644 index 000000000000..17bf0b13f4d2 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ConversionEvent $response */ + $response = $analyticsAdminServiceClient->getConversionEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::conversionEventName( + '[PROPERTY]', + '[CONVERSION_EVENT]' + ); + + get_conversion_event_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php new file mode 100644 index 000000000000..3c98f597d3f5 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomDimension $response */ + $response = $analyticsAdminServiceClient->getCustomDimension($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customDimensionName( + '[PROPERTY]', + '[CUSTOM_DIMENSION]' + ); + + get_custom_dimension_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php new file mode 100644 index 000000000000..daa9160443b9 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomMetric $response */ + $response = $analyticsAdminServiceClient->getCustomMetric($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + + get_custom_metric_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php new file mode 100644 index 000000000000..dce0d508c117 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataRetentionSettings $response */ + $response = $analyticsAdminServiceClient->getDataRetentionSettings($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataRetentionSettingsName('[PROPERTY]'); + + get_data_retention_settings_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php new file mode 100644 index 000000000000..5963d099becb --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataSharingSettings $response */ + $response = $analyticsAdminServiceClient->getDataSharingSettings($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataSharingSettingsName('[ACCOUNT]'); + + get_data_sharing_settings_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php new file mode 100644 index 000000000000..5abc8a883b95 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataStream $response */ + $response = $analyticsAdminServiceClient->getDataStream($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + get_data_stream_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php new file mode 100644 index 000000000000..851961152c5c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MeasurementProtocolSecret $response */ + $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( + '[PROPERTY]', + '[DATA_STREAM]', + '[MEASUREMENT_PROTOCOL_SECRET]' + ); + + get_measurement_protocol_secret_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php new file mode 100644 index 000000000000..2dd874a96dd3 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Property $response */ + $response = $analyticsAdminServiceClient->getProperty($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + get_property_sample($formattedName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php new file mode 100644 index 000000000000..f6290b290cd4 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php @@ -0,0 +1,62 @@ +listAccountSummaries($request); + + /** @var AccountSummary $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php new file mode 100644 index 000000000000..b8baf084506a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php @@ -0,0 +1,66 @@ +listAccounts($request); + + /** @var Account $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php new file mode 100644 index 000000000000..5bea94f3d6ff --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listConversionEvents($request); + + /** @var ConversionEvent $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_conversion_events_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php new file mode 100644 index 000000000000..228c2ecc021c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listCustomDimensions($request); + + /** @var CustomDimension $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_custom_dimensions_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php new file mode 100644 index 000000000000..4a3ee2c8e021 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listCustomMetrics($request); + + /** @var CustomMetric $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_custom_metrics_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php new file mode 100644 index 000000000000..75513d807bf0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listDataStreams($request); + + /** @var DataStream $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_data_streams_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php new file mode 100644 index 000000000000..28a47c0c63d0 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listFirebaseLinks($request); + + /** @var FirebaseLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_firebase_links_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php new file mode 100644 index 000000000000..2e2cc0a2eabe --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listGoogleAdsLinks($request); + + /** @var GoogleAdsLink $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); + + list_google_ads_links_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php new file mode 100644 index 000000000000..99c5d04da409 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($request); + + /** @var MeasurementProtocolSecret $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + + list_measurement_protocol_secrets_sample($formattedParent); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php new file mode 100644 index 000000000000..d49927094103 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php @@ -0,0 +1,95 @@ +setFilter($filter); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->listProperties($request); + + /** @var Property $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $filter = '[FILTER]'; + + list_properties_sample($filter); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php new file mode 100644 index 000000000000..a2c6e56f62d1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php @@ -0,0 +1,57 @@ +provisionAccountTicket($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php new file mode 100644 index 000000000000..c51342af5d2c --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php @@ -0,0 +1,69 @@ +runAccessReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php new file mode 100644 index 000000000000..84f77712b359 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php @@ -0,0 +1,78 @@ +setAccount($formattedAccount); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $analyticsAdminServiceClient->searchChangeHistoryEvents($request); + + /** @var ChangeHistoryEvent $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedAccount = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); + + search_change_history_events_sample($formattedAccount); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php new file mode 100644 index 000000000000..85cb9b1f69db --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php @@ -0,0 +1,75 @@ +setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateAccountRequest()) + ->setAccount($account) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Account $response */ + $response = $analyticsAdminServiceClient->updateAccount($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $accountDisplayName = '[DISPLAY_NAME]'; + + update_account_sample($accountDisplayName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php new file mode 100644 index 000000000000..b52446f2677d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php @@ -0,0 +1,62 @@ +setConversionEvent($conversionEvent) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var ConversionEvent $response */ + $response = $analyticsAdminServiceClient->updateConversionEvent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php new file mode 100644 index 000000000000..908ab16d4b44 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php @@ -0,0 +1,60 @@ +setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var CustomDimension $response */ + $response = $analyticsAdminServiceClient->updateCustomDimension($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php new file mode 100644 index 000000000000..8a6e51896254 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php @@ -0,0 +1,60 @@ +setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var CustomMetric $response */ + $response = $analyticsAdminServiceClient->updateCustomMetric($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php new file mode 100644 index 000000000000..68eb178ad990 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php @@ -0,0 +1,62 @@ +setDataRetentionSettings($dataRetentionSettings) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var DataRetentionSettings $response */ + $response = $analyticsAdminServiceClient->updateDataRetentionSettings($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php new file mode 100644 index 000000000000..e09c7029213a --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php @@ -0,0 +1,60 @@ +setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var DataStream $response */ + $response = $analyticsAdminServiceClient->updateDataStream($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php new file mode 100644 index 000000000000..d22e6e783bc1 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php @@ -0,0 +1,60 @@ +setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var GoogleAdsLink $response */ + $response = $analyticsAdminServiceClient->updateGoogleAdsLink($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php new file mode 100644 index 000000000000..4d07dadbb982 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php @@ -0,0 +1,76 @@ +setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateMeasurementProtocolSecretRequest()) + ->setMeasurementProtocolSecret($measurementProtocolSecret) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var MeasurementProtocolSecret $response */ + $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; + + update_measurement_protocol_secret_sample($measurementProtocolSecretDisplayName); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php new file mode 100644 index 000000000000..58f0649789dc --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php @@ -0,0 +1,88 @@ +setDisplayName($propertyDisplayName) + ->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + $request = (new UpdatePropertyRequest()) + ->setProperty($property) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Property $response */ + $response = $analyticsAdminServiceClient->updateProperty($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $propertyDisplayName = '[DISPLAY_NAME]'; + $propertyTimeZone = '[TIME_ZONE]'; + + update_property_sample($propertyDisplayName, $propertyTimeZone); +} +// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php new file mode 100644 index 000000000000..04dd1cf15e61 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php @@ -0,0 +1,36 @@ + self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a account + * resource. + * + * @param string $account + * + * @return string The formatted account resource. + * + * @experimental + */ + public static function accountName(string $account): string + { + return self::getPathTemplate('account')->render([ + 'account' => $account, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * conversion_event resource. + * + * @param string $property + * @param string $conversionEvent + * + * @return string The formatted conversion_event resource. + * + * @experimental + */ + public static function conversionEventName(string $property, string $conversionEvent): string + { + return self::getPathTemplate('conversionEvent')->render([ + 'property' => $property, + 'conversion_event' => $conversionEvent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_dimension resource. + * + * @param string $property + * @param string $customDimension + * + * @return string The formatted custom_dimension resource. + * + * @experimental + */ + public static function customDimensionName(string $property, string $customDimension): string + { + return self::getPathTemplate('customDimension')->render([ + 'property' => $property, + 'custom_dimension' => $customDimension, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_metric resource. + * + * @param string $property + * @param string $customMetric + * + * @return string The formatted custom_metric resource. + * + * @experimental + */ + public static function customMetricName(string $property, string $customMetric): string + { + return self::getPathTemplate('customMetric')->render([ + 'property' => $property, + 'custom_metric' => $customMetric, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_retention_settings resource. + * + * @param string $property + * + * @return string The formatted data_retention_settings resource. + * + * @experimental + */ + public static function dataRetentionSettingsName(string $property): string + { + return self::getPathTemplate('dataRetentionSettings')->render([ + 'property' => $property, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_sharing_settings resource. + * + * @param string $account + * + * @return string The formatted data_sharing_settings resource. + * + * @experimental + */ + public static function dataSharingSettingsName(string $account): string + { + return self::getPathTemplate('dataSharingSettings')->render([ + 'account' => $account, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_stream + * resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted data_stream resource. + * + * @experimental + */ + public static function dataStreamName(string $property, string $dataStream): string + { + return self::getPathTemplate('dataStream')->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * firebase_link resource. + * + * @param string $property + * @param string $firebaseLink + * + * @return string The formatted firebase_link resource. + * + * @experimental + */ + public static function firebaseLinkName(string $property, string $firebaseLink): string + { + return self::getPathTemplate('firebaseLink')->render([ + 'property' => $property, + 'firebase_link' => $firebaseLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * google_ads_link resource. + * + * @param string $property + * @param string $googleAdsLink + * + * @return string The formatted google_ads_link resource. + * + * @experimental + */ + public static function googleAdsLinkName(string $property, string $googleAdsLink): string + { + return self::getPathTemplate('googleAdsLink')->render([ + 'property' => $property, + 'google_ads_link' => $googleAdsLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * measurement_protocol_secret resource. + * + * @param string $property + * @param string $dataStream + * @param string $measurementProtocolSecret + * + * @return string The formatted measurement_protocol_secret resource. + * + * @experimental + */ + public static function measurementProtocolSecretName(string $property, string $dataStream, string $measurementProtocolSecret): string + { + return self::getPathTemplate('measurementProtocolSecret')->render([ + 'property' => $property, + 'data_stream' => $dataStream, + 'measurement_protocol_secret' => $measurementProtocolSecret, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a property + * resource. + * + * @param string $property + * + * @return string The formatted property resource. + * + * @experimental + */ + public static function propertyName(string $property): string + { + return self::getPathTemplate('property')->render([ + 'property' => $property, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - account: accounts/{account} + * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} + * - customDimension: properties/{property}/customDimensions/{custom_dimension} + * - customMetric: properties/{property}/customMetrics/{custom_metric} + * - dataRetentionSettings: properties/{property}/dataRetentionSettings + * - dataSharingSettings: accounts/{account}/dataSharingSettings + * - dataStream: properties/{property}/dataStreams/{data_stream} + * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} + * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} + * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} + * - property: properties/{property} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'analyticsadmin.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or through this API) before MeasurementProtocolSecret resources may be + * created. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::acknowledgeUserDataCollectionAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php + * + * @param AcknowledgeUserDataCollectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AcknowledgeUserDataCollectionResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest $request, array $callOptions = []): AcknowledgeUserDataCollectionResponse + { + return $this->startApiCall('AcknowledgeUserDataCollection', $request, $callOptions)->wait(); + } + + /** + * Archives a CustomDimension on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::archiveCustomDimensionAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php + * + * @param ArchiveCustomDimensionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function archiveCustomDimension(ArchiveCustomDimensionRequest $request, array $callOptions = []): void + { + $this->startApiCall('ArchiveCustomDimension', $request, $callOptions)->wait(); + } + + /** + * Archives a CustomMetric on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::archiveCustomMetricAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php + * + * @param ArchiveCustomMetricRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function archiveCustomMetric(ArchiveCustomMetricRequest $request, array $callOptions = []): void + { + $this->startApiCall('ArchiveCustomMetric', $request, $callOptions)->wait(); + } + + /** + * Creates a conversion event with the specified attributes. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::createConversionEventAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php + * + * @param CreateConversionEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ConversionEvent + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createConversionEvent(CreateConversionEventRequest $request, array $callOptions = []): ConversionEvent + { + return $this->startApiCall('CreateConversionEvent', $request, $callOptions)->wait(); + } + + /** + * Creates a CustomDimension. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::createCustomDimensionAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php + * + * @param CreateCustomDimensionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomDimension + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createCustomDimension(CreateCustomDimensionRequest $request, array $callOptions = []): CustomDimension + { + return $this->startApiCall('CreateCustomDimension', $request, $callOptions)->wait(); + } + + /** + * Creates a CustomMetric. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::createCustomMetricAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php + * + * @param CreateCustomMetricRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomMetric + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createCustomMetric(CreateCustomMetricRequest $request, array $callOptions = []): CustomMetric + { + return $this->startApiCall('CreateCustomMetric', $request, $callOptions)->wait(); + } + + /** + * Creates a DataStream. + * + * The async variant is {@see AnalyticsAdminServiceClient::createDataStreamAsync()} + * . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php + * + * @param CreateDataStreamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataStream + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createDataStream(CreateDataStreamRequest $request, array $callOptions = []): DataStream + { + return $this->startApiCall('CreateDataStream', $request, $callOptions)->wait(); + } + + /** + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::createFirebaseLinkAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php + * + * @param CreateFirebaseLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FirebaseLink + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createFirebaseLink(CreateFirebaseLinkRequest $request, array $callOptions = []): FirebaseLink + { + return $this->startApiCall('CreateFirebaseLink', $request, $callOptions)->wait(); + } + + /** + * Creates a GoogleAdsLink. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::createGoogleAdsLinkAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php + * + * @param CreateGoogleAdsLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return GoogleAdsLink + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createGoogleAdsLink(CreateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink + { + return $this->startApiCall('CreateGoogleAdsLink', $request, $callOptions)->wait(); + } + + /** + * Creates a measurement protocol secret. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::createMeasurementProtocolSecretAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php + * + * @param CreateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MeasurementProtocolSecret + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret + { + return $this->startApiCall('CreateMeasurementProtocolSecret', $request, $callOptions)->wait(); + } + + /** + * Creates an "GA4" property with the specified location and attributes. + * + * The async variant is {@see AnalyticsAdminServiceClient::createPropertyAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/create_property.php + * + * @param CreatePropertyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Property + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createProperty(CreatePropertyRequest $request, array $callOptions = []): Property + { + return $this->startApiCall('CreateProperty', $request, $callOptions)->wait(); + } + + /** + * Marks target Account as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted accounts. + * However, they can be restored using the Trash Can UI. + * + * If the accounts are not restored before the expiration time, the account + * and all child resources (eg: Properties, GoogleAdsLinks, Streams, + * UserLinks) will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found. + * + * The async variant is {@see AnalyticsAdminServiceClient::deleteAccountAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_account.php + * + * @param DeleteAccountRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteAccount(DeleteAccountRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteAccount', $request, $callOptions)->wait(); + } + + /** + * Deletes a conversion event in a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::deleteConversionEventAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php + * + * @param DeleteConversionEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteConversionEvent(DeleteConversionEventRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteConversionEvent', $request, $callOptions)->wait(); + } + + /** + * Deletes a DataStream on a property. + * + * The async variant is {@see AnalyticsAdminServiceClient::deleteDataStreamAsync()} + * . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php + * + * @param DeleteDataStreamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteDataStream(DeleteDataStreamRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDataStream', $request, $callOptions)->wait(); + } + + /** + * Deletes a FirebaseLink on a property + * + * The async variant is + * {@see AnalyticsAdminServiceClient::deleteFirebaseLinkAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php + * + * @param DeleteFirebaseLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteFirebaseLink(DeleteFirebaseLinkRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFirebaseLink', $request, $callOptions)->wait(); + } + + /** + * Deletes a GoogleAdsLink on a property + * + * The async variant is + * {@see AnalyticsAdminServiceClient::deleteGoogleAdsLinkAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php + * + * @param DeleteGoogleAdsLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteGoogleAdsLink', $request, $callOptions)->wait(); + } + + /** + * Deletes target MeasurementProtocolSecret. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::deleteMeasurementProtocolSecretAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php + * + * @param DeleteMeasurementProtocolSecretRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteMeasurementProtocolSecret', $request, $callOptions)->wait(); + } + + /** + * Marks target Property as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted properties. + * However, they can be restored using the Trash Can UI. + * + * If the properties are not restored before the expiration time, the Property + * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found, or is not a GA4 Property. + * + * The async variant is {@see AnalyticsAdminServiceClient::deletePropertyAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/delete_property.php + * + * @param DeletePropertyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Property + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteProperty(DeletePropertyRequest $request, array $callOptions = []): Property + { + return $this->startApiCall('DeleteProperty', $request, $callOptions)->wait(); + } + + /** + * Lookup for a single Account. + * + * The async variant is {@see AnalyticsAdminServiceClient::getAccountAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_account.php + * + * @param GetAccountRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Account + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getAccount(GetAccountRequest $request, array $callOptions = []): Account + { + return $this->startApiCall('GetAccount', $request, $callOptions)->wait(); + } + + /** + * Retrieve a single conversion event. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::getConversionEventAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php + * + * @param GetConversionEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ConversionEvent + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getConversionEvent(GetConversionEventRequest $request, array $callOptions = []): ConversionEvent + { + return $this->startApiCall('GetConversionEvent', $request, $callOptions)->wait(); + } + + /** + * Lookup for a single CustomDimension. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::getCustomDimensionAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php + * + * @param GetCustomDimensionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomDimension + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getCustomDimension(GetCustomDimensionRequest $request, array $callOptions = []): CustomDimension + { + return $this->startApiCall('GetCustomDimension', $request, $callOptions)->wait(); + } + + /** + * Lookup for a single CustomMetric. + * + * The async variant is {@see AnalyticsAdminServiceClient::getCustomMetricAsync()} + * . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php + * + * @param GetCustomMetricRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomMetric + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getCustomMetric(GetCustomMetricRequest $request, array $callOptions = []): CustomMetric + { + return $this->startApiCall('GetCustomMetric', $request, $callOptions)->wait(); + } + + /** + * Returns the singleton data retention settings for this property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::getDataRetentionSettingsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php + * + * @param GetDataRetentionSettingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataRetentionSettings + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getDataRetentionSettings(GetDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings + { + return $this->startApiCall('GetDataRetentionSettings', $request, $callOptions)->wait(); + } + + /** + * Get data sharing settings on an account. + * Data sharing settings are singletons. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::getDataSharingSettingsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php + * + * @param GetDataSharingSettingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataSharingSettings + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getDataSharingSettings(GetDataSharingSettingsRequest $request, array $callOptions = []): DataSharingSettings + { + return $this->startApiCall('GetDataSharingSettings', $request, $callOptions)->wait(); + } + + /** + * Lookup for a single DataStream. + * + * The async variant is {@see AnalyticsAdminServiceClient::getDataStreamAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php + * + * @param GetDataStreamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataStream + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getDataStream(GetDataStreamRequest $request, array $callOptions = []): DataStream + { + return $this->startApiCall('GetDataStream', $request, $callOptions)->wait(); + } + + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::getMeasurementProtocolSecretAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php + * + * @param GetMeasurementProtocolSecretRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MeasurementProtocolSecret + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret + { + return $this->startApiCall('GetMeasurementProtocolSecret', $request, $callOptions)->wait(); + } + + /** + * Lookup for a single "GA4" Property. + * + * The async variant is {@see AnalyticsAdminServiceClient::getPropertyAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/get_property.php + * + * @param GetPropertyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Property + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getProperty(GetPropertyRequest $request, array $callOptions = []): Property + { + return $this->startApiCall('GetProperty', $request, $callOptions)->wait(); + } + + /** + * Returns summaries of all accounts accessible by the caller. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listAccountSummariesAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php + * + * @param ListAccountSummariesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listAccountSummaries(ListAccountSummariesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAccountSummaries', $request, $callOptions); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * The async variant is {@see AnalyticsAdminServiceClient::listAccountsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php + * + * @param ListAccountsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listAccounts(ListAccountsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAccounts', $request, $callOptions); + } + + /** + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listConversionEventsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php + * + * @param ListConversionEventsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listConversionEvents(ListConversionEventsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListConversionEvents', $request, $callOptions); + } + + /** + * Lists CustomDimensions on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listCustomDimensionsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php + * + * @param ListCustomDimensionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listCustomDimensions(ListCustomDimensionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomDimensions', $request, $callOptions); + } + + /** + * Lists CustomMetrics on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listCustomMetricsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php + * + * @param ListCustomMetricsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listCustomMetrics(ListCustomMetricsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomMetrics', $request, $callOptions); + } + + /** + * Lists DataStreams on a property. + * + * The async variant is {@see AnalyticsAdminServiceClient::listDataStreamsAsync()} + * . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php + * + * @param ListDataStreamsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listDataStreams(ListDataStreamsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataStreams', $request, $callOptions); + } + + /** + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listFirebaseLinksAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php + * + * @param ListFirebaseLinksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listFirebaseLinks(ListFirebaseLinksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFirebaseLinks', $request, $callOptions); + } + + /** + * Lists GoogleAdsLinks on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listGoogleAdsLinksAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php + * + * @param ListGoogleAdsLinksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listGoogleAdsLinks(ListGoogleAdsLinksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListGoogleAdsLinks', $request, $callOptions); + } + + /** + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::listMeasurementProtocolSecretsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php + * + * @param ListMeasurementProtocolSecretsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMeasurementProtocolSecrets', $request, $callOptions); + } + + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * The async variant is {@see AnalyticsAdminServiceClient::listPropertiesAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/list_properties.php + * + * @param ListPropertiesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listProperties(ListPropertiesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListProperties', $request, $callOptions); + } + + /** + * Requests a ticket for creating an account. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::provisionAccountTicketAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php + * + * @param ProvisionAccountTicketRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ProvisionAccountTicketResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function provisionAccountTicket(ProvisionAccountTicketRequest $request, array $callOptions = []): ProvisionAccountTicketResponse + { + return $this->startApiCall('ProvisionAccountTicket', $request, $callOptions)->wait(); + } + + /** + * Returns a customized report of data access records. The report provides + * records of each time a user reads Google Analytics reporting data. Access + * records are retained for up to 2 years. + * + * Data Access Reports can be requested for a property. The property must be + * in Google Analytics 360. This method is only available to Administrators. + * + * These data access records include GA4 UI Reporting, GA4 UI Explorations, + * GA4 Data API, and other products like Firebase & Admob that can retrieve + * data from Google Analytics through a linkage. These records don't include + * property configuration changes like adding a stream or changing a + * property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + * The async variant is {@see AnalyticsAdminServiceClient::runAccessReportAsync()} + * . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php + * + * @param RunAccessReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RunAccessReportResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function runAccessReport(RunAccessReportRequest $request, array $callOptions = []): RunAccessReportResponse + { + return $this->startApiCall('RunAccessReport', $request, $callOptions)->wait(); + } + + /** + * Searches through all changes to an account or its children given the + * specified set of filters. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::searchChangeHistoryEventsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php + * + * @param SearchChangeHistoryEventsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function searchChangeHistoryEvents(SearchChangeHistoryEventsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchChangeHistoryEvents', $request, $callOptions); + } + + /** + * Updates an account. + * + * The async variant is {@see AnalyticsAdminServiceClient::updateAccountAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_account.php + * + * @param UpdateAccountRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Account + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateAccount(UpdateAccountRequest $request, array $callOptions = []): Account + { + return $this->startApiCall('UpdateAccount', $request, $callOptions)->wait(); + } + + /** + * Updates a conversion event with the specified attributes. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::updateConversionEventAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php + * + * @param UpdateConversionEventRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ConversionEvent + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateConversionEvent(UpdateConversionEventRequest $request, array $callOptions = []): ConversionEvent + { + return $this->startApiCall('UpdateConversionEvent', $request, $callOptions)->wait(); + } + + /** + * Updates a CustomDimension on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::updateCustomDimensionAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php + * + * @param UpdateCustomDimensionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomDimension + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateCustomDimension(UpdateCustomDimensionRequest $request, array $callOptions = []): CustomDimension + { + return $this->startApiCall('UpdateCustomDimension', $request, $callOptions)->wait(); + } + + /** + * Updates a CustomMetric on a property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::updateCustomMetricAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php + * + * @param UpdateCustomMetricRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomMetric + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateCustomMetric(UpdateCustomMetricRequest $request, array $callOptions = []): CustomMetric + { + return $this->startApiCall('UpdateCustomMetric', $request, $callOptions)->wait(); + } + + /** + * Updates the singleton data retention settings for this property. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::updateDataRetentionSettingsAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php + * + * @param UpdateDataRetentionSettingsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataRetentionSettings + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateDataRetentionSettings(UpdateDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings + { + return $this->startApiCall('UpdateDataRetentionSettings', $request, $callOptions)->wait(); + } + + /** + * Updates a DataStream on a property. + * + * The async variant is {@see AnalyticsAdminServiceClient::updateDataStreamAsync()} + * . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php + * + * @param UpdateDataStreamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DataStream + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateDataStream(UpdateDataStreamRequest $request, array $callOptions = []): DataStream + { + return $this->startApiCall('UpdateDataStream', $request, $callOptions)->wait(); + } + + /** + * Updates a GoogleAdsLink on a property + * + * The async variant is + * {@see AnalyticsAdminServiceClient::updateGoogleAdsLinkAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php + * + * @param UpdateGoogleAdsLinkRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return GoogleAdsLink + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateGoogleAdsLink(UpdateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink + { + return $this->startApiCall('UpdateGoogleAdsLink', $request, $callOptions)->wait(); + } + + /** + * Updates a measurement protocol secret. + * + * The async variant is + * {@see AnalyticsAdminServiceClient::updateMeasurementProtocolSecretAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php + * + * @param UpdateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MeasurementProtocolSecret + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret + { + return $this->startApiCall('UpdateMeasurementProtocolSecret', $request, $callOptions)->wait(); + } + + /** + * Updates a property. + * + * The async variant is {@see AnalyticsAdminServiceClient::updatePropertyAsync()} . + * + * @example samples/V1beta/AnalyticsAdminServiceClient/update_property.php + * + * @param UpdatePropertyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Property + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateProperty(UpdatePropertyRequest $request, array $callOptions = []): Property + { + return $this->startApiCall('UpdateProperty', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php new file mode 100644 index 000000000000..797df3e1e30e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php @@ -0,0 +1,3310 @@ +propertyName('[PROPERTY]'); + * $acknowledgement = 'acknowledgement'; + * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + * + * This service has a new (beta) implementation. See {@see + * \Google\Analytics\Admin\V1beta\Client\AnalyticsAdminServiceClient} to use the + * new surface. + * + * @experimental + */ +class AnalyticsAdminServiceGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.analytics.admin.v1beta.AnalyticsAdminService'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/analytics.edit', + 'https://www.googleapis.com/auth/analytics.readonly', + ]; + + private static $accountNameTemplate; + + private static $conversionEventNameTemplate; + + private static $customDimensionNameTemplate; + + private static $customMetricNameTemplate; + + private static $dataRetentionSettingsNameTemplate; + + private static $dataSharingSettingsNameTemplate; + + private static $dataStreamNameTemplate; + + private static $firebaseLinkNameTemplate; + + private static $googleAdsLinkNameTemplate; + + private static $measurementProtocolSecretNameTemplate; + + private static $propertyNameTemplate; + + private static $pathTemplateMap; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', + ], + ], + ]; + } + + private static function getAccountNameTemplate() + { + if (self::$accountNameTemplate == null) { + self::$accountNameTemplate = new PathTemplate('accounts/{account}'); + } + + return self::$accountNameTemplate; + } + + private static function getConversionEventNameTemplate() + { + if (self::$conversionEventNameTemplate == null) { + self::$conversionEventNameTemplate = new PathTemplate('properties/{property}/conversionEvents/{conversion_event}'); + } + + return self::$conversionEventNameTemplate; + } + + private static function getCustomDimensionNameTemplate() + { + if (self::$customDimensionNameTemplate == null) { + self::$customDimensionNameTemplate = new PathTemplate('properties/{property}/customDimensions/{custom_dimension}'); + } + + return self::$customDimensionNameTemplate; + } + + private static function getCustomMetricNameTemplate() + { + if (self::$customMetricNameTemplate == null) { + self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics/{custom_metric}'); + } + + return self::$customMetricNameTemplate; + } + + private static function getDataRetentionSettingsNameTemplate() + { + if (self::$dataRetentionSettingsNameTemplate == null) { + self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings'); + } + + return self::$dataRetentionSettingsNameTemplate; + } + + private static function getDataSharingSettingsNameTemplate() + { + if (self::$dataSharingSettingsNameTemplate == null) { + self::$dataSharingSettingsNameTemplate = new PathTemplate('accounts/{account}/dataSharingSettings'); + } + + return self::$dataSharingSettingsNameTemplate; + } + + private static function getDataStreamNameTemplate() + { + if (self::$dataStreamNameTemplate == null) { + self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}'); + } + + return self::$dataStreamNameTemplate; + } + + private static function getFirebaseLinkNameTemplate() + { + if (self::$firebaseLinkNameTemplate == null) { + self::$firebaseLinkNameTemplate = new PathTemplate('properties/{property}/firebaseLinks/{firebase_link}'); + } + + return self::$firebaseLinkNameTemplate; + } + + private static function getGoogleAdsLinkNameTemplate() + { + if (self::$googleAdsLinkNameTemplate == null) { + self::$googleAdsLinkNameTemplate = new PathTemplate('properties/{property}/googleAdsLinks/{google_ads_link}'); + } + + return self::$googleAdsLinkNameTemplate; + } + + private static function getMeasurementProtocolSecretNameTemplate() + { + if (self::$measurementProtocolSecretNameTemplate == null) { + self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}'); + } + + return self::$measurementProtocolSecretNameTemplate; + } + + private static function getPropertyNameTemplate() + { + if (self::$propertyNameTemplate == null) { + self::$propertyNameTemplate = new PathTemplate('properties/{property}'); + } + + return self::$propertyNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'account' => self::getAccountNameTemplate(), + 'conversionEvent' => self::getConversionEventNameTemplate(), + 'customDimension' => self::getCustomDimensionNameTemplate(), + 'customMetric' => self::getCustomMetricNameTemplate(), + 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), + 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), + 'dataStream' => self::getDataStreamNameTemplate(), + 'firebaseLink' => self::getFirebaseLinkNameTemplate(), + 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), + 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), + 'property' => self::getPropertyNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a account + * resource. + * + * @param string $account + * + * @return string The formatted account resource. + * + * @experimental + */ + public static function accountName($account) + { + return self::getAccountNameTemplate()->render([ + 'account' => $account, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * conversion_event resource. + * + * @param string $property + * @param string $conversionEvent + * + * @return string The formatted conversion_event resource. + * + * @experimental + */ + public static function conversionEventName($property, $conversionEvent) + { + return self::getConversionEventNameTemplate()->render([ + 'property' => $property, + 'conversion_event' => $conversionEvent, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_dimension resource. + * + * @param string $property + * @param string $customDimension + * + * @return string The formatted custom_dimension resource. + * + * @experimental + */ + public static function customDimensionName($property, $customDimension) + { + return self::getCustomDimensionNameTemplate()->render([ + 'property' => $property, + 'custom_dimension' => $customDimension, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_metric resource. + * + * @param string $property + * @param string $customMetric + * + * @return string The formatted custom_metric resource. + * + * @experimental + */ + public static function customMetricName($property, $customMetric) + { + return self::getCustomMetricNameTemplate()->render([ + 'property' => $property, + 'custom_metric' => $customMetric, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_retention_settings resource. + * + * @param string $property + * + * @return string The formatted data_retention_settings resource. + * + * @experimental + */ + public static function dataRetentionSettingsName($property) + { + return self::getDataRetentionSettingsNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_sharing_settings resource. + * + * @param string $account + * + * @return string The formatted data_sharing_settings resource. + * + * @experimental + */ + public static function dataSharingSettingsName($account) + { + return self::getDataSharingSettingsNameTemplate()->render([ + 'account' => $account, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_stream + * resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted data_stream resource. + * + * @experimental + */ + public static function dataStreamName($property, $dataStream) + { + return self::getDataStreamNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * firebase_link resource. + * + * @param string $property + * @param string $firebaseLink + * + * @return string The formatted firebase_link resource. + * + * @experimental + */ + public static function firebaseLinkName($property, $firebaseLink) + { + return self::getFirebaseLinkNameTemplate()->render([ + 'property' => $property, + 'firebase_link' => $firebaseLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * google_ads_link resource. + * + * @param string $property + * @param string $googleAdsLink + * + * @return string The formatted google_ads_link resource. + * + * @experimental + */ + public static function googleAdsLinkName($property, $googleAdsLink) + { + return self::getGoogleAdsLinkNameTemplate()->render([ + 'property' => $property, + 'google_ads_link' => $googleAdsLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * measurement_protocol_secret resource. + * + * @param string $property + * @param string $dataStream + * @param string $measurementProtocolSecret + * + * @return string The formatted measurement_protocol_secret resource. + * + * @experimental + */ + public static function measurementProtocolSecretName($property, $dataStream, $measurementProtocolSecret) + { + return self::getMeasurementProtocolSecretNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + 'measurement_protocol_secret' => $measurementProtocolSecret, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a property + * resource. + * + * @param string $property + * + * @return string The formatted property resource. + * + * @experimental + */ + public static function propertyName($property) + { + return self::getPropertyNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - account: accounts/{account} + * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} + * - customDimension: properties/{property}/customDimensions/{custom_dimension} + * - customMetric: properties/{property}/customMetrics/{custom_metric} + * - dataRetentionSettings: properties/{property}/dataRetentionSettings + * - dataSharingSettings: accounts/{account}/dataSharingSettings + * - dataStream: properties/{property}/dataStreams/{data_stream} + * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} + * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} + * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} + * - property: properties/{property} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'analyticsadmin.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or through this API) before MeasurementProtocolSecret resources may be + * created. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $acknowledgement = 'acknowledgement'; + * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $property Required. The property for which to acknowledge user data collection. + * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the + * terms of user data collection. + * + * This field must contain the exact value: + * "I acknowledge that I have the necessary privacy disclosures and rights + * from my end users for the collection and processing of their data, + * including the association of such data with the visitation information + * Google Analytics collects from my site and/or app property." + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\AcknowledgeUserDataCollectionResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = []) + { + $request = new AcknowledgeUserDataCollectionRequest(); + $requestParamHeaders = []; + $request->setProperty($property); + $request->setAcknowledgement($acknowledgement); + $requestParamHeaders['property'] = $property; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Archives a CustomDimension on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomDimension to archive. + * Example format: properties/1234/customDimensions/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function archiveCustomDimension($name, array $optionalArgs = []) + { + $request = new ArchiveCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ArchiveCustomDimension', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Archives a CustomMetric on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + * $analyticsAdminServiceClient->archiveCustomMetric($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomMetric to archive. + * Example format: properties/1234/customMetrics/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function archiveCustomMetric($name, array $optionalArgs = []) + { + $request = new ArchiveCustomMetricRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a conversion event with the specified attributes. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $conversionEvent = new ConversionEvent(); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->createConversionEvent($conversionEvent, $formattedParent); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ConversionEvent $conversionEvent Required. The conversion event to create. + * @param string $parent Required. The resource name of the parent property where this conversion + * event will be created. Format: properties/123 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\ConversionEvent + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = []) + { + $request = new CreateConversionEventRequest(); + $requestParamHeaders = []; + $request->setConversionEvent($conversionEvent); + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a CustomDimension. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $customDimension = new CustomDimension(); + * $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param CustomDimension $customDimension Required. The CustomDimension to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\CustomDimension + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createCustomDimension($parent, $customDimension, array $optionalArgs = []) + { + $request = new CreateCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setCustomDimension($customDimension); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a CustomMetric. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $customMetric = new CustomMetric(); + * $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param CustomMetric $customMetric Required. The CustomMetric to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\CustomMetric + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createCustomMetric($parent, $customMetric, array $optionalArgs = []) + { + $request = new CreateCustomMetricRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setCustomMetric($customMetric); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a DataStream. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $dataStream = new DataStream(); + * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param DataStream $dataStream Required. The DataStream to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\DataStream + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createDataStream($parent, $dataStream, array $optionalArgs = []) + { + $request = new CreateDataStreamRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setDataStream($dataStream); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a FirebaseLink. + * + * Properties can have at most one FirebaseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $firebaseLink = new FirebaseLink(); + * $response = $analyticsAdminServiceClient->createFirebaseLink($formattedParent, $firebaseLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param FirebaseLink $firebaseLink Required. The Firebase link to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\FirebaseLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createFirebaseLink($parent, $firebaseLink, array $optionalArgs = []) + { + $request = new CreateFirebaseLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setFirebaseLink($firebaseLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a GoogleAdsLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $googleAdsLink = new GoogleAdsLink(); + * $response = $analyticsAdminServiceClient->createGoogleAdsLink($formattedParent, $googleAdsLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs = []) + { + $request = new CreateGoogleAdsLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setGoogleAdsLink($googleAdsLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a measurement protocol secret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $measurementProtocolSecret = new MeasurementProtocolSecret(); + * $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The parent resource where this secret will be created. + * Format: properties/{property}/dataStreams/{dataStream} + * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createMeasurementProtocolSecret($parent, $measurementProtocolSecret, array $optionalArgs = []) + { + $request = new CreateMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setMeasurementProtocolSecret($measurementProtocolSecret); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates an "GA4" property with the specified location and attributes. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $property = new Property(); + * $response = $analyticsAdminServiceClient->createProperty($property); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $property Required. The property to create. + * Note: the supplied property must specify its parent. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createProperty($property, array $optionalArgs = []) + { + $request = new CreatePropertyRequest(); + $request->setProperty($property); + return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Marks target Account as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted accounts. + * However, they can be restored using the Trash Can UI. + * + * If the accounts are not restored before the expiration time, the account + * and all child resources (eg: Properties, GoogleAdsLinks, Streams, + * UserLinks) will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $analyticsAdminServiceClient->deleteAccount($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the Account to soft-delete. + * Format: accounts/{account} + * Example: "accounts/100" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteAccount($name, array $optionalArgs = []) + { + $request = new DeleteAccountRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteAccount', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a conversion event in a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + * $analyticsAdminServiceClient->deleteConversionEvent($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name of the conversion event to delete. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteConversionEvent($name, array $optionalArgs = []) + { + $request = new DeleteConversionEventRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a DataStream on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $analyticsAdminServiceClient->deleteDataStream($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DataStream to delete. + * Example format: properties/1234/dataStreams/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteDataStream($name, array $optionalArgs = []) + { + $request = new DeleteDataStreamRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a FirebaseLink on a property + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteFirebaseLink($name, array $optionalArgs = []) + { + $request = new DeleteFirebaseLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteFirebaseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a GoogleAdsLink on a property + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + * $analyticsAdminServiceClient->deleteGoogleAdsLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteGoogleAdsLink($name, array $optionalArgs = []) + { + $request = new DeleteGoogleAdsLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes target MeasurementProtocolSecret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + * $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the MeasurementProtocolSecret to delete. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) + { + $request = new DeleteMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteMeasurementProtocolSecret', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Marks target Property as soft-deleted (ie: "trashed") and returns it. + * + * This API does not have a method to restore soft-deleted properties. + * However, they can be restored using the Trash Can UI. + * + * If the properties are not restored before the expiration time, the Property + * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * will be permanently purged. + * https://support.google.com/analytics/answer/6154772 + * + * Returns an error if the target is not found, or is not a GA4 Property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->deleteProperty($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the Property to soft-delete. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteProperty($name, array $optionalArgs = []) + { + $request = new DeletePropertyRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single Account. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $response = $analyticsAdminServiceClient->getAccount($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the account to lookup. + * Format: accounts/{account} + * Example: "accounts/100" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\Account + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getAccount($name, array $optionalArgs = []) + { + $request = new GetAccountRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetAccount', Account::class, $optionalArgs, $request)->wait(); + } + + /** + * Retrieve a single conversion event. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + * $response = $analyticsAdminServiceClient->getConversionEvent($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name of the conversion event to retrieve. + * Format: properties/{property}/conversionEvents/{conversion_event} + * Example: "properties/123/conversionEvents/456" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\ConversionEvent + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getConversionEvent($name, array $optionalArgs = []) + { + $request = new GetConversionEventRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single CustomDimension. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + * $response = $analyticsAdminServiceClient->getCustomDimension($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomDimension to get. + * Example format: properties/1234/customDimensions/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\CustomDimension + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getCustomDimension($name, array $optionalArgs = []) + { + $request = new GetCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single CustomMetric. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + * $response = $analyticsAdminServiceClient->getCustomMetric($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the CustomMetric to get. + * Example format: properties/1234/customMetrics/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\CustomMetric + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getCustomMetric($name, array $optionalArgs = []) + { + $request = new GetCustomMetricRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns the singleton data retention settings for this property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataRetentionSettings + * Example: "properties/1000/dataRetentionSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataRetentionSettings($name, array $optionalArgs = []) + { + $request = new GetDataRetentionSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Get data sharing settings on an account. + * Data sharing settings are singletons. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataSharingSettingsName('[ACCOUNT]'); + * $response = $analyticsAdminServiceClient->getDataSharingSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: accounts/{account}/dataSharingSettings + * Example: "accounts/1000/dataSharingSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\DataSharingSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataSharingSettings($name, array $optionalArgs = []) + { + $request = new GetDataSharingSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single DataStream. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getDataStream($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the DataStream to get. + * Example format: properties/1234/dataStreams/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\DataStream + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataStream($name, array $optionalArgs = []) + { + $request = new GetDataStreamRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + * $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the measurement protocol secret to lookup. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getMeasurementProtocolSecret($name, array $optionalArgs = []) + { + $request = new GetMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); + } + + /** + * Lookup for a single "GA4" Property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $response = $analyticsAdminServiceClient->getProperty($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the property to lookup. + * Format: properties/{property_id} + * Example: "properties/1000" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getProperty($name, array $optionalArgs = []) + { + $request = new GetPropertyRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetProperty', Property::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns summaries of all accounts accessible by the caller. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAccountSummaries(array $optionalArgs = []) + { + $request = new ListAccountSummariesRequest(); + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + return $this->getPagedListResponse('ListAccountSummaries', $optionalArgs, ListAccountSummariesResponse::class, $request); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type bool $showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listAccounts(array $optionalArgs = []) + { + $request = new ListAccountsRequest(); + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + if (isset($optionalArgs['showDeleted'])) { + $request->setShowDeleted($optionalArgs['showDeleted']); + } + + return $this->getPagedListResponse('ListAccounts', $optionalArgs, ListAccountsResponse::class, $request); + } + + /** + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The resource name of the parent property. + * Example: 'properties/123' + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listConversionEvents($parent, array $optionalArgs = []) + { + $request = new ListConversionEventsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListConversionEvents', $optionalArgs, ListConversionEventsResponse::class, $request); + } + + /** + * Lists CustomDimensions on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listCustomDimensions($parent, array $optionalArgs = []) + { + $request = new ListCustomDimensionsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListCustomDimensions', $optionalArgs, ListCustomDimensionsResponse::class, $request); + } + + /** + * Lists CustomMetrics on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listCustomMetrics($parent, array $optionalArgs = []) + { + $request = new ListCustomMetricsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request); + } + + /** + * Lists DataStreams on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listDataStreams($parent, array $optionalArgs = []) + { + $request = new ListDataStreamsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request); + } + + /** + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listFirebaseLinks($parent, array $optionalArgs = []) + { + $request = new ListFirebaseLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListFirebaseLinks', $optionalArgs, ListFirebaseLinksResponse::class, $request); + } + + /** + * Lists GoogleAdsLinks on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Example format: properties/1234 + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listGoogleAdsLinks($parent, array $optionalArgs = []) + { + $request = new ListGoogleAdsLinksRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request); + } + + /** + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listMeasurementProtocolSecrets($parent, array $optionalArgs = []) + { + $request = new ListMeasurementProtocolSecretsRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $requestParamHeaders['parent'] = $parent; + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListMeasurementProtocolSecrets', $optionalArgs, ListMeasurementProtocolSecretsResponse::class, $request); + } + + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $filter = 'filter'; + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $filter Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param array $optionalArgs { + * Optional. + * + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type bool $showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function listProperties($filter, array $optionalArgs = []) + { + $request = new ListPropertiesRequest(); + $request->setFilter($filter); + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + if (isset($optionalArgs['showDeleted'])) { + $request->setShowDeleted($optionalArgs['showDeleted']); + } + + return $this->getPagedListResponse('ListProperties', $optionalArgs, ListPropertiesResponse::class, $request); + } + + /** + * Requests a ticket for creating an account. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $response = $analyticsAdminServiceClient->provisionAccountTicket(); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type Account $account + * The account to create. + * @type string $redirectUri + * Redirect URI where the user will be sent after accepting Terms of Service. + * Must be configured in Cloud Console as a Redirect URI. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\ProvisionAccountTicketResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function provisionAccountTicket(array $optionalArgs = []) + { + $request = new ProvisionAccountTicketRequest(); + if (isset($optionalArgs['account'])) { + $request->setAccount($optionalArgs['account']); + } + + if (isset($optionalArgs['redirectUri'])) { + $request->setRedirectUri($optionalArgs['redirectUri']); + } + + return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns a customized report of data access records. The report provides + * records of each time a user reads Google Analytics reporting data. Access + * records are retained for up to 2 years. + * + * Data Access Reports can be requested for a property. The property must be + * in Google Analytics 360. This method is only available to Administrators. + * + * These data access records include GA4 UI Reporting, GA4 UI Explorations, + * GA4 Data API, and other products like Firebase & Admob that can retrieve + * data from Google Analytics through a linkage. These records don't include + * property configuration changes like adding a stream or changing a + * property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $response = $analyticsAdminServiceClient->runAccessReport(); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $entity + * The Data Access Report supports requesting at the property level or account + * level. If requested at the account level, Data Access Reports include all + * access for all properties under that account. + * + * To request at the property level, entity should be for example + * 'properties/123' if "123" is your GA4 property ID. To request at the + * account level, entity should be for example 'accounts/1234' if "1234" is + * your GA4 Account ID. + * @type AccessDimension[] $dimensions + * The dimensions requested and displayed in the response. Requests are + * allowed up to 9 dimensions. + * @type AccessMetric[] $metrics + * The metrics requested and displayed in the response. Requests are allowed + * up to 10 metrics. + * @type AccessDateRange[] $dateRanges + * Date ranges of access records to read. If multiple date ranges are + * requested, each response row will contain a zero based date range index. If + * two date ranges overlap, the access records for the overlapping days is + * included in the response rows for both date ranges. Requests are allowed up + * to 2 date ranges. + * @type AccessFilterExpression $dimensionFilter + * Dimension filters let you restrict report response to specific + * dimension values which match the filter. For example, filtering on access + * records of a single user. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @type AccessFilterExpression $metricFilter + * Metric filters allow you to restrict report response to specific metric + * values which match the filter. Metric filters are applied after aggregating + * the report's rows, similar to SQL having-clause. Dimensions cannot be used + * in this filter. + * @type int $offset + * The row count of the start row. The first row is counted as row 0. If + * offset is unspecified, it is treated as 0. If offset is zero, then this + * method will return the first page of results with `limit` entries. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 100,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * + * The API may return fewer rows than the requested `limit`, if there aren't + * as many remaining rows as the `limit`. For instance, there are fewer than + * 300 possible values for the dimension `country`, so when reporting on only + * `country`, you can't get more than 300 rows, even if you set `limit` to a + * higher value. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type string $timeZone + * This request's time zone if specified. If unspecified, the property's time + * zone is used. The request's time zone is used to interpret the start & end + * dates of the report. + * + * Formatted as strings from the IANA Time Zone database + * (https://www.iana.org/time-zones); for example "America/New_York" or + * "Asia/Tokyo". + * @type AccessOrderBy[] $orderBys + * Specifies how rows are ordered in the response. + * @type bool $returnEntityQuota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + * requests, this field must be false. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\RunAccessReportResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function runAccessReport(array $optionalArgs = []) + { + $request = new RunAccessReportRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['entity'])) { + $request->setEntity($optionalArgs['entity']); + $requestParamHeaders['entity'] = $optionalArgs['entity']; + } + + if (isset($optionalArgs['dimensions'])) { + $request->setDimensions($optionalArgs['dimensions']); + } + + if (isset($optionalArgs['metrics'])) { + $request->setMetrics($optionalArgs['metrics']); + } + + if (isset($optionalArgs['dateRanges'])) { + $request->setDateRanges($optionalArgs['dateRanges']); + } + + if (isset($optionalArgs['dimensionFilter'])) { + $request->setDimensionFilter($optionalArgs['dimensionFilter']); + } + + if (isset($optionalArgs['metricFilter'])) { + $request->setMetricFilter($optionalArgs['metricFilter']); + } + + if (isset($optionalArgs['offset'])) { + $request->setOffset($optionalArgs['offset']); + } + + if (isset($optionalArgs['limit'])) { + $request->setLimit($optionalArgs['limit']); + } + + if (isset($optionalArgs['timeZone'])) { + $request->setTimeZone($optionalArgs['timeZone']); + } + + if (isset($optionalArgs['orderBys'])) { + $request->setOrderBys($optionalArgs['orderBys']); + } + + if (isset($optionalArgs['returnEntityQuota'])) { + $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Searches through all changes to an account or its children given the + * specified set of filters. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedAccount = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * // Iterate over pages of elements + * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $account Required. The account resource for which to return change history + * resources. + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @type int[] $resourceType + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1beta\ChangeHistoryResourceType} + * @type int[] $action + * Optional. If set, only return changes that match one or more of these types + * of actions. + * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1beta\ActionType} + * @type string[] $actorEmail + * Optional. If set, only return changes if they are made by a user in this + * list. + * @type Timestamp $earliestChangeTime + * Optional. If set, only return changes made after this time (inclusive). + * @type Timestamp $latestChangeTime + * Optional. If set, only return changes made before this time (inclusive). + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function searchChangeHistoryEvents($account, array $optionalArgs = []) + { + $request = new SearchChangeHistoryEventsRequest(); + $requestParamHeaders = []; + $request->setAccount($account); + $requestParamHeaders['account'] = $account; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + } + + if (isset($optionalArgs['resourceType'])) { + $request->setResourceType($optionalArgs['resourceType']); + } + + if (isset($optionalArgs['action'])) { + $request->setAction($optionalArgs['action']); + } + + if (isset($optionalArgs['actorEmail'])) { + $request->setActorEmail($optionalArgs['actorEmail']); + } + + if (isset($optionalArgs['earliestChangeTime'])) { + $request->setEarliestChangeTime($optionalArgs['earliestChangeTime']); + } + + if (isset($optionalArgs['latestChangeTime'])) { + $request->setLatestChangeTime($optionalArgs['latestChangeTime']); + } + + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('SearchChangeHistoryEvents', $optionalArgs, SearchChangeHistoryEventsResponse::class, $request); + } + + /** + * Updates an account. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $account = new Account(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Account $account Required. The account to update. + * The account's `name` field is used to identify the account. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (for example, "field_to_update"). Omitted fields will not be updated. + * To replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\Account + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateAccount($account, $updateMask, array $optionalArgs = []) + { + $request = new UpdateAccountRequest(); + $requestParamHeaders = []; + $request->setAccount($account); + $request->setUpdateMask($updateMask); + $requestParamHeaders['account.name'] = $account->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateAccount', Account::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a conversion event with the specified attributes. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $conversionEvent = new ConversionEvent(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateConversionEvent($conversionEvent, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param ConversionEvent $conversionEvent Required. The conversion event to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\ConversionEvent + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = []) + { + $request = new UpdateConversionEventRequest(); + $requestParamHeaders = []; + $request->setConversionEvent($conversionEvent); + $request->setUpdateMask($updateMask); + $requestParamHeaders['conversion_event.name'] = $conversionEvent->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a CustomDimension on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateCustomDimension($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type CustomDimension $customDimension + * The CustomDimension to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\CustomDimension + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateCustomDimension($updateMask, array $optionalArgs = []) + { + $request = new UpdateCustomDimensionRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['customDimension'])) { + $request->setCustomDimension($optionalArgs['customDimension']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a CustomMetric on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateCustomMetric($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type CustomMetric $customMetric + * The CustomMetric to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\CustomMetric + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateCustomMetric($updateMask, array $optionalArgs = []) + { + $request = new UpdateCustomMetricRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['customMetric'])) { + $request->setCustomMetric($optionalArgs['customMetric']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the singleton data retention settings for this property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $dataRetentionSettings = new DataRetentionSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateDataRetentionSettingsRequest(); + $requestParamHeaders = []; + $request->setDataRetentionSettings($dataRetentionSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a DataStream on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to + * match all fields. + * @param array $optionalArgs { + * Optional. + * + * @type DataStream $dataStream + * The DataStream to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\DataStream + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataStream($updateMask, array $optionalArgs = []) + { + $request = new UpdateDataStreamRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['dataStream'])) { + $request->setDataStream($optionalArgs['dataStream']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a GoogleAdsLink on a property + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateGoogleAdsLink($updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type GoogleAdsLink $googleAdsLink + * The GoogleAdsLink to update + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateGoogleAdsLink($updateMask, array $optionalArgs = []) + { + $request = new UpdateGoogleAdsLinkRequest(); + $requestParamHeaders = []; + $request->setUpdateMask($updateMask); + if (isset($optionalArgs['googleAdsLink'])) { + $request->setGoogleAdsLink($optionalArgs['googleAdsLink']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a measurement protocol secret. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $measurementProtocolSecret = new MeasurementProtocolSecret(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. + * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask, array $optionalArgs = []) + { + $request = new UpdateMeasurementProtocolSecretRequest(); + $requestParamHeaders = []; + $request->setMeasurementProtocolSecret($measurementProtocolSecret); + $request->setUpdateMask($updateMask); + $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $property = new Property(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $property Required. The property to update. + * The property's `name` field is used to identify the property to be + * updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1beta\Property + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateProperty($property, $updateMask, array $optionalArgs = []) + { + $request = new UpdatePropertyRequest(); + $requestParamHeaders = []; + $request->setProperty($property); + $request->setUpdateMask($updateMask); + $requestParamHeaders['property.name'] = $property->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateProperty', Property::class, $optionalArgs, $request)->wait(); + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json new file mode 100644 index 000000000000..3f81008d639d --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json @@ -0,0 +1,263 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.analytics.admin.v1beta", + "libraryPackage": "Google\\Analytics\\Admin\\V1beta", + "services": { + "AnalyticsAdminService": { + "clients": { + "grpc": { + "libraryClient": "AnalyticsAdminServiceGapicClient", + "rpcs": { + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archiveCustomDimension" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archiveCustomMetric" + ] + }, + "CreateConversionEvent": { + "methods": [ + "createConversionEvent" + ] + }, + "CreateCustomDimension": { + "methods": [ + "createCustomDimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "createCustomMetric" + ] + }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "createFirebaseLink" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "createGoogleAdsLink" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "createMeasurementProtocolSecret" + ] + }, + "CreateProperty": { + "methods": [ + "createProperty" + ] + }, + "DeleteAccount": { + "methods": [ + "deleteAccount" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "deleteConversionEvent" + ] + }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "deleteFirebaseLink" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "deleteGoogleAdsLink" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "deleteMeasurementProtocolSecret" + ] + }, + "DeleteProperty": { + "methods": [ + "deleteProperty" + ] + }, + "GetAccount": { + "methods": [ + "getAccount" + ] + }, + "GetConversionEvent": { + "methods": [ + "getConversionEvent" + ] + }, + "GetCustomDimension": { + "methods": [ + "getCustomDimension" + ] + }, + "GetCustomMetric": { + "methods": [ + "getCustomMetric" + ] + }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "getDataSharingSettings" + ] + }, + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, + "GetMeasurementProtocolSecret": { + "methods": [ + "getMeasurementProtocolSecret" + ] + }, + "GetProperty": { + "methods": [ + "getProperty" + ] + }, + "ListAccountSummaries": { + "methods": [ + "listAccountSummaries" + ] + }, + "ListAccounts": { + "methods": [ + "listAccounts" + ] + }, + "ListConversionEvents": { + "methods": [ + "listConversionEvents" + ] + }, + "ListCustomDimensions": { + "methods": [ + "listCustomDimensions" + ] + }, + "ListCustomMetrics": { + "methods": [ + "listCustomMetrics" + ] + }, + "ListDataStreams": { + "methods": [ + "listDataStreams" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "listFirebaseLinks" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "listGoogleAdsLinks" + ] + }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "listMeasurementProtocolSecrets" + ] + }, + "ListProperties": { + "methods": [ + "listProperties" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provisionAccountTicket" + ] + }, + "RunAccessReport": { + "methods": [ + "runAccessReport" + ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "searchChangeHistoryEvents" + ] + }, + "UpdateAccount": { + "methods": [ + "updateAccount" + ] + }, + "UpdateConversionEvent": { + "methods": [ + "updateConversionEvent" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "updateCustomDimension" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "updateCustomMetric" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, + "UpdateDataStream": { + "methods": [ + "updateDataStream" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "updateGoogleAdsLink" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "updateMeasurementProtocolSecret" + ] + }, + "UpdateProperty": { + "methods": [ + "updateProperty" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json new file mode 100644 index 000000000000..0ddd065aba14 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json @@ -0,0 +1,280 @@ +{ + "interfaces": { + "google.analytics.admin.v1beta.AnalyticsAdminService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE", + "UNKNOWN" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "AcknowledgeUserDataCollection": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ArchiveCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ArchiveCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteAccount": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteFirebaseLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAccount": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataSharingSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccountSummaries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAccounts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConversionEvents": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomDimensions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomMetrics": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDataStreams": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFirebaseLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListGoogleAdsLinks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMeasurementProtocolSecrets": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListProperties": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ProvisionAccountTicket": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RunAccessReport": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SearchChangeHistoryEvents": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateAccount": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateConversionEvent": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCustomDimension": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateCustomMetric": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataRetentionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateDataStream": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateGoogleAdsLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateMeasurementProtocolSecret": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php new file mode 100644 index 000000000000..da5caf42f1e7 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php @@ -0,0 +1,666 @@ + [ + 'google.analytics.admin.v1beta.AnalyticsAdminService' => [ + 'AcknowledgeUserDataCollection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\AcknowledgeUserDataCollectionResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'ArchiveCustomDimension' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ArchiveCustomMetric' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateConversionEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomDimension' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomMetric' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataStream' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFirebaseLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\FirebaseLink', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateGoogleAdsLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\GoogleAdsLink', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMeasurementProtocolSecret' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateProperty' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\Property', + ], + 'DeleteAccount' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteConversionEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataStream' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFirebaseLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteGoogleAdsLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMeasurementProtocolSecret' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteProperty' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\Property', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAccount' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\Account', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConversionEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomDimension' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomMetric' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataRetentionSettings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\DataRetentionSettings', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataSharingSettings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\DataSharingSettings', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataStream' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMeasurementProtocolSecret' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetProperty' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\Property', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAccountSummaries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccountSummaries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListAccountSummariesResponse', + ], + 'ListAccounts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAccounts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListAccountsResponse', + ], + 'ListConversionEvents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConversionEvents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListConversionEventsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomDimensions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomDimensions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListCustomDimensionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomMetrics' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomMetrics', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListCustomMetricsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataStreams' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataStreams', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListDataStreamsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListFirebaseLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFirebaseLinks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListFirebaseLinksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListGoogleAdsLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getGoogleAdsLinks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListGoogleAdsLinksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMeasurementProtocolSecrets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMeasurementProtocolSecrets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListMeasurementProtocolSecretsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListProperties' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProperties', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ListPropertiesResponse', + ], + 'ProvisionAccountTicket' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ProvisionAccountTicketResponse', + ], + 'RunAccessReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\RunAccessReportResponse', + 'headerParams' => [ + [ + 'keyName' => 'entity', + 'fieldAccessors' => [ + 'getEntity', + ], + ], + ], + ], + 'SearchChangeHistoryEvents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getChangeHistoryEvents', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\SearchChangeHistoryEventsResponse', + 'headerParams' => [ + [ + 'keyName' => 'account', + 'fieldAccessors' => [ + 'getAccount', + ], + ], + ], + ], + 'UpdateAccount' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\Account', + 'headerParams' => [ + [ + 'keyName' => 'account.name', + 'fieldAccessors' => [ + 'getAccount', + 'getName', + ], + ], + ], + ], + 'UpdateConversionEvent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', + 'headerParams' => [ + [ + 'keyName' => 'conversion_event.name', + 'fieldAccessors' => [ + 'getConversionEvent', + 'getName', + ], + ], + ], + ], + 'UpdateCustomDimension' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', + 'headerParams' => [ + [ + 'keyName' => 'custom_dimension.name', + 'fieldAccessors' => [ + 'getCustomDimension', + 'getName', + ], + ], + ], + ], + 'UpdateCustomMetric' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', + 'headerParams' => [ + [ + 'keyName' => 'custom_metric.name', + 'fieldAccessors' => [ + 'getCustomMetric', + 'getName', + ], + ], + ], + ], + 'UpdateDataRetentionSettings' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\DataRetentionSettings', + 'headerParams' => [ + [ + 'keyName' => 'data_retention_settings.name', + 'fieldAccessors' => [ + 'getDataRetentionSettings', + 'getName', + ], + ], + ], + ], + 'UpdateDataStream' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', + 'headerParams' => [ + [ + 'keyName' => 'data_stream.name', + 'fieldAccessors' => [ + 'getDataStream', + 'getName', + ], + ], + ], + ], + 'UpdateGoogleAdsLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\GoogleAdsLink', + 'headerParams' => [ + [ + 'keyName' => 'google_ads_link.name', + 'fieldAccessors' => [ + 'getGoogleAdsLink', + 'getName', + ], + ], + ], + ], + 'UpdateMeasurementProtocolSecret' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', + 'headerParams' => [ + [ + 'keyName' => 'measurement_protocol_secret.name', + 'fieldAccessors' => [ + 'getMeasurementProtocolSecret', + 'getName', + ], + ], + ], + ], + 'UpdateProperty' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Admin\V1beta\Property', + 'headerParams' => [ + [ + 'keyName' => 'property.name', + 'fieldAccessors' => [ + 'getProperty', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'account' => 'accounts/{account}', + 'conversionEvent' => 'properties/{property}/conversionEvents/{conversion_event}', + 'customDimension' => 'properties/{property}/customDimensions/{custom_dimension}', + 'customMetric' => 'properties/{property}/customMetrics/{custom_metric}', + 'dataRetentionSettings' => 'properties/{property}/dataRetentionSettings', + 'dataSharingSettings' => 'accounts/{account}/dataSharingSettings', + 'dataStream' => 'properties/{property}/dataStreams/{data_stream}', + 'firebaseLink' => 'properties/{property}/firebaseLinks/{firebase_link}', + 'googleAdsLink' => 'properties/{property}/googleAdsLinks/{google_ads_link}', + 'measurementProtocolSecret' => 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}', + 'property' => 'properties/{property}', + ], + ], + ], +]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php new file mode 100644 index 000000000000..096d5c5eea1b --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php @@ -0,0 +1,582 @@ + [ + 'google.analytics.admin.v1beta.AnalyticsAdminService' => [ + 'AcknowledgeUserDataCollection' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:acknowledgeUserDataCollection', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'ArchiveCustomDimension' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{name=properties/*/customDimensions/*}:archive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ArchiveCustomMetric' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{name=properties/*/customMetrics/*}:archive', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateConversionEvent' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*}/conversionEvents', + 'body' => 'conversion_event', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomDimension' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*}/customDimensions', + 'body' => 'custom_dimension', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomMetric' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*}/customMetrics', + 'body' => 'custom_metric', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataStream' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*}/dataStreams', + 'body' => 'data_stream', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFirebaseLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*}/firebaseLinks', + 'body' => 'firebase_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateGoogleAdsLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*}/googleAdsLinks', + 'body' => 'google_ads_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMeasurementProtocolSecret' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', + 'body' => 'measurement_protocol_secret', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateProperty' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/properties', + 'body' => 'property', + ], + 'DeleteAccount' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=accounts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteConversionEvent' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=properties/*/conversionEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataStream' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFirebaseLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=properties/*/firebaseLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteGoogleAdsLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=properties/*/googleAdsLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMeasurementProtocolSecret' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteProperty' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta/{name=properties/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAccount' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=accounts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConversionEvent' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/conversionEvents/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomDimension' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/customDimensions/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomMetric' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/customMetrics/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataRetentionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/dataRetentionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataSharingSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=accounts/*/dataSharingSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataStream' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMeasurementProtocolSecret' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetProperty' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAccountSummaries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/accountSummaries', + ], + 'ListAccounts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/accounts', + ], + 'ListConversionEvents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*}/conversionEvents', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomDimensions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*}/customDimensions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomMetrics' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*}/customMetrics', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataStreams' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*}/dataStreams', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFirebaseLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*}/firebaseLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListGoogleAdsLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*}/googleAdsLinks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMeasurementProtocolSecrets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListProperties' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/properties', + 'queryParams' => [ + 'filter', + ], + ], + 'ProvisionAccountTicket' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/accounts:provisionAccountTicket', + 'body' => '*', + ], + 'RunAccessReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{entity=properties/*}:runAccessReport', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{entity=accounts/*}:runAccessReport', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'entity' => [ + 'getters' => [ + 'getEntity', + ], + ], + ], + ], + 'SearchChangeHistoryEvents' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{account=accounts/*}:searchChangeHistoryEvents', + 'body' => '*', + 'placeholders' => [ + 'account' => [ + 'getters' => [ + 'getAccount', + ], + ], + ], + ], + 'UpdateAccount' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{account.name=accounts/*}', + 'body' => 'account', + 'placeholders' => [ + 'account.name' => [ + 'getters' => [ + 'getAccount', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateConversionEvent' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{conversion_event.name=properties/*/conversionEvents/*}', + 'body' => 'conversion_event', + 'placeholders' => [ + 'conversion_event.name' => [ + 'getters' => [ + 'getConversionEvent', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateCustomDimension' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{custom_dimension.name=properties/*/customDimensions/*}', + 'body' => 'custom_dimension', + 'placeholders' => [ + 'custom_dimension.name' => [ + 'getters' => [ + 'getCustomDimension', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateCustomMetric' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{custom_metric.name=properties/*/customMetrics/*}', + 'body' => 'custom_metric', + 'placeholders' => [ + 'custom_metric.name' => [ + 'getters' => [ + 'getCustomMetric', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataRetentionSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}', + 'body' => 'data_retention_settings', + 'placeholders' => [ + 'data_retention_settings.name' => [ + 'getters' => [ + 'getDataRetentionSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataStream' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{data_stream.name=properties/*/dataStreams/*}', + 'body' => 'data_stream', + 'placeholders' => [ + 'data_stream.name' => [ + 'getters' => [ + 'getDataStream', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateGoogleAdsLink' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}', + 'body' => 'google_ads_link', + 'placeholders' => [ + 'google_ads_link.name' => [ + 'getters' => [ + 'getGoogleAdsLink', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateMeasurementProtocolSecret' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', + 'body' => 'measurement_protocol_secret', + 'placeholders' => [ + 'measurement_protocol_secret.name' => [ + 'getters' => [ + 'getMeasurementProtocolSecret', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateProperty' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta/{property.name=properties/*}', + 'body' => 'property', + 'placeholders' => [ + 'property.name' => [ + 'getters' => [ + 'getProperty', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php new file mode 100644 index 000000000000..8e99d4b18a02 --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php @@ -0,0 +1,3341 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AnalyticsAdminServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AnalyticsAdminServiceClient($options); + } + + /** @test */ + public function acknowledgeUserDataCollectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AcknowledgeUserDataCollectionResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + $response = $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($formattedProperty, $actualValue); + $actualValue = $actualRequestObject->getAcknowledgement(); + $this->assertProtobufEquals($acknowledgement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function acknowledgeUserDataCollectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + try { + $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $gapicClient->archiveCustomDimension($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + try { + $gapicClient->archiveCustomDimension($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $gapicClient->archiveCustomMetric($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + try { + $gapicClient->archiveCustomMetric($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $conversionEvent = new ConversionEvent(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->createConversionEvent($conversionEvent, $formattedParent); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getConversionEvent(); + $this->assertProtobufEquals($conversionEvent, $actualValue); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversionEvent = new ConversionEvent(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->createConversionEvent($conversionEvent, $formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customDimension = new CustomDimension(); + $customDimensionParameterName = 'customDimensionParameterName-405505313'; + $customDimension->setParameterName($customDimensionParameterName); + $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; + $customDimension->setDisplayName($customDimensionDisplayName); + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + $customDimension->setScope($customDimensionScope); + $response = $gapicClient->createCustomDimension($formattedParent, $customDimension); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomDimension(); + $this->assertProtobufEquals($customDimension, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customDimension = new CustomDimension(); + $customDimensionParameterName = 'customDimensionParameterName-405505313'; + $customDimension->setParameterName($customDimensionParameterName); + $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; + $customDimension->setDisplayName($customDimensionDisplayName); + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + $customDimension->setScope($customDimensionScope); + try { + $gapicClient->createCustomDimension($formattedParent, $customDimension); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customMetric = new CustomMetric(); + $customMetricParameterName = 'customMetricParameterName1627167443'; + $customMetric->setParameterName($customMetricParameterName); + $customMetricDisplayName = 'customMetricDisplayName-835715284'; + $customMetric->setDisplayName($customMetricDisplayName); + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetric->setMeasurementUnit($customMetricMeasurementUnit); + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + $customMetric->setScope($customMetricScope); + $response = $gapicClient->createCustomMetric($formattedParent, $customMetric); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomMetric(); + $this->assertProtobufEquals($customMetric, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customMetric = new CustomMetric(); + $customMetricParameterName = 'customMetricParameterName1627167443'; + $customMetric->setParameterName($customMetricParameterName); + $customMetricDisplayName = 'customMetricDisplayName-835715284'; + $customMetric->setDisplayName($customMetricDisplayName); + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetric->setMeasurementUnit($customMetricMeasurementUnit); + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + $customMetric->setScope($customMetricScope); + try { + $gapicClient->createCustomMetric($formattedParent, $customMetric); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + $response = $gapicClient->createDataStream($formattedParent, $dataStream); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataStream(); + $this->assertProtobufEquals($dataStream, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + try { + $gapicClient->createDataStream($formattedParent, $dataStream); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFirebaseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $project = 'project-309310695'; + $expectedResponse = new FirebaseLink(); + $expectedResponse->setName($name); + $expectedResponse->setProject($project); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + $response = $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFirebaseLink(); + $this->assertProtobufEquals($firebaseLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFirebaseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + try { + $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customerId = 'customerId-1772061412'; + $canManageClients = false; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; + $expectedResponse = new GoogleAdsLink(); + $expectedResponse->setName($name); + $expectedResponse->setCustomerId($customerId); + $expectedResponse->setCanManageClients($canManageClients); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + $response = $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getGoogleAdsLink(); + $this->assertProtobufEquals($googleAdsLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + try { + $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $response = $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); + $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + try { + $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $response = $gapicClient->createProperty($property); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + try { + $gapicClient->createProperty($property); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $gapicClient->deleteAccount($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->deleteAccount($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $gapicClient->deleteConversionEvent($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + try { + $gapicClient->deleteConversionEvent($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $gapicClient->deleteDataStream($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->deleteDataStream($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFirebaseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + $gapicClient->deleteFirebaseLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFirebaseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + try { + $gapicClient->deleteFirebaseLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + $gapicClient->deleteGoogleAdsLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + try { + $gapicClient->deleteGoogleAdsLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $gapicClient->deleteMeasurementProtocolSecret($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + try { + $gapicClient->deleteMeasurementProtocolSecret($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name2); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->deleteProperty($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->deleteProperty($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $deleted = false; + $expectedResponse = new Account(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setDeleted($deleted); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $response = $gapicClient->getAccount($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->getAccount($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name2); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $response = $gapicClient->getConversionEvent($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + try { + $gapicClient->getConversionEvent($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name2); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $response = $gapicClient->getCustomDimension($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + try { + $gapicClient->getCustomDimension($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name2); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $response = $gapicClient->getCustomMetric($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + try { + $gapicClient->getCustomMetric($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); + $response = $gapicClient->getDataRetentionSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRetentionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); + try { + $gapicClient->getDataRetentionSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataSharingSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $sharingWithGoogleSupportEnabled = false; + $sharingWithGoogleAssignedSalesEnabled = false; + $sharingWithGoogleAnySalesEnabled = false; + $sharingWithGoogleProductsEnabled = true; + $sharingWithOthersEnabled = false; + $expectedResponse = new DataSharingSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); + $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); + $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); + $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); + $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); + $response = $gapicClient->getDataSharingSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataSharingSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); + try { + $gapicClient->getDataSharingSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getDataStream($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getDataStream($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $response = $gapicClient->getMeasurementProtocolSecret($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + try { + $gapicClient->getMeasurementProtocolSecret($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name2); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->getProperty($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->getProperty($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountSummariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accountSummariesElement = new AccountSummary(); + $accountSummaries = [ + $accountSummariesElement, + ]; + $expectedResponse = new ListAccountSummariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccountSummaries($accountSummaries); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listAccountSummaries(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountSummariesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listAccountSummaries(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accountsElement = new Account(); + $accounts = [ + $accountsElement, + ]; + $expectedResponse = new ListAccountsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccounts($accounts); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listAccounts(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listAccounts(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversionEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $conversionEventsElement = new ConversionEvent(); + $conversionEvents = [ + $conversionEventsElement, + ]; + $expectedResponse = new ListConversionEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConversionEvents($conversionEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listConversionEvents($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversionEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listConversionEvents($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomDimensionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customDimensionsElement = new CustomDimension(); + $customDimensions = [ + $customDimensionsElement, + ]; + $expectedResponse = new ListCustomDimensionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomDimensions($customDimensions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listCustomDimensions($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomDimensionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listCustomDimensions($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomMetricsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customMetricsElement = new CustomMetric(); + $customMetrics = [ + $customMetricsElement, + ]; + $expectedResponse = new ListCustomMetricsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomMetrics($customMetrics); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listCustomMetrics($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomMetricsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listCustomMetrics($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataStreamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataStreamsElement = new DataStream(); + $dataStreams = [ + $dataStreamsElement, + ]; + $expectedResponse = new ListDataStreamsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataStreams($dataStreams); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listDataStreams($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataStreamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listDataStreams($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFirebaseLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $firebaseLinksElement = new FirebaseLink(); + $firebaseLinks = [ + $firebaseLinksElement, + ]; + $expectedResponse = new ListFirebaseLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFirebaseLinks($firebaseLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listFirebaseLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFirebaseLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listFirebaseLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGoogleAdsLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $googleAdsLinksElement = new GoogleAdsLink(); + $googleAdsLinks = [ + $googleAdsLinksElement, + ]; + $expectedResponse = new ListGoogleAdsLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setGoogleAdsLinks($googleAdsLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listGoogleAdsLinks($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGoogleAdsLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + try { + $gapicClient->listGoogleAdsLinks($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMeasurementProtocolSecretsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); + $measurementProtocolSecrets = [ + $measurementProtocolSecretsElement, + ]; + $expectedResponse = new ListMeasurementProtocolSecretsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->listMeasurementProtocolSecrets($formattedParent); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMeasurementProtocolSecretsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->listMeasurementProtocolSecrets($formattedParent); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPropertiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $propertiesElement = new Property(); + $properties = [ + $propertiesElement, + ]; + $expectedResponse = new ListPropertiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProperties($properties); + $transport->addResponse($expectedResponse); + // Mock request + $filter = 'filter-1274492040'; + $response = $gapicClient->listProperties($filter); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties', $actualFuncCall); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPropertiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $filter = 'filter-1274492040'; + try { + $gapicClient->listProperties($filter); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionAccountTicketTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accountTicketId = 'accountTicketId-442102884'; + $expectedResponse = new ProvisionAccountTicketResponse(); + $expectedResponse->setAccountTicketId($accountTicketId); + $transport->addResponse($expectedResponse); + $response = $gapicClient->provisionAccountTicket(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionAccountTicketExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->provisionAccountTicket(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runAccessReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $expectedResponse = new RunAccessReportResponse(); + $expectedResponse->setRowCount($rowCount); + $transport->addResponse($expectedResponse); + $response = $gapicClient->runAccessReport(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runAccessReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->runAccessReport(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchChangeHistoryEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $changeHistoryEventsElement = new ChangeHistoryEvent(); + $changeHistoryEvents = [ + $changeHistoryEventsElement, + ]; + $expectedResponse = new SearchChangeHistoryEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); + $response = $gapicClient->searchChangeHistoryEvents($formattedAccount); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($formattedAccount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchChangeHistoryEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); + try { + $gapicClient->searchChangeHistoryEvents($formattedAccount); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $deleted = false; + $expectedResponse = new Account(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setDeleted($deleted); + $transport->addResponse($expectedResponse); + // Mock request + $account = new Account(); + $accountDisplayName = 'accountDisplayName-616446464'; + $account->setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + $response = $gapicClient->updateAccount($account, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $account = new Account(); + $accountDisplayName = 'accountDisplayName-616446464'; + $account->setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + try { + $gapicClient->updateAccount($account, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $conversionEvent = new ConversionEvent(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateConversionEvent($conversionEvent, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getConversionEvent(); + $this->assertProtobufEquals($conversionEvent, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversionEvent = new ConversionEvent(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateConversionEvent($conversionEvent, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateCustomDimension($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateCustomDimension($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateCustomMetric($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateCustomMetric($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); + $expectedResponse->setName($name); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); + $transport->addResponse($expectedResponse); + // Mock request + $dataRetentionSettings = new DataRetentionSettings(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getDataRetentionSettings(); + $this->assertProtobufEquals($dataRetentionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRetentionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataRetentionSettings = new DataRetentionSettings(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataStream($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataStream($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customerId = 'customerId-1772061412'; + $canManageClients = false; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; + $expectedResponse = new GoogleAdsLink(); + $expectedResponse->setName($name); + $expectedResponse->setCustomerId($customerId); + $expectedResponse->setCanManageClients($canManageClients); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $response = $gapicClient->updateGoogleAdsLink($updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + try { + $gapicClient->updateGoogleAdsLink($updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + $response = $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); + $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + try { + $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + $response = $gapicClient->updateProperty($property, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + try { + $gapicClient->updateProperty($property, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php new file mode 100644 index 000000000000..0e9574c4843e --- /dev/null +++ b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php @@ -0,0 +1,3635 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return AnalyticsAdminServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new AnalyticsAdminServiceClient($options); + } + + /** @test */ + public function acknowledgeUserDataCollectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AcknowledgeUserDataCollectionResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + $request = (new AcknowledgeUserDataCollectionRequest()) + ->setProperty($formattedProperty) + ->setAcknowledgement($acknowledgement); + $response = $gapicClient->acknowledgeUserDataCollection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($formattedProperty, $actualValue); + $actualValue = $actualRequestObject->getAcknowledgement(); + $this->assertProtobufEquals($acknowledgement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function acknowledgeUserDataCollectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + $request = (new AcknowledgeUserDataCollectionRequest()) + ->setProperty($formattedProperty) + ->setAcknowledgement($acknowledgement); + try { + $gapicClient->acknowledgeUserDataCollection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $request = (new ArchiveCustomDimensionRequest()) + ->setName($formattedName); + $gapicClient->archiveCustomDimension($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $request = (new ArchiveCustomDimensionRequest()) + ->setName($formattedName); + try { + $gapicClient->archiveCustomDimension($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $request = (new ArchiveCustomMetricRequest()) + ->setName($formattedName); + $gapicClient->archiveCustomMetric($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function archiveCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $request = (new ArchiveCustomMetricRequest()) + ->setName($formattedName); + try { + $gapicClient->archiveCustomMetric($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $conversionEvent = new ConversionEvent(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new CreateConversionEventRequest()) + ->setConversionEvent($conversionEvent) + ->setParent($formattedParent); + $response = $gapicClient->createConversionEvent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getConversionEvent(); + $this->assertProtobufEquals($conversionEvent, $actualValue); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversionEvent = new ConversionEvent(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new CreateConversionEventRequest()) + ->setConversionEvent($conversionEvent) + ->setParent($formattedParent); + try { + $gapicClient->createConversionEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customDimension = new CustomDimension(); + $customDimensionParameterName = 'customDimensionParameterName-405505313'; + $customDimension->setParameterName($customDimensionParameterName); + $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; + $customDimension->setDisplayName($customDimensionDisplayName); + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + $customDimension->setScope($customDimensionScope); + $request = (new CreateCustomDimensionRequest()) + ->setParent($formattedParent) + ->setCustomDimension($customDimension); + $response = $gapicClient->createCustomDimension($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomDimension(); + $this->assertProtobufEquals($customDimension, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customDimension = new CustomDimension(); + $customDimensionParameterName = 'customDimensionParameterName-405505313'; + $customDimension->setParameterName($customDimensionParameterName); + $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; + $customDimension->setDisplayName($customDimensionDisplayName); + $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; + $customDimension->setScope($customDimensionScope); + $request = (new CreateCustomDimensionRequest()) + ->setParent($formattedParent) + ->setCustomDimension($customDimension); + try { + $gapicClient->createCustomDimension($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customMetric = new CustomMetric(); + $customMetricParameterName = 'customMetricParameterName1627167443'; + $customMetric->setParameterName($customMetricParameterName); + $customMetricDisplayName = 'customMetricDisplayName-835715284'; + $customMetric->setDisplayName($customMetricDisplayName); + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetric->setMeasurementUnit($customMetricMeasurementUnit); + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + $customMetric->setScope($customMetricScope); + $request = (new CreateCustomMetricRequest()) + ->setParent($formattedParent) + ->setCustomMetric($customMetric); + $response = $gapicClient->createCustomMetric($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCustomMetric(); + $this->assertProtobufEquals($customMetric, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $customMetric = new CustomMetric(); + $customMetricParameterName = 'customMetricParameterName1627167443'; + $customMetric->setParameterName($customMetricParameterName); + $customMetricDisplayName = 'customMetricDisplayName-835715284'; + $customMetric->setDisplayName($customMetricDisplayName); + $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; + $customMetric->setMeasurementUnit($customMetricMeasurementUnit); + $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; + $customMetric->setScope($customMetricScope); + $request = (new CreateCustomMetricRequest()) + ->setParent($formattedParent) + ->setCustomMetric($customMetric); + try { + $gapicClient->createCustomMetric($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + $request = (new CreateDataStreamRequest()) + ->setParent($formattedParent) + ->setDataStream($dataStream); + $response = $gapicClient->createDataStream($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDataStream(); + $this->assertProtobufEquals($dataStream, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + $request = (new CreateDataStreamRequest()) + ->setParent($formattedParent) + ->setDataStream($dataStream); + try { + $gapicClient->createDataStream($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFirebaseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $project = 'project-309310695'; + $expectedResponse = new FirebaseLink(); + $expectedResponse->setName($name); + $expectedResponse->setProject($project); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + $request = (new CreateFirebaseLinkRequest()) + ->setParent($formattedParent) + ->setFirebaseLink($firebaseLink); + $response = $gapicClient->createFirebaseLink($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFirebaseLink(); + $this->assertProtobufEquals($firebaseLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFirebaseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + $request = (new CreateFirebaseLinkRequest()) + ->setParent($formattedParent) + ->setFirebaseLink($firebaseLink); + try { + $gapicClient->createFirebaseLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customerId = 'customerId-1772061412'; + $canManageClients = false; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; + $expectedResponse = new GoogleAdsLink(); + $expectedResponse->setName($name); + $expectedResponse->setCustomerId($customerId); + $expectedResponse->setCanManageClients($canManageClients); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + $request = (new CreateGoogleAdsLinkRequest()) + ->setParent($formattedParent) + ->setGoogleAdsLink($googleAdsLink); + $response = $gapicClient->createGoogleAdsLink($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getGoogleAdsLink(); + $this->assertProtobufEquals($googleAdsLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + $request = (new CreateGoogleAdsLinkRequest()) + ->setParent($formattedParent) + ->setGoogleAdsLink($googleAdsLink); + try { + $gapicClient->createGoogleAdsLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $request = (new CreateMeasurementProtocolSecretRequest()) + ->setParent($formattedParent) + ->setMeasurementProtocolSecret($measurementProtocolSecret); + $response = $gapicClient->createMeasurementProtocolSecret($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); + $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $request = (new CreateMeasurementProtocolSecretRequest()) + ->setParent($formattedParent) + ->setMeasurementProtocolSecret($measurementProtocolSecret); + try { + $gapicClient->createMeasurementProtocolSecret($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $request = (new CreatePropertyRequest()) + ->setProperty($property); + $response = $gapicClient->createProperty($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $request = (new CreatePropertyRequest()) + ->setProperty($property); + try { + $gapicClient->createProperty($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $request = (new DeleteAccountRequest()) + ->setName($formattedName); + $gapicClient->deleteAccount($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $request = (new DeleteAccountRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteAccount($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $request = (new DeleteConversionEventRequest()) + ->setName($formattedName); + $gapicClient->deleteConversionEvent($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $request = (new DeleteConversionEventRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteConversionEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $request = (new DeleteDataStreamRequest()) + ->setName($formattedName); + $gapicClient->deleteDataStream($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $request = (new DeleteDataStreamRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDataStream($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFirebaseLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + $request = (new DeleteFirebaseLinkRequest()) + ->setName($formattedName); + $gapicClient->deleteFirebaseLink($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFirebaseLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); + $request = (new DeleteFirebaseLinkRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteFirebaseLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + $request = (new DeleteGoogleAdsLinkRequest()) + ->setName($formattedName); + $gapicClient->deleteGoogleAdsLink($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); + $request = (new DeleteGoogleAdsLinkRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteGoogleAdsLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $request = (new DeleteMeasurementProtocolSecretRequest()) + ->setName($formattedName); + $gapicClient->deleteMeasurementProtocolSecret($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $request = (new DeleteMeasurementProtocolSecretRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteMeasurementProtocolSecret($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name2); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $request = (new DeletePropertyRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteProperty($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $request = (new DeletePropertyRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteProperty($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $deleted = false; + $expectedResponse = new Account(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setDeleted($deleted); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $request = (new GetAccountRequest()) + ->setName($formattedName); + $response = $gapicClient->getAccount($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->accountName('[ACCOUNT]'); + $request = (new GetAccountRequest()) + ->setName($formattedName); + try { + $gapicClient->getAccount($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name2); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $request = (new GetConversionEventRequest()) + ->setName($formattedName); + $response = $gapicClient->getConversionEvent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $request = (new GetConversionEventRequest()) + ->setName($formattedName); + try { + $gapicClient->getConversionEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name2); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $request = (new GetCustomDimensionRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomDimension($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); + $request = (new GetCustomDimensionRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomDimension($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name2); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $request = (new GetCustomMetricRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomMetric($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); + $request = (new GetCustomMetricRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomMetric($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); + $request = (new GetDataRetentionSettingsRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataRetentionSettings($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRetentionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); + $request = (new GetDataRetentionSettingsRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataRetentionSettings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataSharingSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $sharingWithGoogleSupportEnabled = false; + $sharingWithGoogleAssignedSalesEnabled = false; + $sharingWithGoogleAnySalesEnabled = false; + $sharingWithGoogleProductsEnabled = true; + $sharingWithOthersEnabled = false; + $expectedResponse = new DataSharingSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); + $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); + $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); + $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); + $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); + $request = (new GetDataSharingSettingsRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataSharingSettings($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataSharingSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); + $request = (new GetDataSharingSettingsRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataSharingSettings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $request = (new GetDataStreamRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataStream($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $request = (new GetDataStreamRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataStream($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $request = (new GetMeasurementProtocolSecretRequest()) + ->setName($formattedName); + $response = $gapicClient->getMeasurementProtocolSecret($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); + $request = (new GetMeasurementProtocolSecretRequest()) + ->setName($formattedName); + try { + $gapicClient->getMeasurementProtocolSecret($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name2); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $request = (new GetPropertyRequest()) + ->setName($formattedName); + $response = $gapicClient->getProperty($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->propertyName('[PROPERTY]'); + $request = (new GetPropertyRequest()) + ->setName($formattedName); + try { + $gapicClient->getProperty($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountSummariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accountSummariesElement = new AccountSummary(); + $accountSummaries = [ + $accountSummariesElement, + ]; + $expectedResponse = new ListAccountSummariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccountSummaries($accountSummaries); + $transport->addResponse($expectedResponse); + $request = new ListAccountSummariesRequest(); + $response = $gapicClient->listAccountSummaries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountSummariesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListAccountSummariesRequest(); + try { + $gapicClient->listAccountSummaries($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $accountsElement = new Account(); + $accounts = [ + $accountsElement, + ]; + $expectedResponse = new ListAccountsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAccounts($accounts); + $transport->addResponse($expectedResponse); + $request = new ListAccountsRequest(); + $response = $gapicClient->listAccounts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAccountsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListAccountsRequest(); + try { + $gapicClient->listAccounts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversionEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $conversionEventsElement = new ConversionEvent(); + $conversionEvents = [ + $conversionEventsElement, + ]; + $expectedResponse = new ListConversionEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConversionEvents($conversionEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListConversionEventsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listConversionEvents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConversionEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListConversionEventsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listConversionEvents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomDimensionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customDimensionsElement = new CustomDimension(); + $customDimensions = [ + $customDimensionsElement, + ]; + $expectedResponse = new ListCustomDimensionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomDimensions($customDimensions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListCustomDimensionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomDimensions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomDimensionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListCustomDimensionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomDimensions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomMetricsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customMetricsElement = new CustomMetric(); + $customMetrics = [ + $customMetricsElement, + ]; + $expectedResponse = new ListCustomMetricsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomMetrics($customMetrics); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListCustomMetricsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomMetrics($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomMetricsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListCustomMetricsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomMetrics($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataStreamsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataStreamsElement = new DataStream(); + $dataStreams = [ + $dataStreamsElement, + ]; + $expectedResponse = new ListDataStreamsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataStreams($dataStreams); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListDataStreamsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataStreams($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataStreamsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListDataStreamsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataStreams($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFirebaseLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $firebaseLinksElement = new FirebaseLink(); + $firebaseLinks = [ + $firebaseLinksElement, + ]; + $expectedResponse = new ListFirebaseLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFirebaseLinks($firebaseLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListFirebaseLinksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFirebaseLinks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFirebaseLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListFirebaseLinksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFirebaseLinks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGoogleAdsLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $googleAdsLinksElement = new GoogleAdsLink(); + $googleAdsLinks = [ + $googleAdsLinksElement, + ]; + $expectedResponse = new ListGoogleAdsLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setGoogleAdsLinks($googleAdsLinks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListGoogleAdsLinksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listGoogleAdsLinks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGoogleAdsLinksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $request = (new ListGoogleAdsLinksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listGoogleAdsLinks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMeasurementProtocolSecretsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); + $measurementProtocolSecrets = [ + $measurementProtocolSecretsElement, + ]; + $expectedResponse = new ListMeasurementProtocolSecretsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $request = (new ListMeasurementProtocolSecretsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMeasurementProtocolSecrets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMeasurementProtocolSecretsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $request = (new ListMeasurementProtocolSecretsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMeasurementProtocolSecrets($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPropertiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $propertiesElement = new Property(); + $properties = [ + $propertiesElement, + ]; + $expectedResponse = new ListPropertiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProperties($properties); + $transport->addResponse($expectedResponse); + // Mock request + $filter = 'filter-1274492040'; + $request = (new ListPropertiesRequest()) + ->setFilter($filter); + $response = $gapicClient->listProperties($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties', $actualFuncCall); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPropertiesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $filter = 'filter-1274492040'; + $request = (new ListPropertiesRequest()) + ->setFilter($filter); + try { + $gapicClient->listProperties($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionAccountTicketTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $accountTicketId = 'accountTicketId-442102884'; + $expectedResponse = new ProvisionAccountTicketResponse(); + $expectedResponse->setAccountTicketId($accountTicketId); + $transport->addResponse($expectedResponse); + $request = new ProvisionAccountTicketRequest(); + $response = $gapicClient->provisionAccountTicket($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function provisionAccountTicketExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ProvisionAccountTicketRequest(); + try { + $gapicClient->provisionAccountTicket($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runAccessReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $expectedResponse = new RunAccessReportResponse(); + $expectedResponse->setRowCount($rowCount); + $transport->addResponse($expectedResponse); + $request = new RunAccessReportRequest(); + $response = $gapicClient->runAccessReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runAccessReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new RunAccessReportRequest(); + try { + $gapicClient->runAccessReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchChangeHistoryEventsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $changeHistoryEventsElement = new ChangeHistoryEvent(); + $changeHistoryEvents = [ + $changeHistoryEventsElement, + ]; + $expectedResponse = new SearchChangeHistoryEventsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); + $request = (new SearchChangeHistoryEventsRequest()) + ->setAccount($formattedAccount); + $response = $gapicClient->searchChangeHistoryEvents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($formattedAccount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchChangeHistoryEventsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); + $request = (new SearchChangeHistoryEventsRequest()) + ->setAccount($formattedAccount); + try { + $gapicClient->searchChangeHistoryEvents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccountTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $regionCode = 'regionCode-1566082984'; + $deleted = false; + $expectedResponse = new Account(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setRegionCode($regionCode); + $expectedResponse->setDeleted($deleted); + $transport->addResponse($expectedResponse); + // Mock request + $account = new Account(); + $accountDisplayName = 'accountDisplayName-616446464'; + $account->setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateAccountRequest()) + ->setAccount($account) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAccount($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount', $actualFuncCall); + $actualValue = $actualRequestObject->getAccount(); + $this->assertProtobufEquals($account, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAccountExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $account = new Account(); + $accountDisplayName = 'accountDisplayName-616446464'; + $account->setDisplayName($accountDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateAccountRequest()) + ->setAccount($account) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateAccount($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversionEventTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $eventName = 'eventName984174864'; + $deletable = true; + $custom = false; + $expectedResponse = new ConversionEvent(); + $expectedResponse->setName($name); + $expectedResponse->setEventName($eventName); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); + $transport->addResponse($expectedResponse); + // Mock request + $conversionEvent = new ConversionEvent(); + $updateMask = new FieldMask(); + $request = (new UpdateConversionEventRequest()) + ->setConversionEvent($conversionEvent) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateConversionEvent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getConversionEvent(); + $this->assertProtobufEquals($conversionEvent, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConversionEventExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $conversionEvent = new ConversionEvent(); + $updateMask = new FieldMask(); + $request = (new UpdateConversionEventRequest()) + ->setConversionEvent($conversionEvent) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateConversionEvent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomDimensionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $disallowAdsPersonalization = false; + $expectedResponse = new CustomDimension(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateCustomDimensionRequest()) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateCustomDimension($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomDimensionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateCustomDimensionRequest()) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateCustomDimension($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomMetricTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parameterName = 'parameterName1133142369'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new CustomMetric(); + $expectedResponse->setName($name); + $expectedResponse->setParameterName($parameterName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateCustomMetricRequest()) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateCustomMetric($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCustomMetricExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateCustomMetricRequest()) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateCustomMetric($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); + $expectedResponse->setName($name); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); + $transport->addResponse($expectedResponse); + // Mock request + $dataRetentionSettings = new DataRetentionSettings(); + $updateMask = new FieldMask(); + $request = (new UpdateDataRetentionSettingsRequest()) + ->setDataRetentionSettings($dataRetentionSettings) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateDataRetentionSettings($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getDataRetentionSettings(); + $this->assertProtobufEquals($dataRetentionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRetentionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataRetentionSettings = new DataRetentionSettings(); + $updateMask = new FieldMask(); + $request = (new UpdateDataRetentionSettingsRequest()) + ->setDataRetentionSettings($dataRetentionSettings) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateDataRetentionSettings($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateDataStreamRequest()) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateDataStream($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateDataStreamRequest()) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateDataStream($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleAdsLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $customerId = 'customerId-1772061412'; + $canManageClients = false; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; + $expectedResponse = new GoogleAdsLink(); + $expectedResponse->setName($name); + $expectedResponse->setCustomerId($customerId); + $expectedResponse->setCanManageClients($canManageClients); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); + $transport->addResponse($expectedResponse); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateGoogleAdsLinkRequest()) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateGoogleAdsLink($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGoogleAdsLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $request = (new UpdateGoogleAdsLinkRequest()) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateGoogleAdsLink($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMeasurementProtocolSecretTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $secretValue = 'secretValue1322942242'; + $expectedResponse = new MeasurementProtocolSecret(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSecretValue($secretValue); + $transport->addResponse($expectedResponse); + // Mock request + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateMeasurementProtocolSecretRequest()) + ->setMeasurementProtocolSecret($measurementProtocolSecret) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateMeasurementProtocolSecret($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); + $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); + $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMeasurementProtocolSecretExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $updateMask = new FieldMask(); + $request = (new UpdateMeasurementProtocolSecretRequest()) + ->setMeasurementProtocolSecret($measurementProtocolSecret) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateMeasurementProtocolSecret($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $parent = 'parent-995424086'; + $displayName = 'displayName1615086568'; + $timeZone = 'timeZone36848094'; + $currencyCode = 'currencyCode1108728155'; + $account = 'account-1177318867'; + $expectedResponse = new Property(); + $expectedResponse->setName($name); + $expectedResponse->setParent($parent); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setAccount($account); + $transport->addResponse($expectedResponse); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + $request = (new UpdatePropertyRequest()) + ->setProperty($property) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateProperty($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($property, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $property = new Property(); + $propertyDisplayName = 'propertyDisplayName-1254483624'; + $property->setDisplayName($propertyDisplayName); + $propertyTimeZone = 'propertyTimeZone-1600366322'; + $property->setTimeZone($propertyTimeZone); + $updateMask = new FieldMask(); + $request = (new UpdatePropertyRequest()) + ->setProperty($property) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateProperty($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function acknowledgeUserDataCollectionAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AcknowledgeUserDataCollectionResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + $request = (new AcknowledgeUserDataCollectionRequest()) + ->setProperty($formattedProperty) + ->setAcknowledgement($acknowledgement); + $response = $gapicClient->acknowledgeUserDataCollectionAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); + $actualValue = $actualRequestObject->getProperty(); + $this->assertProtobufEquals($formattedProperty, $actualValue); + $actualValue = $actualRequestObject->getAcknowledgement(); + $this->assertProtobufEquals($acknowledgement, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 989f987c01d796af40c5f57539e9e11298c2f9fd Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 19 Oct 2023 17:59:53 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata/V1Alpha/AnalyticsAdmin.php | 147 +- AnalyticsAdmin/metadata/V1Alpha/Resources.php | Bin 19234 -> 19590 bytes .../V1Alpha/SubpropertyEventFilter.php | Bin .../create_rollup_property.php | 0 .../create_rollup_property_source_link.php | 0 .../create_subproperty.php | 0 .../create_subproperty_event_filter.php | 0 .../delete_account.php | 2 +- .../delete_property.php | 2 +- .../delete_rollup_property_source_link.php | 0 .../delete_subproperty_event_filter.php | 0 .../get_data_redaction_settings.php | 0 .../get_rollup_property_source_link.php | 0 .../list_rollup_property_source_links.php | 0 ...sk_ad_network_conversion_value_schemas.php | 7 +- .../update_data_redaction_settings.php | 0 .../ChangeHistoryResource.php | 33 + .../src/V1alpha/ChangeHistoryResourceType.php | 7 + .../V1alpha/CreateRollupPropertyRequest.php | 2 +- .../V1alpha/CreateRollupPropertyResponse.php | 2 +- .../CreateRollupPropertySourceLinkRequest.php | 4 +- .../CreateSubpropertyEventFilterRequest.php | 4 +- .../src}/V1alpha/CreateSubpropertyRequest.php | 6 +- .../V1alpha/CreateSubpropertyResponse.php | 4 +- .../src}/V1alpha/DataRedactionSettings.php | 6 +- .../DeleteRollupPropertySourceLinkRequest.php | 2 +- .../DeleteSubpropertyEventFilterRequest.php | 2 +- .../AnalyticsAdminServiceGapicClient.php | 943 +- .../GetDataRedactionSettingsRequest.php | 2 +- .../GetRollupPropertySourceLinkRequest.php | 2 +- .../GetSubpropertyEventFilterRequest.php | 2 +- .../ListRollupPropertySourceLinksRequest.php | 6 +- .../ListRollupPropertySourceLinksResponse.php | 2 +- ...AdNetworkConversionValueSchemasRequest.php | 28 +- .../ListSubpropertyEventFiltersRequest.php | 6 +- .../ListSubpropertyEventFiltersResponse.php | 2 +- AnalyticsAdmin/src/V1alpha/Property.php | 12 +- .../src}/V1alpha/RollupPropertySourceLink.php | 4 +- .../src/V1alpha/RunAccessReportRequest.php | 96 + .../src}/V1alpha/SubpropertyEventFilter.php | 4 +- .../V1alpha/SubpropertyEventFilterClause.php | 4 +- .../FilterClauseType.php | 0 .../SubpropertyEventFilterCondition.php | 2 +- .../StringFilter.php | 6 +- .../StringFilter/MatchType.php | 0 .../SubpropertyEventFilterExpression.php | 0 .../SubpropertyEventFilterExpressionList.php | 0 .../UpdateDataRedactionSettingsRequest.php | 4 +- .../UpdateSubpropertyEventFilterRequest.php | 4 +- .../src/V1alpha/gapic_metadata.json | 88 +- ...analytics_admin_service_client_config.json | 92 +- ...lytics_admin_service_descriptor_config.php | 22 +- ...ytics_admin_service_rest_client_config.php | 232 +- .../AnalyticsAdminServiceClientTest.php | 973 +- .../Analytics/Admin/V1Alpha/AccessReport.php | Bin 3944 -> 0 bytes .../Admin/V1Alpha/AnalyticsAdmin.php | 737 -- .../Analytics/Admin/V1Alpha/Audience.php | Bin 5535 -> 0 bytes .../Analytics/Admin/V1Alpha/ChannelGroup.php | Bin 2398 -> 0 bytes .../Admin/V1Alpha/EventCreateAndEdit.php | Bin 1966 -> 0 bytes .../Admin/V1Alpha/ExpandedDataSet.php | Bin 2451 -> 0 bytes .../Analytics/Admin/V1Alpha/Resources.php | Bin 19590 -> 0 bytes .../Admin/V1alpha/AccessBetweenFilter.php | 121 - .../Analytics/Admin/V1alpha/AccessBinding.php | 198 - .../Admin/V1alpha/AccessDateRange.php | 125 - .../Admin/V1alpha/AccessDimension.php | 81 - .../Admin/V1alpha/AccessDimensionHeader.php | 70 - .../Admin/V1alpha/AccessDimensionValue.php | 71 - .../Analytics/Admin/V1alpha/AccessFilter.php | 208 - .../Admin/V1alpha/AccessFilterExpression.php | 178 - .../V1alpha/AccessFilterExpressionList.php | 67 - .../Admin/V1alpha/AccessInListFilter.php | 101 - .../Analytics/Admin/V1alpha/AccessMetric.php | 80 - .../Admin/V1alpha/AccessMetricHeader.php | 70 - .../Admin/V1alpha/AccessMetricValue.php | 67 - .../Admin/V1alpha/AccessNumericFilter.php | 111 - .../V1alpha/AccessNumericFilter/Operation.php | 85 - .../Analytics/Admin/V1alpha/AccessOrderBy.php | 148 - .../AccessOrderBy/DimensionOrderBy.php | 104 - .../DimensionOrderBy/OrderType.php | 76 - .../V1alpha/AccessOrderBy/MetricOrderBy.php | 70 - .../Analytics/Admin/V1alpha/AccessQuota.php | 283 - .../Admin/V1alpha/AccessQuotaStatus.php | 101 - .../Analytics/Admin/V1alpha/AccessRow.php | 109 - .../Admin/V1alpha/AccessStringFilter.php | 135 - .../V1alpha/AccessStringFilter/MatchType.php | 92 - .../Analytics/Admin/V1alpha/Account.php | 269 - .../Admin/V1alpha/AccountSummary.php | 186 - .../AcknowledgeUserDataCollectionRequest.php | 125 - .../AcknowledgeUserDataCollectionResponse.php | 33 - .../Analytics/Admin/V1alpha/ActionType.php | 68 - .../Analytics/Admin/V1alpha/ActorType.php | 69 - .../Analytics/Admin/V1alpha/AdSenseLink.php | 113 - ...yVideo360AdvertiserLinkProposalRequest.php | 71 - ...Video360AdvertiserLinkProposalResponse.php | 81 - .../Admin/V1alpha/ArchiveAudienceRequest.php | 67 - .../V1alpha/ArchiveCustomDimensionRequest.php | 71 - .../V1alpha/ArchiveCustomMetricRequest.php | 71 - .../Admin/V1alpha/AttributionSettings.php | 240 - ...quisitionConversionEventLookbackWindow.php | 66 - .../AdsWebConversionDataExportScope.php | 77 - .../OtherConversionEventLookbackWindow.php | 73 - .../ReportingAttributionModel.php | 141 - .../Analytics/Admin/V1alpha/Audience.php | 343 - .../AudienceExclusionDurationMode.php | 66 - .../AudienceDimensionOrMetricFilter.php | 350 - .../BetweenFilter.php | 125 - .../InListFilter.php | 112 - .../NumericFilter.php | 114 - .../NumericFilter/Operation.php | 71 - .../NumericValue.php | 111 - .../StringFilter.php | 142 - .../StringFilter/MatchType.php | 85 - .../Admin/V1alpha/AudienceEventFilter.php | 137 - .../Admin/V1alpha/AudienceEventTrigger.php | 101 - .../AudienceEventTrigger/LogCondition.php | 65 - .../Admin/V1alpha/AudienceFilterClause.php | 148 - .../AudienceClauseType.php | 68 - .../V1alpha/AudienceFilterExpression.php | 228 - .../V1alpha/AudienceFilterExpressionList.php | 67 - .../Admin/V1alpha/AudienceFilterScope.php | 71 - .../Admin/V1alpha/AudienceSequenceFilter.php | 150 - .../AudienceSequenceStep.php | 225 - .../Admin/V1alpha/AudienceSimpleFilter.php | 116 - .../BatchCreateAccessBindingsRequest.php | 121 - .../BatchCreateAccessBindingsResponse.php | 67 - .../BatchDeleteAccessBindingsRequest.php | 121 - .../V1alpha/BatchGetAccessBindingsRequest.php | 133 - .../BatchGetAccessBindingsResponse.php | 67 - .../BatchUpdateAccessBindingsRequest.php | 125 - .../BatchUpdateAccessBindingsResponse.php | 67 - .../Analytics/Admin/V1alpha/BigQueryLink.php | 393 - ...yVideo360AdvertiserLinkProposalRequest.php | 71 - .../Admin/V1alpha/ChangeHistoryChange.php | 197 - .../ChangeHistoryResource.php | 847 -- .../Admin/V1alpha/ChangeHistoryEvent.php | 266 - .../V1alpha/ChangeHistoryResourceType.php | 208 - .../Analytics/Admin/V1alpha/ChannelGroup.php | 215 - .../Admin/V1alpha/ChannelGroupFilter.php | 145 - .../ChannelGroupFilter/InListFilter.php | 75 - .../ChannelGroupFilter/StringFilter.php | 104 - .../StringFilter/MatchType.php | 92 - .../V1alpha/ChannelGroupFilterExpression.php | 192 - .../ChannelGroupFilterExpressionList.php | 67 - .../Analytics/Admin/V1alpha/CoarseValue.php | 71 - .../Admin/V1alpha/ConnectedSiteTag.php | 109 - .../Admin/V1alpha/ConversionEvent.php | 287 - .../ConversionCountingMethod.php | 66 - .../Admin/V1alpha/ConversionValues.php | 254 - .../V1alpha/CreateAccessBindingRequest.php | 119 - .../V1alpha/CreateAdSenseLinkRequest.php | 119 - .../Admin/V1alpha/CreateAudienceRequest.php | 111 - .../V1alpha/CreateChannelGroupRequest.php | 115 - .../V1alpha/CreateConnectedSiteTagRequest.php | 123 - .../CreateConnectedSiteTagResponse.php | 33 - .../V1alpha/CreateConversionEventRequest.php | 115 - .../V1alpha/CreateCustomDimensionRequest.php | 111 - .../V1alpha/CreateCustomMetricRequest.php | 111 - .../Admin/V1alpha/CreateDataStreamRequest.php | 111 - ...yVideo360AdvertiserLinkProposalRequest.php | 111 - ...teDisplayVideo360AdvertiserLinkRequest.php | 111 - .../V1alpha/CreateEventCreateRuleRequest.php | 111 - .../V1alpha/CreateExpandedDataSetRequest.php | 111 - .../V1alpha/CreateFirebaseLinkRequest.php | 115 - .../V1alpha/CreateGoogleAdsLinkRequest.php | 111 - ...CreateMeasurementProtocolSecretRequest.php | 115 - .../Admin/V1alpha/CreatePropertyRequest.php | 81 - ...KAdNetworkConversionValueSchemaRequest.php | 115 - .../V1alpha/CreateSearchAds360LinkRequest.php | 111 - .../Admin/V1alpha/CustomDimension.php | 301 - .../CustomDimension/DimensionScope.php | 71 - .../Analytics/Admin/V1alpha/CustomMetric.php | 319 - .../V1alpha/CustomMetric/MeasurementUnit.php | 122 - .../V1alpha/CustomMetric/MetricScope.php | 57 - .../CustomMetric/RestrictedMetricType.php | 65 - .../Admin/V1alpha/DataRetentionSettings.php | 143 - .../RetentionDuration.php | 88 - .../Admin/V1alpha/DataSharingSettings.php | 262 - .../Analytics/Admin/V1alpha/DataStream.php | 356 - .../DataStream/AndroidAppStreamData.php | 112 - .../V1alpha/DataStream/DataStreamType.php | 71 - .../V1alpha/DataStream/IosAppStreamData.php | 112 - .../V1alpha/DataStream/WebStreamData.php | 150 - .../V1alpha/DeleteAccessBindingRequest.php | 75 - .../Admin/V1alpha/DeleteAccountRequest.php | 75 - .../V1alpha/DeleteAdSenseLinkRequest.php | 75 - .../V1alpha/DeleteChannelGroupRequest.php | 71 - .../V1alpha/DeleteConnectedSiteTagRequest.php | 117 - .../V1alpha/DeleteConversionEventRequest.php | 75 - .../Admin/V1alpha/DeleteDataStreamRequest.php | 71 - ...yVideo360AdvertiserLinkProposalRequest.php | 71 - ...teDisplayVideo360AdvertiserLinkRequest.php | 71 - .../V1alpha/DeleteEventCreateRuleRequest.php | 71 - .../V1alpha/DeleteExpandedDataSetRequest.php | 67 - .../V1alpha/DeleteFirebaseLinkRequest.php | 71 - .../V1alpha/DeleteGoogleAdsLinkRequest.php | 67 - ...DeleteMeasurementProtocolSecretRequest.php | 75 - .../Admin/V1alpha/DeletePropertyRequest.php | 75 - ...KAdNetworkConversionValueSchemaRequest.php | 75 - .../V1alpha/DeleteSearchAds360LinkRequest.php | 71 - .../V1alpha/DisplayVideo360AdvertiserLink.php | 408 - .../DisplayVideo360AdvertiserLinkProposal.php | 490 - .../V1alpha/EnhancedMeasurementSettings.php | 472 - .../Admin/V1alpha/EventCreateRule.php | 257 - .../Analytics/Admin/V1alpha/EventMapping.php | 279 - .../Admin/V1alpha/ExpandedDataSet.php | 339 - .../Admin/V1alpha/ExpandedDataSetFilter.php | 145 - .../ExpandedDataSetFilter/InListFilter.php | 116 - .../ExpandedDataSetFilter/StringFilter.php | 150 - .../StringFilter/MatchType.php | 64 - .../ExpandedDataSetFilterExpression.php | 159 - .../ExpandedDataSetFilterExpressionList.php | 67 - ...AutomatedGa4ConfigurationOptOutRequest.php | 79 - ...utomatedGa4ConfigurationOptOutResponse.php | 68 - .../FetchConnectedGa4PropertyRequest.php | 83 - .../FetchConnectedGa4PropertyResponse.php | 79 - .../Analytics/Admin/V1alpha/FirebaseLink.php | 165 - .../Admin/V1alpha/GetAccessBindingRequest.php | 79 - .../Admin/V1alpha/GetAccountRequest.php | 75 - .../Admin/V1alpha/GetAdSenseLinkRequest.php | 75 - .../V1alpha/GetAttributionSettingsRequest.php | 71 - .../Admin/V1alpha/GetAudienceRequest.php | 71 - .../Admin/V1alpha/GetBigQueryLinkRequest.php | 75 - .../Admin/V1alpha/GetChannelGroupRequest.php | 71 - .../V1alpha/GetConversionEventRequest.php | 75 - .../V1alpha/GetCustomDimensionRequest.php | 71 - .../Admin/V1alpha/GetCustomMetricRequest.php | 71 - .../GetDataRetentionSettingsRequest.php | 79 - .../V1alpha/GetDataSharingSettingsRequest.php | 75 - .../Admin/V1alpha/GetDataStreamRequest.php | 71 - ...yVideo360AdvertiserLinkProposalRequest.php | 71 - ...etDisplayVideo360AdvertiserLinkRequest.php | 71 - .../GetEnhancedMeasurementSettingsRequest.php | 79 - .../V1alpha/GetEventCreateRuleRequest.php | 71 - .../V1alpha/GetExpandedDataSetRequest.php | 71 - .../Admin/V1alpha/GetGlobalSiteTagRequest.php | 79 - .../GetGoogleSignalsSettingsRequest.php | 71 - .../GetMeasurementProtocolSecretRequest.php | 75 - .../Admin/V1alpha/GetPropertyRequest.php | 75 - ...KAdNetworkConversionValueSchemaRequest.php | 75 - .../V1alpha/GetSearchAds360LinkRequest.php | 71 - .../Analytics/Admin/V1alpha/GlobalSiteTag.php | 114 - .../Analytics/Admin/V1alpha/GoogleAdsLink.php | 358 - .../Admin/V1alpha/GoogleSignalsConsent.php | 63 - .../Admin/V1alpha/GoogleSignalsSettings.php | 143 - .../Admin/V1alpha/GoogleSignalsState.php | 62 - .../Analytics/Admin/V1alpha/GroupingRule.php | 111 - .../Admin/V1alpha/IndustryCategory.php | 229 - .../V1alpha/LinkProposalInitiatingProduct.php | 62 - .../Admin/V1alpha/LinkProposalState.php | 97 - .../V1alpha/LinkProposalStatusDetails.php | 135 - .../V1alpha/ListAccessBindingsRequest.php | 167 - .../V1alpha/ListAccessBindingsResponse.php | 109 - .../V1alpha/ListAccountSummariesRequest.php | 125 - .../V1alpha/ListAccountSummariesResponse.php | 105 - .../Admin/V1alpha/ListAccountsRequest.php | 167 - .../Admin/V1alpha/ListAccountsResponse.php | 105 - .../Admin/V1alpha/ListAdSenseLinksRequest.php | 163 - .../V1alpha/ListAdSenseLinksResponse.php | 105 - .../Admin/V1alpha/ListAudiencesRequest.php | 155 - .../Admin/V1alpha/ListAudiencesResponse.php | 105 - .../V1alpha/ListBigQueryLinksRequest.php | 167 - .../V1alpha/ListBigQueryLinksResponse.php | 105 - .../V1alpha/ListChannelGroupsRequest.php | 159 - .../V1alpha/ListChannelGroupsResponse.php | 109 - .../V1alpha/ListConnectedSiteTagsRequest.php | 79 - .../V1alpha/ListConnectedSiteTagsResponse.php | 71 - .../V1alpha/ListConversionEventsRequest.php | 159 - .../V1alpha/ListConversionEventsResponse.php | 105 - .../V1alpha/ListCustomDimensionsRequest.php | 155 - .../V1alpha/ListCustomDimensionsResponse.php | 105 - .../V1alpha/ListCustomMetricsRequest.php | 155 - .../V1alpha/ListCustomMetricsResponse.php | 105 - .../Admin/V1alpha/ListDataStreamsRequest.php | 155 - .../Admin/V1alpha/ListDataStreamsResponse.php | 105 - ...Video360AdvertiserLinkProposalsRequest.php | 163 - ...ideo360AdvertiserLinkProposalsResponse.php | 105 - ...tDisplayVideo360AdvertiserLinksRequest.php | 159 - ...DisplayVideo360AdvertiserLinksResponse.php | 105 - .../V1alpha/ListEventCreateRulesRequest.php | 155 - .../V1alpha/ListEventCreateRulesResponse.php | 109 - .../V1alpha/ListExpandedDataSetsRequest.php | 155 - .../V1alpha/ListExpandedDataSetsResponse.php | 109 - .../V1alpha/ListFirebaseLinksRequest.php | 163 - .../V1alpha/ListFirebaseLinksResponse.php | 113 - .../V1alpha/ListGoogleAdsLinksRequest.php | 155 - .../V1alpha/ListGoogleAdsLinksResponse.php | 105 - .../ListMeasurementProtocolSecretsRequest.php | 163 - ...ListMeasurementProtocolSecretsResponse.php | 105 - .../Admin/V1alpha/ListPropertiesRequest.php | 257 - .../Admin/V1alpha/ListPropertiesResponse.php | 105 - ...AdNetworkConversionValueSchemasRequest.php | 175 - ...dNetworkConversionValueSchemasResponse.php | 121 - .../V1alpha/ListSearchAds360LinksRequest.php | 159 - .../V1alpha/ListSearchAds360LinksResponse.php | 105 - .../Admin/V1alpha/MatchingCondition.php | 202 - .../MatchingCondition/ComparisonType.php | 148 - .../V1alpha/MeasurementProtocolSecret.php | 151 - .../Analytics/Admin/V1alpha/NumericValue.php | 108 - .../Admin/V1alpha/ParameterMutation.php | 145 - .../Admin/V1alpha/PostbackWindow.php | 137 - .../Analytics/Admin/V1alpha/Property.php | 607 -- .../Admin/V1alpha/PropertySummary.php | 189 - .../Analytics/Admin/V1alpha/PropertyType.php | 68 - .../V1alpha/ProvisionAccountTicketRequest.php | 115 - .../ProvisionAccountTicketResponse.php | 67 - .../Admin/V1alpha/RunAccessReportRequest.php | 679 -- .../Admin/V1alpha/RunAccessReportResponse.php | 257 - .../SKAdNetworkConversionValueSchema.php | 309 - .../Admin/V1alpha/SearchAds360Link.php | 489 - .../SearchChangeHistoryEventsRequest.php | 407 - .../SearchChangeHistoryEventsResponse.php | 105 - .../Analytics/Admin/V1alpha/ServiceLevel.php | 61 - ...AutomatedGa4ConfigurationOptOutRequest.php | 113 - ...utomatedGa4ConfigurationOptOutResponse.php | 34 - .../V1alpha/UpdateAccessBindingRequest.php | 77 - .../Admin/V1alpha/UpdateAccountRequest.php | 137 - .../UpdateAttributionSettingsRequest.php | 137 - .../Admin/V1alpha/UpdateAudienceRequest.php | 137 - .../V1alpha/UpdateChannelGroupRequest.php | 141 - .../V1alpha/UpdateConversionEventRequest.php | 137 - .../V1alpha/UpdateCustomDimensionRequest.php | 129 - .../V1alpha/UpdateCustomMetricRequest.php | 129 - .../UpdateDataRetentionSettingsRequest.php | 137 - .../Admin/V1alpha/UpdateDataStreamRequest.php | 129 - ...teDisplayVideo360AdvertiserLinkRequest.php | 129 - ...dateEnhancedMeasurementSettingsRequest.php | 137 - .../V1alpha/UpdateEventCreateRuleRequest.php | 141 - .../V1alpha/UpdateExpandedDataSetRequest.php | 141 - .../V1alpha/UpdateGoogleAdsLinkRequest.php | 133 - .../UpdateGoogleSignalsSettingsRequest.php | 137 - ...UpdateMeasurementProtocolSecretRequest.php | 125 - .../Admin/V1alpha/UpdatePropertyRequest.php | 141 - ...KAdNetworkConversionValueSchemaRequest.php | 125 - .../V1alpha/UpdateSearchAds360LinkRequest.php | 129 - .../acknowledge_user_data_collection.php | 84 - ...play_video360_advertiser_link_proposal.php | 74 - .../archive_audience.php | 64 - .../archive_custom_dimension.php | 68 - .../archive_custom_metric.php | 65 - .../batch_create_access_bindings.php | 90 - .../batch_delete_access_bindings.php | 84 - .../batch_get_access_bindings.php | 85 - .../batch_update_access_bindings.php | 80 - ...play_video360_advertiser_link_proposal.php | 76 - .../create_access_binding.php | 71 - .../create_ad_sense_link.php | 71 - .../create_audience.php | 98 - .../create_channel_group.php | 91 - .../create_connected_site_tag.php | 79 - .../create_conversion_event.php | 70 - .../create_custom_dimension.php | 103 - .../create_custom_metric.php | 104 - .../create_data_stream.php | 73 - ...reate_display_video360_advertiser_link.php | 76 - ...play_video360_advertiser_link_proposal.php | 72 - .../create_event_create_rule.php | 109 - .../create_expanded_data_set.php | 75 - .../create_firebase_link.php | 72 - .../create_google_ads_link.php | 69 - .../create_measurement_protocol_secret.php | 78 - .../create_property.php | 82 - .../create_search_ads360_link.php | 72 - ..._sk_ad_network_conversion_value_schema.php | 76 - .../delete_access_binding.php | 66 - .../delete_account.php | 76 - .../delete_ad_sense_link.php | 66 - .../delete_channel_group.php | 65 - .../delete_connected_site_tag.php | 52 - .../delete_conversion_event.php | 69 - .../delete_data_stream.php | 65 - ...elete_display_video360_advertiser_link.php | 68 - ...play_video360_advertiser_link_proposal.php | 69 - .../delete_event_create_rule.php | 69 - .../delete_expanded_data_set.php | 67 - .../delete_firebase_link.php | 65 - .../delete_google_ads_link.php | 64 - .../delete_measurement_protocol_secret.php | 70 - .../delete_property.php | 78 - .../delete_search_ads360_link.php | 68 - ..._sk_ad_network_conversion_value_schema.php | 70 - ...ch_automated_ga4_configuration_opt_out.php | 70 - .../fetch_connected_ga4_property.php | 71 - .../get_access_binding.php | 69 - .../get_account.php | 68 - .../get_ad_sense_link.php | 68 - .../get_attribution_settings.php | 67 - .../get_audience.php | 69 - .../get_big_query_link.php | 68 - .../get_channel_group.php | 67 - .../get_conversion_event.php | 71 - .../get_custom_dimension.php | 70 - .../get_custom_metric.php | 67 - .../get_data_retention_settings.php | 69 - .../get_data_sharing_settings.php | 69 - .../get_data_stream.php | 67 - .../get_display_video360_advertiser_link.php | 70 - ...play_video360_advertiser_link_proposal.php | 70 - .../get_enhanced_measurement_settings.php | 74 - .../get_event_create_rule.php | 71 - .../get_expanded_data_set.php | 70 - .../get_global_site_tag.php | 70 - .../get_google_signals_settings.php | 67 - .../get_measurement_protocol_secret.php | 72 - .../get_property.php | 68 - .../get_search_ads360_link.php | 70 - ..._sk_ad_network_conversion_value_schema.php | 72 - .../list_access_bindings.php | 73 - .../list_account_summaries.php | 58 - .../list_accounts.php | 62 - .../list_ad_sense_links.php | 73 - .../list_audiences.php | 73 - .../list_big_query_links.php | 73 - .../list_channel_groups.php | 72 - .../list_connected_site_tags.php | 55 - .../list_conversion_events.php | 74 - .../list_custom_dimensions.php | 71 - .../list_custom_metrics.php | 71 - .../list_data_streams.php | 71 - ...lay_video360_advertiser_link_proposals.php | 73 - ...list_display_video360_advertiser_links.php | 71 - .../list_event_create_rules.php | 71 - .../list_expanded_data_sets.php | 71 - .../list_firebase_links.php | 73 - .../list_google_ads_links.php | 71 - .../list_measurement_protocol_secrets.php | 74 - .../list_properties.php | 90 - .../list_search_ads360_links.php | 71 - ...sk_ad_network_conversion_value_schemas.php | 75 - .../provision_account_ticket.php | 53 - .../run_access_report.php | 65 - .../search_change_history_events.php | 73 - ...et_automated_ga4_configuration_opt_out.php | 70 - .../update_access_binding.php | 56 - .../update_account.php | 71 - .../update_attribution_settings.php | 106 - .../update_audience.php | 95 - .../update_channel_group.php | 84 - .../update_conversion_event.php | 58 - .../update_custom_dimension.php | 57 - .../update_custom_metric.php | 57 - .../update_data_retention_settings.php | 61 - .../update_data_stream.php | 57 - ...pdate_display_video360_advertiser_link.php | 57 - .../update_enhanced_measurement_settings.php | 78 - .../update_event_create_rule.php | 106 - .../update_expanded_data_set.php | 72 - .../update_google_ads_link.php | 57 - .../update_google_signals_settings.php | 61 - .../update_measurement_protocol_secret.php | 75 - .../update_property.php | 84 - .../update_search_ads360_link.php | 57 - ..._sk_ad_network_conversion_value_schema.php | 64 - .../V1alpha/AnalyticsAdminServiceClient.php | 36 - .../AnalyticsAdminServiceGapicClient.php | 7940 --------------- .../v1alpha/src/V1alpha/gapic_metadata.json | 658 -- ...analytics_admin_service_client_config.json | 685 -- ...lytics_admin_service_descriptor_config.php | 238 - ...ytics_admin_service_rest_client_config.php | 1536 --- .../AnalyticsAdminServiceClientTest.php | 8578 ----------------- .../Analytics/Admin/V1Beta/AccessReport.php | Bin 3919 -> 0 bytes .../Analytics/Admin/V1Beta/AnalyticsAdmin.php | 318 - .../Analytics/Admin/V1Beta/Resources.php | Bin 9580 -> 0 bytes .../Admin/V1beta/AccessBetweenFilter.php | 121 - .../Admin/V1beta/AccessDateRange.php | 125 - .../Admin/V1beta/AccessDimension.php | 81 - .../Admin/V1beta/AccessDimensionHeader.php | 70 - .../Admin/V1beta/AccessDimensionValue.php | 71 - .../Analytics/Admin/V1beta/AccessFilter.php | 208 - .../Admin/V1beta/AccessFilterExpression.php | 178 - .../V1beta/AccessFilterExpressionList.php | 67 - .../Admin/V1beta/AccessInListFilter.php | 101 - .../Analytics/Admin/V1beta/AccessMetric.php | 80 - .../Admin/V1beta/AccessMetricHeader.php | 70 - .../Admin/V1beta/AccessMetricValue.php | 67 - .../Admin/V1beta/AccessNumericFilter.php | 111 - .../V1beta/AccessNumericFilter/Operation.php | 85 - .../Analytics/Admin/V1beta/AccessOrderBy.php | 148 - .../V1beta/AccessOrderBy/DimensionOrderBy.php | 104 - .../DimensionOrderBy/OrderType.php | 76 - .../V1beta/AccessOrderBy/MetricOrderBy.php | 70 - .../Analytics/Admin/V1beta/AccessQuota.php | 283 - .../Admin/V1beta/AccessQuotaStatus.php | 101 - .../Analytics/Admin/V1beta/AccessRow.php | 109 - .../Admin/V1beta/AccessStringFilter.php | 135 - .../V1beta/AccessStringFilter/MatchType.php | 92 - .../Google/Analytics/Admin/V1beta/Account.php | 269 - .../Analytics/Admin/V1beta/AccountSummary.php | 186 - .../AcknowledgeUserDataCollectionRequest.php | 125 - .../AcknowledgeUserDataCollectionResponse.php | 33 - .../Analytics/Admin/V1beta/ActionType.php | 68 - .../Analytics/Admin/V1beta/ActorType.php | 69 - .../V1beta/ArchiveCustomDimensionRequest.php | 86 - .../V1beta/ArchiveCustomMetricRequest.php | 86 - .../Admin/V1beta/ChangeHistoryChange.php | 197 - .../ChangeHistoryResource.php | 310 - .../Admin/V1beta/ChangeHistoryEvent.php | 266 - .../V1beta/ChangeHistoryResourceType.php | 131 - .../Admin/V1beta/ConversionEvent.php | 287 - .../ConversionCountingMethod.php | 66 - .../V1beta/CreateConversionEventRequest.php | 132 - .../V1beta/CreateCustomDimensionRequest.php | 127 - .../V1beta/CreateCustomMetricRequest.php | 127 - .../Admin/V1beta/CreateDataStreamRequest.php | 127 - .../V1beta/CreateFirebaseLinkRequest.php | 132 - .../V1beta/CreateGoogleAdsLinkRequest.php | 127 - ...CreateMeasurementProtocolSecretRequest.php | 132 - .../Admin/V1beta/CreatePropertyRequest.php | 95 - .../Admin/V1beta/CustomDimension.php | 301 - .../V1beta/CustomDimension/DimensionScope.php | 71 - .../Analytics/Admin/V1beta/CustomMetric.php | 319 - .../V1beta/CustomMetric/MeasurementUnit.php | 122 - .../Admin/V1beta/CustomMetric/MetricScope.php | 57 - .../CustomMetric/RestrictedMetricType.php | 65 - .../Admin/V1beta/DataRetentionSettings.php | 143 - .../RetentionDuration.php | 88 - .../Admin/V1beta/DataSharingSettings.php | 262 - .../Analytics/Admin/V1beta/DataStream.php | 356 - .../DataStream/AndroidAppStreamData.php | 112 - .../V1beta/DataStream/DataStreamType.php | 71 - .../V1beta/DataStream/IosAppStreamData.php | 112 - .../Admin/V1beta/DataStream/WebStreamData.php | 150 - .../Admin/V1beta/DeleteAccountRequest.php | 91 - .../V1beta/DeleteConversionEventRequest.php | 91 - .../Admin/V1beta/DeleteDataStreamRequest.php | 86 - .../V1beta/DeleteFirebaseLinkRequest.php | 86 - .../V1beta/DeleteGoogleAdsLinkRequest.php | 81 - ...DeleteMeasurementProtocolSecretRequest.php | 91 - .../Admin/V1beta/DeletePropertyRequest.php | 91 - .../Analytics/Admin/V1beta/FirebaseLink.php | 165 - .../Admin/V1beta/GetAccountRequest.php | 91 - .../V1beta/GetConversionEventRequest.php | 91 - .../V1beta/GetCustomDimensionRequest.php | 86 - .../Admin/V1beta/GetCustomMetricRequest.php | 86 - .../GetDataRetentionSettingsRequest.php | 96 - .../V1beta/GetDataSharingSettingsRequest.php | 91 - .../Admin/V1beta/GetDataStreamRequest.php | 86 - .../GetMeasurementProtocolSecretRequest.php | 91 - .../Admin/V1beta/GetPropertyRequest.php | 91 - .../Analytics/Admin/V1beta/GoogleAdsLink.php | 358 - .../Admin/V1beta/IndustryCategory.php | 229 - .../V1beta/ListAccountSummariesRequest.php | 125 - .../V1beta/ListAccountSummariesResponse.php | 105 - .../Admin/V1beta/ListAccountsRequest.php | 167 - .../Admin/V1beta/ListAccountsResponse.php | 105 - .../V1beta/ListConversionEventsRequest.php | 174 - .../V1beta/ListConversionEventsResponse.php | 105 - .../V1beta/ListCustomDimensionsRequest.php | 169 - .../V1beta/ListCustomDimensionsResponse.php | 105 - .../Admin/V1beta/ListCustomMetricsRequest.php | 169 - .../V1beta/ListCustomMetricsResponse.php | 105 - .../Admin/V1beta/ListDataStreamsRequest.php | 169 - .../Admin/V1beta/ListDataStreamsResponse.php | 105 - .../Admin/V1beta/ListFirebaseLinksRequest.php | 178 - .../V1beta/ListFirebaseLinksResponse.php | 113 - .../V1beta/ListGoogleAdsLinksRequest.php | 169 - .../V1beta/ListGoogleAdsLinksResponse.php | 105 - .../ListMeasurementProtocolSecretsRequest.php | 179 - ...ListMeasurementProtocolSecretsResponse.php | 105 - .../Admin/V1beta/ListPropertiesRequest.php | 257 - .../Admin/V1beta/ListPropertiesResponse.php | 105 - .../V1beta/MeasurementProtocolSecret.php | 151 - .../Analytics/Admin/V1beta/NumericValue.php | 108 - .../Analytics/Admin/V1beta/Property.php | 611 -- .../Admin/V1beta/PropertySummary.php | 189 - .../Analytics/Admin/V1beta/PropertyType.php | 68 - .../V1beta/ProvisionAccountTicketRequest.php | 115 - .../V1beta/ProvisionAccountTicketResponse.php | 67 - .../Admin/V1beta/RunAccessReportRequest.php | 583 -- .../Admin/V1beta/RunAccessReportResponse.php | 257 - .../SearchChangeHistoryEventsRequest.php | 407 - .../SearchChangeHistoryEventsResponse.php | 105 - .../Analytics/Admin/V1beta/ServiceLevel.php | 61 - .../Admin/V1beta/UpdateAccountRequest.php | 156 - .../V1beta/UpdateConversionEventRequest.php | 156 - .../V1beta/UpdateCustomDimensionRequest.php | 146 - .../V1beta/UpdateCustomMetricRequest.php | 146 - .../UpdateDataRetentionSettingsRequest.php | 156 - .../Admin/V1beta/UpdateDataStreamRequest.php | 146 - .../V1beta/UpdateGoogleAdsLinkRequest.php | 151 - ...UpdateMeasurementProtocolSecretRequest.php | 141 - .../Admin/V1beta/UpdatePropertyRequest.php | 161 - .../acknowledge_user_data_collection.php | 87 - .../archive_custom_dimension.php | 73 - .../archive_custom_metric.php | 70 - .../create_conversion_event.php | 74 - .../create_custom_dimension.php | 107 - .../create_custom_metric.php | 108 - .../create_data_stream.php | 77 - .../create_firebase_link.php | 76 - .../create_google_ads_link.php | 73 - .../create_measurement_protocol_secret.php | 79 - .../create_property.php | 85 - .../delete_account.php | 81 - .../delete_conversion_event.php | 74 - .../delete_data_stream.php | 70 - .../delete_firebase_link.php | 70 - .../delete_google_ads_link.php | 69 - .../delete_measurement_protocol_secret.php | 75 - .../delete_property.php | 83 - .../get_account.php | 73 - .../get_conversion_event.php | 76 - .../get_custom_dimension.php | 75 - .../get_custom_metric.php | 72 - .../get_data_retention_settings.php | 74 - .../get_data_sharing_settings.php | 74 - .../get_data_stream.php | 72 - .../get_measurement_protocol_secret.php | 77 - .../get_property.php | 73 - .../list_account_summaries.php | 62 - .../list_accounts.php | 66 - .../list_conversion_events.php | 79 - .../list_custom_dimensions.php | 76 - .../list_custom_metrics.php | 76 - .../list_data_streams.php | 76 - .../list_firebase_links.php | 78 - .../list_google_ads_links.php | 76 - .../list_measurement_protocol_secrets.php | 79 - .../list_properties.php | 95 - .../provision_account_ticket.php | 57 - .../run_access_report.php | 69 - .../search_change_history_events.php | 78 - .../update_account.php | 75 - .../update_conversion_event.php | 62 - .../update_custom_dimension.php | 60 - .../update_custom_metric.php | 60 - .../update_data_retention_settings.php | 62 - .../update_data_stream.php | 60 - .../update_google_ads_link.php | 60 - .../update_measurement_protocol_secret.php | 76 - .../update_property.php | 88 - .../V1beta/AnalyticsAdminServiceClient.php | 36 - .../Client/AnalyticsAdminServiceClient.php | 1969 ---- .../AnalyticsAdminServiceGapicClient.php | 3310 ------- .../v1beta/src/V1beta/gapic_metadata.json | 263 - ...analytics_admin_service_client_config.json | 280 - ...lytics_admin_service_descriptor_config.php | 666 -- ...ytics_admin_service_rest_client_config.php | 582 -- .../AnalyticsAdminServiceClientTest.php | 3341 ------- .../AnalyticsAdminServiceClientTest.php | 3635 ------- 639 files changed, 1404 insertions(+), 102268 deletions(-) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin => AnalyticsAdmin/metadata}/V1Alpha/SubpropertyEventFilter.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha => AnalyticsAdmin}/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateRollupPropertyRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateRollupPropertyResponse.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateRollupPropertySourceLinkRequest.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateSubpropertyEventFilterRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateSubpropertyRequest.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateSubpropertyResponse.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataRedactionSettings.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DeleteRollupPropertySourceLinkRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DeleteSubpropertyEventFilterRequest.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetDataRedactionSettingsRequest.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetRollupPropertySourceLinkRequest.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetSubpropertyEventFilterRequest.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListRollupPropertySourceLinksRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListRollupPropertySourceLinksResponse.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListSubpropertyEventFiltersRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListSubpropertyEventFiltersResponse.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/RollupPropertySourceLink.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilter.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterClause.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterCondition.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterCondition/StringFilter.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterExpression.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/SubpropertyEventFilterExpressionList.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/UpdateDataRedactionSettingsRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/UpdateSubpropertyEventFilterRequest.php (98%) delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ExpandedDataSet.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Resources.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Client/AnalyticsAdminServiceClient.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php diff --git a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php index a006efccb400..07477e991b81 100644 --- a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php +++ b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php @@ -20,6 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); \GPBMetadata\Google\Api\Annotations::initOnce(); \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); @@ -29,8 +30,8 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( ' -ñ¢ -4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alpha-google/analytics/admin/v1alpha/audience.proto2google/analytics/admin/v1alpha/channel_group.proto:google/analytics/admin/v1alpha/event_create_and_edit.proto6google/analytics/admin/v1alpha/expanded_data_set.proto.google/analytics/admin/v1alpha/resources.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¤ +ت +4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alpha-google/analytics/admin/v1alpha/audience.proto2google/analytics/admin/v1alpha/channel_group.proto:google/analytics/admin/v1alpha/event_create_and_edit.proto6google/analytics/admin/v1alpha/expanded_data_set.proto.google/analytics/admin/v1alpha/resources.proto=google/analytics/admin/v1alpha/subproperty_event_filter.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"à RunAccessReportRequest entity ( C @@ -44,7 +45,9 @@ public static function initOnce() { time_zone ( @ order_bys ( 2-.google.analytics.admin.v1alpha.AccessOrderBy -return_entity_quota ("¿ +return_entity_quota ( +include_all_users (BàA + expand_groups (BàA"¿ RunAccessReportResponseP dimension_headers ( 25.google.analytics.admin.v1alpha.AccessDimensionHeaderJ metric_headers ( 22.google.analytics.admin.v1alpha.AccessMetricHeader7 @@ -93,60 +96,7 @@ public static function initOnce() { property ( 2(.google.analytics.admin.v1alpha.PropertyBàA"U DeletePropertyRequest< name ( B.àAúA( -&analyticsadmin.googleapis.com/Property"R -GetUserLinkRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/UserLink"™ -BatchGetUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink= -names ( B.àAúA( -&analyticsadmin.googleapis.com/UserLink"Y -BatchGetUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink"} -ListUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink - page_size ( - -page_token ( "n -ListUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink -next_page_token ( "~ -AuditUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink - page_size ( - -page_token ( "t -AuditUserLinksResponseA - -user_links ( 2-.google.analytics.admin.v1alpha.AuditUserLink -next_page_token ( "· -CreateUserLinkRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink -notify_new_user (BàA@ - user_link ( 2(.google.analytics.admin.v1alpha.UserLinkBàA"Ê -BatchCreateUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink -notify_new_users (BàAL -requests ( 25.google.analytics.admin.v1alpha.CreateUserLinkRequestBàA"\\ -BatchCreateUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink"Y -UpdateUserLinkRequest@ - user_link ( 2(.google.analytics.admin.v1alpha.UserLinkBàA"« -BatchUpdateUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLinkL -requests ( 25.google.analytics.admin.v1alpha.UpdateUserLinkRequestBàA"\\ -BatchUpdateUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink"U -DeleteUserLinkRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/UserLink"« -BatchDeleteUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLinkL -requests ( 25.google.analytics.admin.v1alpha.DeleteUserLinkRequestBàA"© +&analyticsadmin.googleapis.com/Property"© CreateFirebaseLinkRequestB parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkH firebase_link ( 2,.google.analytics.admin.v1alpha.FirebaseLinkBàA"] @@ -536,6 +486,12 @@ public static function initOnce() { 9analyticsadmin.googleapis.com/EnhancedMeasurementSettings"É (UpdateEnhancedMeasurementSettingsRequestg enhanced_measurement_settings ( 2;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"l +GetDataRedactionSettingsRequestI +name ( B;àAúA5 +3analyticsadmin.googleapis.com/DataRedactionSettings"· +"UpdateDataRedactionSettingsRequest[ +data_redaction_settings ( 25.google.analytics.admin.v1alpha.DataRedactionSettingsBàA4 update_mask ( 2.google.protobuf.FieldMaskBàA"„ CreateConnectedSiteTagRequest property ( Q @@ -590,7 +546,58 @@ public static function initOnce() { page_token ( "„ ListEventCreateRulesResponseK event_create_rules ( 2/.google.analytics.admin.v1alpha.EventCreateRule -next_page_token ( 2üè +next_page_token ( "… +CreateRollupPropertyRequestF +rollup_property ( 2(.google.analytics.admin.v1alpha.PropertyBàA +source_properties ( BàA"Á +CreateRollupPropertyResponseA +rollup_property ( 2(.google.analytics.admin.v1alpha.Property^ +rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink"r +"GetRollupPropertySourceLinkRequestL +name ( B>àAúA8 +6analyticsadmin.googleapis.com/RollupPropertySourceLink"§ +$ListRollupPropertySourceLinksRequestN +parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLink + page_size (BàA + +page_token ( BàA"  +%ListRollupPropertySourceLinksResponse^ +rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink +next_page_token ( "Û +%CreateRollupPropertySourceLinkRequestN +parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLinkb +rollup_property_source_link ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLinkBàA"u +%DeleteRollupPropertySourceLinkRequestL +name ( B>àAúA8 +6analyticsadmin.googleapis.com/RollupPropertySourceLink"ý +CreateSubpropertyRequest> +parent ( B.àAúA( +&analyticsadmin.googleapis.com/PropertyB + subproperty ( 2(.google.analytics.admin.v1alpha.PropertyBàA] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"´ +CreateSubpropertyResponse= + subproperty ( 2(.google.analytics.admin.v1alpha.PropertyX +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter"Ò +#CreateSubpropertyEventFilterRequestL +parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"n + GetSubpropertyEventFilterRequestJ +name ( B<àAúA6 +4analyticsadmin.googleapis.com/SubpropertyEventFilter"£ +"ListSubpropertyEventFiltersRequestL +parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter + page_size (BàA + +page_token ( BàA"™ +#ListSubpropertyEventFiltersResponseY +subproperty_event_filters ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter +next_page_token ( "º +#UpdateSubpropertyEventFilterRequest] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"q +#DeleteSubpropertyEventFilterRequestJ +name ( B<àAúA6 +4analyticsadmin.googleapis.com/SubpropertyEventFilter2ñè AnalyticsAdminService“ GetAccount1.google.analytics.admin.v1alpha.GetAccountRequest\'.google.analytics.admin.v1alpha.Account")‚Óä“/v1alpha/{name=accounts/*}ÚAname” @@ -603,17 +610,7 @@ public static function initOnce() { ListProperties5.google.analytics.admin.v1alpha.ListPropertiesRequest6.google.analytics.admin.v1alpha.ListPropertiesResponse"‚Óä“/v1alpha/properties£ CreateProperty5.google.analytics.admin.v1alpha.CreatePropertyRequest(.google.analytics.admin.v1alpha.Property"0‚Óä“"/v1alpha/properties:propertyÚApropertyž DeleteProperty5.google.analytics.admin.v1alpha.DeletePropertyRequest(.google.analytics.admin.v1alpha.Property"+‚Óä“*/v1alpha/{name=properties/*}ÚAnameÁ -UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"N‚Óä“12%/v1alpha/{property.name=properties/*}:propertyÚAproperty,update_maskÎ - GetUserLink2.google.analytics.admin.v1alpha.GetUserLinkRequest(.google.analytics.admin.v1alpha.UserLink"a‚Óä“T&/v1alpha/{name=accounts/*/userLinks/*}Z*(/v1alpha/{name=properties/*/userLinks/*}ÚAnameö -BatchGetUserLinks8.google.analytics.admin.v1alpha.BatchGetUserLinksRequest9.google.analytics.admin.v1alpha.BatchGetUserLinksResponse"l‚Óä“f//v1alpha/{parent=accounts/*}/userLinks:batchGetZ31/v1alpha/{parent=properties/*}/userLinks:batchGetá - ListUserLinks4.google.analytics.admin.v1alpha.ListUserLinksRequest5.google.analytics.admin.v1alpha.ListUserLinksResponse"c‚Óä“T&/v1alpha/{parent=accounts/*}/userLinksZ*(/v1alpha/{parent=properties/*}/userLinksÚAparentí -AuditUserLinks5.google.analytics.admin.v1alpha.AuditUserLinksRequest6.google.analytics.admin.v1alpha.AuditUserLinksResponse"l‚Óä“f",/v1alpha/{parent=accounts/*}/userLinks:audit:*Z3"./v1alpha/{parent=properties/*}/userLinks:audit:*÷ -CreateUserLink5.google.analytics.admin.v1alpha.CreateUserLinkRequest(.google.analytics.admin.v1alpha.UserLink"ƒ‚Óä“j"&/v1alpha/{parent=accounts/*}/userLinks: user_linkZ5"(/v1alpha/{parent=properties/*}/userLinks: user_linkÚAparent,user_link‹ -BatchCreateUserLinks;.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest<.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse"x‚Óä“r"2/v1alpha/{parent=accounts/*}/userLinks:batchCreate:*Z9"4/v1alpha/{parent=properties/*}/userLinks:batchCreate:*„ -UpdateUserLink5.google.analytics.admin.v1alpha.UpdateUserLinkRequest(.google.analytics.admin.v1alpha.UserLink"‚Óä“~20/v1alpha/{user_link.name=accounts/*/userLinks/*}: user_linkZ?22/v1alpha/{user_link.name=properties/*/userLinks/*}: user_linkÚA user_link‹ -BatchUpdateUserLinks;.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest<.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse"x‚Óä“r"2/v1alpha/{parent=accounts/*}/userLinks:batchUpdate:*Z9"4/v1alpha/{parent=properties/*}/userLinks:batchUpdate:* -DeleteUserLink5.google.analytics.admin.v1alpha.DeleteUserLinkRequest.google.protobuf.Empty"a‚Óä“T*&/v1alpha/{name=accounts/*/userLinks/*}Z**(/v1alpha/{name=properties/*/userLinks/*}ÚAnameå -BatchDeleteUserLinks;.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.google.protobuf.Empty"x‚Óä“r"2/v1alpha/{parent=accounts/*}/userLinks:batchDelete:*Z9"4/v1alpha/{parent=properties/*}/userLinks:batchDelete:*Ù +UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"N‚Óä“12%/v1alpha/{property.name=properties/*}:propertyÚAproperty,update_maskÙ CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"Z‚Óä“=",/v1alpha/{parent=properties/*}/firebaseLinks: firebase_linkÚAparent,firebase_link¤ DeleteFirebaseLink9.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/firebaseLinks/*}ÚAnameÇ ListFirebaseLinks8.google.analytics.admin.v1alpha.ListFirebaseLinksRequest9.google.analytics.admin.v1alpha.ListFirebaseLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/firebaseLinksÚAparentà @@ -720,7 +717,17 @@ public static function initOnce() { ListEventCreateRules;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse"N‚Óä“?=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRulesÚAparentû CreateEventCreateRule<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"s‚Óä“R"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:event_create_ruleÚAparent,event_create_rule“ UpdateEventCreateRule<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"Š‚Óä“d2O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:event_create_ruleÚAevent_create_rule,update_mask» -DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{ +DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameº +UpdateDataRedactionSettingsB.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"Ÿ‚Óä“s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:data_redaction_settingsÚA#data_redaction_settings,update_maskã +GetDataRedactionSettings?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"O‚Óä“B@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}ÚAnameÆ +CreateRollupProperty;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse"3‚Óä“-"(/v1alpha/properties:createRollupProperty:*ä +GetRollupPropertySourceLinkB.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"G‚Óä“:8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAname÷ +ListRollupPropertySourceLinksD.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestE.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse"I‚Óä“:8/v1alpha/{parent=properties/*}/rollupPropertySourceLinksÚAparent¦ +CreateRollupPropertySourceLinkE.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"‚‚Óä“W"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:rollup_property_source_linkÚA"parent,rollup_property_source_linkÈ +DeleteRollupPropertySourceLinkE.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.google.protobuf.Empty"G‚Óä“:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAnameº +CreateSubproperty8.google.analytics.admin.v1alpha.CreateSubpropertyRequest9.google.analytics.admin.v1alpha.CreateSubpropertyResponse"0‚Óä“*"%/v1alpha/properties:createSubproperty:* +DeleteSubpropertyEventFilterC.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.google.protobuf.Empty"E‚Óä“8*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}ÚAname— +CreateSubpropertyEventFilterC.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest6.google.analytics.admin.v1alpha.SubpropertyEventFilter"z‚Óä“R"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:subproperty_event_filterÚAparent,subproperty_event_filterüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{ "com.google.analytics.admin.v1alphaBAnalyticsAdminProtoPZ>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbbproto3' , true); diff --git a/AnalyticsAdmin/metadata/V1Alpha/Resources.php b/AnalyticsAdmin/metadata/V1Alpha/Resources.php index 12b82c8badd9c063eb5dd98d3c614630e300ce42..60ba3adad9d3c8edbfa1726d9d3ed606f0166a37 100644 GIT binary patch delta 569 zcmZ29jj?Se;|4w!rWF%53$WO5Ztmdw$-^{3Xmhi)B_q>S{>}Sj^x0%0xWrQuOA_OY zQd1I>OEUBG;)_#DN;31(izOr{|C3eYbpgr-!6Y|7Qu-(>IF*S@6h(OQL|vIYc`otP z+{DZrB%@OE5|eULQzV!a7&SPAG`SQDOH+#~;|mgt5_3~aQj4%CWdBRiNk=5z|<15EKj9g}u z9R=m2uo#i*lbM$-QdH@jSdyBazq!Lvk(s5Nl}mE+0U6QFhg^Oz%1CpGyEuk8#s|5&I68-T`uoKP TyM}~#`nd-SNN(QgmdOGDWNOKV delta 329 zcmZph$+&15;|4w!rX#(Z1z2o2d9E;WafBA97Wri6Wlw%+Bw{JW#haR&n3)rwn37VI zT3jr_q`;`b>BRiNkyS{9izg+sC^fkxz9>H@wOE2#fmwsos)_NHV?CGJWC0;LE|^h5 z8k09#3yYRQO)l221~KDvfVR|5PB4+E$10@A#pDL)U-69V>8QAq3&e?xmW2jBNxx+0N$@WEZYRRgeMzH32%;(QekBI&BrA= uNm^|4ENOAJ&D=`QWG8bvF50}u$%L8Z9SfJ_Bx%vjoNhlDH_LfsumAuw_+t.google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null + */ + public function getDataRedactionSettings() + { + return $this->readOneof(25); + } + + public function hasDataRedactionSettings() + { + return $this->hasOneof(25); + } + + /** + * A snapshot of DataRedactionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var + * @return $this + */ + public function setDataRedactionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); + $this->writeOneof(25, $var); + + return $this; + } + /** * A snapshot of SKAdNetworkConversionValueSchema resource in change * history. diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php index cd049d355516..f42497a79ac6 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php @@ -127,6 +127,12 @@ class ChangeHistoryResourceType * Generated from protobuf enum ENHANCED_MEASUREMENT_SETTINGS = 24; */ const ENHANCED_MEASUREMENT_SETTINGS = 24; + /** + * DataRedactionSettings resource + * + * Generated from protobuf enum DATA_REDACTION_SETTINGS = 25; + */ + const DATA_REDACTION_SETTINGS = 25; /** * SKAdNetworkConversionValueSchema resource * @@ -172,6 +178,7 @@ class ChangeHistoryResourceType self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET', self::CHANNEL_GROUP => 'CHANNEL_GROUP', self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS', + self::DATA_REDACTION_SETTINGS => 'DATA_REDACTION_SETTINGS', self::SKADNETWORK_CONVERSION_VALUE_SCHEMA => 'SKADNETWORK_CONVERSION_VALUE_SCHEMA', self::ADSENSE_LINK => 'ADSENSE_LINK', self::AUDIENCE => 'AUDIENCE', diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php index 1790318a4c79..17783ac67db4 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php @@ -20,7 +20,7 @@ class CreateRollupPropertyRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $rollup_property = null; + private $rollup_property = null; /** * Optional. The resource names of properties that will be sources to the * created roll-up property. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php rename to AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php index 9b604c83153e..212a26c0f23b 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php +++ b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php @@ -20,7 +20,7 @@ class CreateRollupPropertyResponse extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; */ - protected $rollup_property = null; + private $rollup_property = null; /** * The created roll-up property source links. * diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php index 413f65f54815..c4d22b591867 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php @@ -21,13 +21,13 @@ class CreateRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Me * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Required. The roll-up property source link to create. * * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $rollup_property_source_link = null; + private $rollup_property_source_link = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php index a12794aee0b6..a3d0123ba349 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php @@ -21,13 +21,13 @@ class CreateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Mess * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Required. The subproperty event filter to create. * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $subproperty_event_filter = null; + private $subproperty_event_filter = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyRequest.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateSubpropertyRequest.php index 00f7b2ef3025..0fb9d995d9f3 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyRequest.php @@ -22,19 +22,19 @@ class CreateSubpropertyRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Required. The subproperty to create. * * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $subproperty = null; + private $subproperty = null; /** * Optional. The subproperty event filter to create on an ordinary property. * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $subproperty_event_filter = null; + private $subproperty_event_filter = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyResponse.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php rename to AnalyticsAdmin/src/V1alpha/CreateSubpropertyResponse.php index e1af2155f2c7..ed86acbd052e 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyResponse.php +++ b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyResponse.php @@ -20,13 +20,13 @@ class CreateSubpropertyResponse extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; */ - protected $subproperty = null; + private $subproperty = null; /** * The created subproperty event filter. * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; */ - protected $subproperty_event_filter = null; + private $subproperty_event_filter = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php b/AnalyticsAdmin/src/V1alpha/DataRedactionSettings.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php rename to AnalyticsAdmin/src/V1alpha/DataRedactionSettings.php index bed20b2d2baf..0084954a51d2 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php +++ b/AnalyticsAdmin/src/V1alpha/DataRedactionSettings.php @@ -24,14 +24,14 @@ class DataRedactionSettings extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $name = ''; /** * If enabled, any event parameter or user property values that look like an * email will be redacted. * * Generated from protobuf field bool email_redaction_enabled = 2; */ - protected $email_redaction_enabled = false; + private $email_redaction_enabled = false; /** * Query Parameter redaction removes the key and value portions of a * query parameter if it is in the configured set of query parameters. @@ -40,7 +40,7 @@ class DataRedactionSettings extends \Google\Protobuf\Internal\Message * * Generated from protobuf field bool query_parameter_redaction_enabled = 3; */ - protected $query_parameter_redaction_enabled = false; + private $query_parameter_redaction_enabled = false; /** * The query parameter keys to apply redaction logic to if present in the URL. * Query parameter matching is case-insensitive. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php index ee13a1ee6de7..becf6dee491b 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php @@ -22,7 +22,7 @@ class DeleteRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Me * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteSubpropertyEventFilterRequest.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php rename to AnalyticsAdmin/src/V1alpha/DeleteSubpropertyEventFilterRequest.php index e0a914135154..8c4e61fe0113 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php +++ b/AnalyticsAdmin/src/V1alpha/DeleteSubpropertyEventFilterRequest.php @@ -23,7 +23,7 @@ class DeleteSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Mess * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php index ec4a21169cbe..2665858ce176 100644 --- a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php +++ b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php @@ -43,22 +43,13 @@ use Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest; use Google\Analytics\Admin\V1alpha\AttributionSettings; use Google\Analytics\Admin\V1alpha\Audience; -use Google\Analytics\Admin\V1alpha\AuditUserLinksRequest; -use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsRequest; use Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksRequest; -use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchDeleteAccessBindingsRequest; -use Google\Analytics\Admin\V1alpha\BatchDeleteUserLinksRequest; use Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsRequest; use Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchGetUserLinksRequest; -use Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsRequest; use Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksRequest; -use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BigQueryLink; use Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest; use Google\Analytics\Admin\V1alpha\ChannelGroup; @@ -82,11 +73,17 @@ use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest; use Google\Analytics\Admin\V1alpha\CreatePropertyRequest; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertyRequest; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertySourceLinkRequest; use Google\Analytics\Admin\V1alpha\CreateSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\CreateSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\CreateUserLinkRequest; +use Google\Analytics\Admin\V1alpha\CreateSubpropertyEventFilterRequest; +use Google\Analytics\Admin\V1alpha\CreateSubpropertyRequest; +use Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse; use Google\Analytics\Admin\V1alpha\CustomDimension; use Google\Analytics\Admin\V1alpha\CustomMetric; +use Google\Analytics\Admin\V1alpha\DataRedactionSettings; use Google\Analytics\Admin\V1alpha\DataRetentionSettings; use Google\Analytics\Admin\V1alpha\DataSharingSettings; use Google\Analytics\Admin\V1alpha\DataStream; @@ -105,9 +102,10 @@ use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest; use Google\Analytics\Admin\V1alpha\DeletePropertyRequest; +use Google\Analytics\Admin\V1alpha\DeleteRollupPropertySourceLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\DeleteSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest; +use Google\Analytics\Admin\V1alpha\DeleteSubpropertyEventFilterRequest; use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink; use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal; use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings; @@ -128,6 +126,7 @@ use Google\Analytics\Admin\V1alpha\GetConversionEventRequest; use Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\GetCustomMetricRequest; +use Google\Analytics\Admin\V1alpha\GetDataRedactionSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataStreamRequest; @@ -140,9 +139,9 @@ use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest; use Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest; use Google\Analytics\Admin\V1alpha\GetPropertyRequest; +use Google\Analytics\Admin\V1alpha\GetRollupPropertySourceLinkRequest; use Google\Analytics\Admin\V1alpha\GetSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\GetSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\GetUserLinkRequest; use Google\Analytics\Admin\V1alpha\GlobalSiteTag; use Google\Analytics\Admin\V1alpha\GoogleAdsLink; use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings; @@ -186,16 +185,17 @@ use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse; use Google\Analytics\Admin\V1alpha\ListPropertiesRequest; use Google\Analytics\Admin\V1alpha\ListPropertiesResponse; +use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksRequest; +use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksResponse; use Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasRequest; use Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasResponse; use Google\Analytics\Admin\V1alpha\ListSearchAds360LinksRequest; use Google\Analytics\Admin\V1alpha\ListSearchAds360LinksResponse; -use Google\Analytics\Admin\V1alpha\ListUserLinksRequest; -use Google\Analytics\Admin\V1alpha\ListUserLinksResponse; use Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret; use Google\Analytics\Admin\V1alpha\Property; use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest; use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse; +use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink; use Google\Analytics\Admin\V1alpha\RunAccessReportRequest; use Google\Analytics\Admin\V1alpha\RunAccessReportResponse; use Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema; @@ -204,6 +204,7 @@ use Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsResponse; use Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutRequest; use Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse; +use Google\Analytics\Admin\V1alpha\SubpropertyEventFilter; use Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest; use Google\Analytics\Admin\V1alpha\UpdateAccountRequest; use Google\Analytics\Admin\V1alpha\UpdateAttributionSettingsRequest; @@ -212,6 +213,7 @@ use Google\Analytics\Admin\V1alpha\UpdateConversionEventRequest; use Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest; +use Google\Analytics\Admin\V1alpha\UpdateDataRedactionSettingsRequest; use Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest; use Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest; use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest; @@ -224,8 +226,6 @@ use Google\Analytics\Admin\V1alpha\UpdatePropertyRequest; use Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\UpdateSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest; -use Google\Analytics\Admin\V1alpha\UserLink; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; @@ -293,8 +293,6 @@ class AnalyticsAdminServiceGapicClient private static $accountAccessBindingNameTemplate; - private static $accountUserLinkNameTemplate; - private static $adSenseLinkNameTemplate; private static $attributionSettingsNameTemplate; @@ -311,6 +309,8 @@ class AnalyticsAdminServiceGapicClient private static $customMetricNameTemplate; + private static $dataRedactionSettingsNameTemplate; + private static $dataRetentionSettingsNameTemplate; private static $dataSharingSettingsNameTemplate; @@ -341,13 +341,13 @@ class AnalyticsAdminServiceGapicClient private static $propertyAccessBindingNameTemplate; - private static $propertyUserLinkNameTemplate; + private static $rollupPropertySourceLinkNameTemplate; private static $sKAdNetworkConversionValueSchemaNameTemplate; private static $searchAds360LinkNameTemplate; - private static $userLinkNameTemplate; + private static $subpropertyEventFilterNameTemplate; private static $pathTemplateMap; @@ -397,15 +397,6 @@ private static function getAccountAccessBindingNameTemplate() return self::$accountAccessBindingNameTemplate; } - private static function getAccountUserLinkNameTemplate() - { - if (self::$accountUserLinkNameTemplate == null) { - self::$accountUserLinkNameTemplate = new PathTemplate('accounts/{account}/userLinks/{user_link}'); - } - - return self::$accountUserLinkNameTemplate; - } - private static function getAdSenseLinkNameTemplate() { if (self::$adSenseLinkNameTemplate == null) { @@ -478,6 +469,15 @@ private static function getCustomMetricNameTemplate() return self::$customMetricNameTemplate; } + private static function getDataRedactionSettingsNameTemplate() + { + if (self::$dataRedactionSettingsNameTemplate == null) { + self::$dataRedactionSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/dataRedactionSettings'); + } + + return self::$dataRedactionSettingsNameTemplate; + } + private static function getDataRetentionSettingsNameTemplate() { if (self::$dataRetentionSettingsNameTemplate == null) { @@ -613,13 +613,13 @@ private static function getPropertyAccessBindingNameTemplate() return self::$propertyAccessBindingNameTemplate; } - private static function getPropertyUserLinkNameTemplate() + private static function getRollupPropertySourceLinkNameTemplate() { - if (self::$propertyUserLinkNameTemplate == null) { - self::$propertyUserLinkNameTemplate = new PathTemplate('properties/{property}/userLinks/{user_link}'); + if (self::$rollupPropertySourceLinkNameTemplate == null) { + self::$rollupPropertySourceLinkNameTemplate = new PathTemplate('properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}'); } - return self::$propertyUserLinkNameTemplate; + return self::$rollupPropertySourceLinkNameTemplate; } private static function getSKAdNetworkConversionValueSchemaNameTemplate() @@ -640,13 +640,13 @@ private static function getSearchAds360LinkNameTemplate() return self::$searchAds360LinkNameTemplate; } - private static function getUserLinkNameTemplate() + private static function getSubpropertyEventFilterNameTemplate() { - if (self::$userLinkNameTemplate == null) { - self::$userLinkNameTemplate = new PathTemplate('accounts/{account}/userLinks/{user_link}'); + if (self::$subpropertyEventFilterNameTemplate == null) { + self::$subpropertyEventFilterNameTemplate = new PathTemplate('properties/{property}/subpropertyEventFilters/{sub_property_event_filter}'); } - return self::$userLinkNameTemplate; + return self::$subpropertyEventFilterNameTemplate; } private static function getPathTemplateMap() @@ -656,7 +656,6 @@ private static function getPathTemplateMap() 'accessBinding' => self::getAccessBindingNameTemplate(), 'account' => self::getAccountNameTemplate(), 'accountAccessBinding' => self::getAccountAccessBindingNameTemplate(), - 'accountUserLink' => self::getAccountUserLinkNameTemplate(), 'adSenseLink' => self::getAdSenseLinkNameTemplate(), 'attributionSettings' => self::getAttributionSettingsNameTemplate(), 'audience' => self::getAudienceNameTemplate(), @@ -665,6 +664,7 @@ private static function getPathTemplateMap() 'conversionEvent' => self::getConversionEventNameTemplate(), 'customDimension' => self::getCustomDimensionNameTemplate(), 'customMetric' => self::getCustomMetricNameTemplate(), + 'dataRedactionSettings' => self::getDataRedactionSettingsNameTemplate(), 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), 'dataStream' => self::getDataStreamNameTemplate(), @@ -680,10 +680,10 @@ private static function getPathTemplateMap() 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), 'property' => self::getPropertyNameTemplate(), 'propertyAccessBinding' => self::getPropertyAccessBindingNameTemplate(), - 'propertyUserLink' => self::getPropertyUserLinkNameTemplate(), + 'rollupPropertySourceLink' => self::getRollupPropertySourceLinkNameTemplate(), 'sKAdNetworkConversionValueSchema' => self::getSKAdNetworkConversionValueSchemaNameTemplate(), 'searchAds360Link' => self::getSearchAds360LinkNameTemplate(), - 'userLink' => self::getUserLinkNameTemplate(), + 'subpropertyEventFilter' => self::getSubpropertyEventFilterNameTemplate(), ]; } @@ -745,25 +745,6 @@ public static function accountAccessBindingName($account, $accessBinding) ]); } - /** - * Formats a string containing the fully-qualified path to represent a - * account_user_link resource. - * - * @param string $account - * @param string $userLink - * - * @return string The formatted account_user_link resource. - * - * @experimental - */ - public static function accountUserLinkName($account, $userLink) - { - return self::getAccountUserLinkNameTemplate()->render([ - 'account' => $account, - 'user_link' => $userLink, - ]); - } - /** * Formats a string containing the fully-qualified path to represent a * ad_sense_link resource. @@ -914,6 +895,25 @@ public static function customMetricName($property, $customMetric) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * data_redaction_settings resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted data_redaction_settings resource. + * + * @experimental + */ + public static function dataRedactionSettingsName($property, $dataStream) + { + return self::getDataRedactionSettingsNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * data_retention_settings resource. @@ -1197,20 +1197,20 @@ public static function propertyAccessBindingName($property, $accessBinding) /** * Formats a string containing the fully-qualified path to represent a - * property_user_link resource. + * rollup_property_source_link resource. * * @param string $property - * @param string $userLink + * @param string $rollupPropertySourceLink * - * @return string The formatted property_user_link resource. + * @return string The formatted rollup_property_source_link resource. * * @experimental */ - public static function propertyUserLinkName($property, $userLink) + public static function rollupPropertySourceLinkName($property, $rollupPropertySourceLink) { - return self::getPropertyUserLinkNameTemplate()->render([ + return self::getRollupPropertySourceLinkNameTemplate()->render([ 'property' => $property, - 'user_link' => $userLink, + 'rollup_property_source_link' => $rollupPropertySourceLink, ]); } @@ -1255,21 +1255,21 @@ public static function searchAds360LinkName($property, $searchAds360Link) } /** - * Formats a string containing the fully-qualified path to represent a user_link - * resource. + * Formats a string containing the fully-qualified path to represent a + * subproperty_event_filter resource. * - * @param string $account - * @param string $userLink + * @param string $property + * @param string $subPropertyEventFilter * - * @return string The formatted user_link resource. + * @return string The formatted subproperty_event_filter resource. * * @experimental */ - public static function userLinkName($account, $userLink) + public static function subpropertyEventFilterName($property, $subPropertyEventFilter) { - return self::getUserLinkNameTemplate()->render([ - 'account' => $account, - 'user_link' => $userLink, + return self::getSubpropertyEventFilterNameTemplate()->render([ + 'property' => $property, + 'sub_property_event_filter' => $subPropertyEventFilter, ]); } @@ -1280,7 +1280,6 @@ public static function userLinkName($account, $userLink) * - accessBinding: accounts/{account}/accessBindings/{access_binding} * - account: accounts/{account} * - accountAccessBinding: accounts/{account}/accessBindings/{access_binding} - * - accountUserLink: accounts/{account}/userLinks/{user_link} * - adSenseLink: properties/{property}/adSenseLinks/{adsense_link} * - attributionSettings: properties/{property}/attributionSettings * - audience: properties/{property}/audiences/{audience} @@ -1289,6 +1288,7 @@ public static function userLinkName($account, $userLink) * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} * - customDimension: properties/{property}/customDimensions/{custom_dimension} * - customMetric: properties/{property}/customMetrics/{custom_metric} + * - dataRedactionSettings: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings * - dataRetentionSettings: properties/{property}/dataRetentionSettings * - dataSharingSettings: accounts/{account}/dataSharingSettings * - dataStream: properties/{property}/dataStreams/{data_stream} @@ -1304,10 +1304,10 @@ public static function userLinkName($account, $userLink) * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} * - property: properties/{property} * - propertyAccessBinding: properties/{property}/accessBindings/{access_binding} - * - propertyUserLink: properties/{property}/userLinks/{user_link} + * - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link} * - sKAdNetworkConversionValueSchema: properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * - searchAds360Link: properties/{property}/searchAds360Links/{search_ads_360_link} - * - userLink: accounts/{account}/userLinks/{user_link} + * - subpropertyEventFilter: properties/{property}/subpropertyEventFilters/{sub_property_event_filter} * * The optional $template argument can be supplied to specify a particular pattern, * and must match one of the templates listed above. If no $template argument is @@ -1626,84 +1626,6 @@ public function archiveCustomMetric($name, array $optionalArgs = []) return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); } - /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. - * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->auditUserLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->auditUserLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: accounts/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function auditUserLinks($parent, array $optionalArgs = []) - { - $request = new AuditUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('AuditUserLinks', $optionalArgs, AuditUserLinksResponse::class, $request); - } - /** * Creates information about multiple access bindings to an account or * property. @@ -1757,65 +1679,6 @@ public function batchCreateAccessBindings($parent, $requests, array $optionalArg return $this->startCall('BatchCreateAccessBindings', BatchCreateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); } - /** - * Creates information about multiple users' links to an account or property. - * - * This method is transactional. If any UserLink cannot be created, none of - * the UserLinks will be created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchCreateUserLinks($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. This field is required. The parent field in the CreateUserLinkRequest - * messages must either be empty or match this field. - * Example format: accounts/1234 - * @param CreateUserLinkRequest[] $requests Required. The requests specifying the user links to create. - * A maximum of 1000 user links can be created in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type bool $notifyNewUsers - * Optional. If set, then email the new users notifying them that they've been - * granted permissions to the resource. Regardless of whether this is set or - * not, notify_new_user field inside each individual request is ignored. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchCreateUserLinks($parent, $requests, array $optionalArgs = []) - { - $request = new BatchCreateUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['notifyNewUsers'])) { - $request->setNotifyNewUsers($optionalArgs['notifyNewUsers']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchCreateUserLinks', BatchCreateUserLinksResponse::class, $optionalArgs, $request)->wait(); - } - /** * Deletes information about multiple users' links to an account or property. * @@ -1863,52 +1726,6 @@ public function batchDeleteAccessBindings($parent, $requests, array $optionalArg return $this->startCall('BatchDeleteAccessBindings', GPBEmpty::class, $optionalArgs, $request)->wait(); } - /** - * Deletes information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $analyticsAdminServiceClient->batchDeleteUserLinks($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. The parent of all values for user link names to delete must match this - * field. - * Example format: accounts/1234 - * @param DeleteUserLinkRequest[] $requests Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchDeleteUserLinks($parent, $requests, array $optionalArgs = []) - { - $request = new BatchDeleteUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchDeleteUserLinks', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - /** * Gets information about multiple access bindings to an account or property. * @@ -1963,57 +1780,6 @@ public function batchGetAccessBindings($parent, $names, array $optionalArgs = [] return $this->startCall('BatchGetAccessBindings', BatchGetAccessBindingsResponse::class, $optionalArgs, $request)->wait(); } - /** - * Gets information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $formattedNames = [ - * $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'), - * ]; - * $response = $analyticsAdminServiceClient->batchGetUserLinks($formattedParent, $formattedNames); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. The parent of all provided values for the 'names' field must match - * this field. - * Example format: accounts/1234 - * @param string[] $names Required. The names of the user links to retrieve. - * A maximum of 1000 user links can be retrieved in a batch. - * Format: accounts/{accountId}/userLinks/{userLinkId} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchGetUserLinks($parent, $names, array $optionalArgs = []) - { - $request = new BatchGetUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setNames($names); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchGetUserLinks', BatchGetUserLinksResponse::class, $optionalArgs, $request)->wait(); - } - /** * Updates information about multiple access bindings to an account or * property. @@ -2065,54 +1831,6 @@ public function batchUpdateAccessBindings($parent, $requests, array $optionalArg return $this->startCall('BatchUpdateAccessBindings', BatchUpdateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); } - /** - * Updates information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchUpdateUserLinks($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. The parent field in the UpdateUserLinkRequest messages must either be - * empty or match this field. - * Example format: accounts/1234 - * @param UpdateUserLinkRequest[] $requests Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchUpdateUserLinks($parent, $requests, array $optionalArgs = []) - { - $request = new BatchUpdateUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchUpdateUserLinks', BatchUpdateUserLinksResponse::class, $optionalArgs, $request)->wait(); - } - /** * Cancels a DisplayVideo360AdvertiserLinkProposal. * Cancelling can mean either: @@ -2919,6 +2637,97 @@ public function createProperty($property, array $optionalArgs = []) return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); } + /** + * Create a roll-up property and all roll-up property source links. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $rollupProperty = new Property(); + * $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $rollupProperty Required. The roll-up property to create. + * @param array $optionalArgs { + * Optional. + * + * @type string[] $sourceProperties + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createRollupProperty($rollupProperty, array $optionalArgs = []) + { + $request = new CreateRollupPropertyRequest(); + $request->setRollupProperty($rollupProperty); + if (isset($optionalArgs['sourceProperties'])) { + $request->setSourceProperties($optionalArgs['sourceProperties']); + } + + return $this->startCall('CreateRollupProperty', CreateRollupPropertyResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a roll-up property source link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $rollupPropertySourceLink = new RollupPropertySourceLink(); + * $response = $analyticsAdminServiceClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param RollupPropertySourceLink $rollupPropertySourceLink Required. The roll-up property source link to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createRollupPropertySourceLink($parent, $rollupPropertySourceLink, array $optionalArgs = []) + { + $request = new CreateRollupPropertySourceLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setRollupPropertySourceLink($rollupPropertySourceLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); + } + /** * Creates a SKAdNetworkConversionValueSchema. * @@ -3009,58 +2818,97 @@ public function createSearchAds360Link($parent, $searchAds360Link, array $option } /** - * Creates a user link on an account or property. - * - * If the user with the specified email already has permissions on the - * account or property, then the user's existing permissions will be unioned - * with the permissions specified in the new UserLink. + * Create a subproperty and a subproperty event filter that applies to the + * created subproperty. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $userLink = new UserLink(); - * $response = $analyticsAdminServiceClient->createUserLink($formattedParent, $userLink); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $subproperty = new Property(); + * $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $parent Required. Example format: accounts/1234 - * @param UserLink $userLink Required. The user link to create. + * @param string $parent Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * @param Property $subproperty Required. The subproperty to create. * @param array $optionalArgs { * Optional. * - * @type bool $notifyNewUser - * Optional. If set, then email the new user notifying them that they've been - * granted permissions to the resource. + * @type SubpropertyEventFilter $subpropertyEventFilter + * Optional. The subproperty event filter to create on an ordinary property. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\UserLink + * @return \Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse * * @throws ApiException if the remote call fails * * @experimental */ - public function createUserLink($parent, $userLink, array $optionalArgs = []) + public function createSubproperty($parent, $subproperty, array $optionalArgs = []) { - $request = new CreateUserLinkRequest(); - $requestParamHeaders = []; + $request = new CreateSubpropertyRequest(); $request->setParent($parent); - $request->setUserLink($userLink); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['notifyNewUser'])) { - $request->setNotifyNewUser($optionalArgs['notifyNewUser']); + $request->setSubproperty($subproperty); + if (isset($optionalArgs['subpropertyEventFilter'])) { + $request->setSubpropertyEventFilter($optionalArgs['subpropertyEventFilter']); } + return $this->startCall('CreateSubproperty', CreateSubpropertyResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a subproperty Event Filter. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $subpropertyEventFilter = new SubpropertyEventFilter(); + * $response = $analyticsAdminServiceClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * @param SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to create. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createSubpropertyEventFilter($parent, $subpropertyEventFilter, array $optionalArgs = []) + { + $request = new CreateSubpropertyEventFilterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setSubpropertyEventFilter($subpropertyEventFilter); + $requestParamHeaders['parent'] = $parent; $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateUserLink', UserLink::class, $optionalArgs, $request)->wait(); + return $this->startCall('CreateSubpropertyEventFilter', SubpropertyEventFilter::class, $optionalArgs, $request)->wait(); } /** @@ -3112,7 +2960,7 @@ public function deleteAccessBinding($name, array $optionalArgs = []) * * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * * Returns an error if the target is not found. @@ -3653,7 +3501,7 @@ public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) * However, they can be restored using the Trash Can UI. * * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * @@ -3699,6 +3547,49 @@ public function deleteProperty($name, array $optionalArgs = []) return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); } + /** + * Deletes a roll-up property source link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + * $analyticsAdminServiceClient->deleteRollupPropertySourceLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function deleteRollupPropertySourceLink($name, array $optionalArgs = []) + { + $request = new DeleteRollupPropertySourceLinkRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteRollupPropertySourceLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + /** * Deletes target SKAdNetworkConversionValueSchema. * @@ -3781,20 +3672,23 @@ public function deleteSearchAds360Link($name, array $optionalArgs = []) } /** - * Deletes a user link on an account or property. + * Deletes a subproperty event filter. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - * $analyticsAdminServiceClient->deleteUserLink($formattedName); + * $formattedName = $analyticsAdminServiceClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + * $analyticsAdminServiceClient->deleteSubpropertyEventFilter($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. Example format: accounts/1234/userLinks/5678 + * @param string $name Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 * @param array $optionalArgs { * Optional. * @@ -3808,15 +3702,15 @@ public function deleteSearchAds360Link($name, array $optionalArgs = []) * * @experimental */ - public function deleteUserLink($name, array $optionalArgs = []) + public function deleteSubpropertyEventFilter($name, array $optionalArgs = []) { - $request = new DeleteUserLinkRequest(); + $request = new DeleteSubpropertyEventFilterRequest(); $requestParamHeaders = []; $request->setName($name); $requestParamHeaders['name'] = $name; $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteUserLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + return $this->startCall('DeleteSubpropertyEventFilter', GPBEmpty::class, $optionalArgs, $request)->wait(); } /** @@ -4331,6 +4225,50 @@ public function getCustomMetric($name, array $optionalArgs = []) return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); } + /** + * Lookup for a single DataRedactionSettings. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getDataRedactionSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataRedactionSettings($name, array $optionalArgs = []) + { + $request = new GetDataRedactionSettingsRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); + } + /** * Returns the singleton data retention settings for this property. * @@ -4849,22 +4787,25 @@ public function getProperty($name, array $optionalArgs = []) } /** - * Looks up a single SKAdNetworkConversionValueSchema. + * Lookup for a single roll-up property source Link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); + * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + * $response = $analyticsAdminServiceClient->getRollupPropertySourceLink($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @param string $name Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 * @param array $optionalArgs { * Optional. * @@ -4874,39 +4815,40 @@ public function getProperty($name, array $optionalArgs = []) * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink * * @throws ApiException if the remote call fails * * @experimental */ - public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) + public function getRollupPropertySourceLink($name, array $optionalArgs = []) { - $request = new GetSKAdNetworkConversionValueSchemaRequest(); + $request = new GetRollupPropertySourceLinkRequest(); $requestParamHeaders = []; $request->setName($name); $requestParamHeaders['name'] = $name; $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); } /** - * Look up a single SearchAds360Link + * Looks up a single SKAdNetworkConversionValueSchema. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); + * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 + * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * @param array $optionalArgs { * Optional. * @@ -4916,38 +4858,39 @@ public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema * * @throws ApiException if the remote call fails * * @experimental */ - public function getSearchAds360Link($name, array $optionalArgs = []) + public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) { - $request = new GetSearchAds360LinkRequest(); + $request = new GetSKAdNetworkConversionValueSchemaRequest(); $requestParamHeaders = []; $request->setName($name); $requestParamHeaders['name'] = $name; $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); } /** - * Gets information about a user's link to an account or property. + * Look up a single SearchAds360Link * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - * $response = $analyticsAdminServiceClient->getUserLink($formattedName); + * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. Example format: accounts/1234/userLinks/5678 + * @param string $name Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 * @param array $optionalArgs { * Optional. * @@ -4957,21 +4900,21 @@ public function getSearchAds360Link($name, array $optionalArgs = []) * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\UserLink + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link * * @throws ApiException if the remote call fails * * @experimental */ - public function getUserLink($name, array $optionalArgs = []) + public function getSearchAds360Link($name, array $optionalArgs = []) { - $request = new GetUserLinkRequest(); + $request = new GetSearchAds360LinkRequest(); $requestParamHeaders = []; $request->setName($name); $requestParamHeaders['name'] = $name; $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetUserLink', UserLink::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); } /** @@ -6389,16 +6332,17 @@ public function listProperties($filter, array $optionalArgs = []) } /** - * Lists SKAdNetworkConversionValueSchema on a stream. - * Properties can have at most one SKAdNetworkConversionValueSchema. + * Lists roll-up property source Links on a property. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { * foreach ($page as $element) { * // doSomethingWith($element); @@ -6406,7 +6350,7 @@ public function listProperties($filter, array $optionalArgs = []) * } * // Alternatively: * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); * foreach ($pagedResponse->iterateAllElements() as $element) { * // doSomethingWith($element); * } @@ -6415,9 +6359,8 @@ public function listProperties($filter, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * @param string $parent Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 * @param array $optionalArgs { * Optional. * @@ -6442,9 +6385,9 @@ public function listProperties($filter, array $optionalArgs = []) * * @experimental */ - public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) + public function listRollupPropertySourceLinks($parent, array $optionalArgs = []) { - $request = new ListSKAdNetworkConversionValueSchemasRequest(); + $request = new ListRollupPropertySourceLinksRequest(); $requestParamHeaders = []; $request->setParent($parent); $requestParamHeaders['parent'] = $parent; @@ -6458,19 +6401,20 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); + return $this->getPagedListResponse('ListRollupPropertySourceLinks', $optionalArgs, ListRollupPropertySourceLinksResponse::class, $request); } /** - * Lists all SearchAds360Links on a property. + * Lists SKAdNetworkConversionValueSchema on a stream. + * Properties can have at most one SKAdNetworkConversionValueSchema. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { * foreach ($page as $element) { * // doSomethingWith($element); @@ -6478,7 +6422,7 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr * } * // Alternatively: * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); * foreach ($pagedResponse->iterateAllElements() as $element) { * // doSomethingWith($element); * } @@ -6487,7 +6431,10 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr * } * ``` * - * @param string $parent Required. Example format: properties/1234 + * @param string $parent Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * @param array $optionalArgs { * Optional. * @@ -6512,9 +6459,9 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr * * @experimental */ - public function listSearchAds360Links($parent, array $optionalArgs = []) + public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) { - $request = new ListSearchAds360LinksRequest(); + $request = new ListSKAdNetworkConversionValueSchemasRequest(); $requestParamHeaders = []; $request->setParent($parent); $requestParamHeaders['parent'] = $parent; @@ -6528,19 +6475,19 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); + return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); } /** - * Lists all user links on an account or property. + * Lists all SearchAds360Links on a property. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listUserLinks($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { * foreach ($page as $element) { * // doSomethingWith($element); @@ -6548,7 +6495,7 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) * } * // Alternatively: * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listUserLinks($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); * foreach ($pagedResponse->iterateAllElements() as $element) { * // doSomethingWith($element); * } @@ -6557,7 +6504,7 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Example format: accounts/1234 + * @param string $parent Required. Example format: properties/1234 * @param array $optionalArgs { * Optional. * @@ -6582,9 +6529,9 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) * * @experimental */ - public function listUserLinks($parent, array $optionalArgs = []) + public function listSearchAds360Links($parent, array $optionalArgs = []) { - $request = new ListUserLinksRequest(); + $request = new ListSearchAds360LinksRequest(); $requestParamHeaders = []; $request->setParent($parent); $requestParamHeaders['parent'] = $parent; @@ -6598,7 +6545,7 @@ public function listUserLinks($parent, array $optionalArgs = []) $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListUserLinks', $optionalArgs, ListUserLinksResponse::class, $request); + return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); } /** @@ -6742,6 +6689,17 @@ public function provisionAccountTicket(array $optionalArgs = []) * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level * requests, this field must be false. + * @type bool $includeAllUsers + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * @type bool $expandGroups + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on @@ -6803,6 +6761,14 @@ public function runAccessReport(array $optionalArgs = []) $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); } + if (isset($optionalArgs['includeAllUsers'])) { + $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); + } + + if (isset($optionalArgs['expandGroups'])) { + $request->setExpandGroups($optionalArgs['expandGroups']); + } + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); @@ -7348,6 +7314,54 @@ public function updateCustomMetric($updateMask, array $optionalArgs = []) return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); } + /** + * Updates a DataRedactionSettings on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $dataRedactionSettings = new DataRedactionSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param DataRedactionSettings $dataRedactionSettings Required. The settings to update. + * The `name` field is used to identify the settings to be updated. + * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataRedactionSettings($dataRedactionSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateDataRedactionSettingsRequest(); + $requestParamHeaders = []; + $request->setDataRedactionSettings($dataRedactionSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['data_redaction_settings.name'] = $dataRedactionSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); + } + /** * Updates the singleton data retention settings for this property. * @@ -7923,45 +7937,4 @@ public function updateSearchAds360Link($updateMask, array $optionalArgs = []) $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); return $this->startCall('UpdateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); } - - /** - * Updates a user link on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $userLink = new UserLink(); - * $response = $analyticsAdminServiceClient->updateUserLink($userLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param UserLink $userLink Required. The user link to update. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\UserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateUserLink($userLink, array $optionalArgs = []) - { - $request = new UpdateUserLinkRequest(); - $requestParamHeaders = []; - $request->setUserLink($userLink); - $requestParamHeaders['user_link.name'] = $userLink->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateUserLink', UserLink::class, $optionalArgs, $request)->wait(); - } } diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php rename to AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php index 452e5a2ae57c..f47a6eeb5fcc 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php @@ -23,7 +23,7 @@ class GetDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php b/AnalyticsAdmin/src/V1alpha/GetRollupPropertySourceLinkRequest.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/GetRollupPropertySourceLinkRequest.php index 4b6293cf778b..783602b1894e 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetRollupPropertySourceLinkRequest.php @@ -23,7 +23,7 @@ class GetRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/GetSubpropertyEventFilterRequest.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php rename to AnalyticsAdmin/src/V1alpha/GetSubpropertyEventFilterRequest.php index 424fca56caf8..11dfba38e5e7 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetSubpropertyEventFilterRequest.php @@ -23,7 +23,7 @@ class GetSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $name = ''; + private $name = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php rename to AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksRequest.php index e629643be942..1d7119ccf2dd 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksRequest.php @@ -21,7 +21,7 @@ class ListRollupPropertySourceLinksRequest extends \Google\Protobuf\Internal\Mes * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Optional. The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. @@ -30,7 +30,7 @@ class ListRollupPropertySourceLinksRequest extends \Google\Protobuf\Internal\Mes * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $page_size = 0; + private $page_size = 0; /** * Optional. A page token, received from a previous * `ListRollupPropertySourceLinks` call. Provide this to retrieve the @@ -40,7 +40,7 @@ class ListRollupPropertySourceLinksRequest extends \Google\Protobuf\Internal\Mes * * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $page_token = ''; + private $page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksResponse.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php rename to AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksResponse.php index f66db6affbd0..1b5b71138337 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php +++ b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksResponse.php @@ -27,7 +27,7 @@ class ListRollupPropertySourceLinksResponse extends \Google\Protobuf\Internal\Me * * Generated from protobuf field string next_page_token = 2; */ - protected $next_page_token = ''; + private $next_page_token = ''; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php b/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php index 20f3bd0d794f..671ffbb3d2d0 100644 --- a/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php @@ -16,9 +16,10 @@ class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -50,9 +51,10 @@ class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Inte * Optional. Data for populating the Message object. * * @type string $parent - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * @type int $page_size * The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. @@ -72,9 +74,10 @@ public function __construct($data = NULL) { } /** - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -85,9 +88,10 @@ public function getParent() } /** - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php rename to AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersRequest.php index 1aa90f16b0bd..2b0e1585142a 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersRequest.php @@ -22,7 +22,7 @@ class ListSubpropertyEventFiltersRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * Optional. The maximum number of resources to return. The service may return * fewer than this value, even if there are additional pages. If unspecified, @@ -31,7 +31,7 @@ class ListSubpropertyEventFiltersRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $page_size = 0; + private $page_size = 0; /** * Optional. A page token, received from a previous * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent @@ -41,7 +41,7 @@ class ListSubpropertyEventFiltersRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $page_token = ''; + private $page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersResponse.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php rename to AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersResponse.php index 3ee9fd68a4f3..f58fd0c69952 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php +++ b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersResponse.php @@ -27,7 +27,7 @@ class ListSubpropertyEventFiltersResponse extends \Google\Protobuf\Internal\Mess * * Generated from protobuf field string next_page_token = 2; */ - protected $next_page_token = ''; + private $next_page_token = ''; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/Property.php b/AnalyticsAdmin/src/V1alpha/Property.php index 879f0b78a0e6..b7765c18a0f5 100644 --- a/AnalyticsAdmin/src/V1alpha/Property.php +++ b/AnalyticsAdmin/src/V1alpha/Property.php @@ -26,8 +26,7 @@ class Property extends \Google\Protobuf\Internal\Message /** * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ @@ -131,8 +130,7 @@ class Property extends \Google\Protobuf\Internal\Message * @type int $property_type * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * @type \Google\Protobuf\Timestamp $create_time * Output only. Time when the entity was originally created. * @type \Google\Protobuf\Timestamp $update_time @@ -214,8 +212,7 @@ public function setName($var) /** * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return int @@ -228,8 +225,7 @@ public function getPropertyType() /** * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @param int $var diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php b/AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php rename to AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php index e947593952ba..47654900a3d6 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php +++ b/AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php @@ -23,7 +23,7 @@ class RollupPropertySourceLink extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $name = ''; /** * Immutable. Resource name of the source property. * Format: properties/{property_id} @@ -31,7 +31,7 @@ class RollupPropertySourceLink extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $source_property = ''; + private $source_property = ''; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php b/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php index 81e46c695e4d..e86bc7ae3230 100644 --- a/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php +++ b/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php @@ -120,6 +120,25 @@ class RunAccessReportRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool return_entity_quota = 11; */ private $return_entity_quota = false; + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $include_all_users = false; + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $expand_groups = false; /** * Constructor. @@ -188,6 +207,17 @@ class RunAccessReportRequest extends \Google\Protobuf\Internal\Message * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level * requests, this field must be false. + * @type bool $include_all_users + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * @type bool $expand_groups + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. * } */ public function __construct($data = NULL) { @@ -579,5 +609,71 @@ public function setReturnEntityQuota($var) return $this; } + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIncludeAllUsers() + { + return $this->include_all_users; + } + + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIncludeAllUsers($var) + { + GPBUtil::checkBool($var); + $this->include_all_users = $var; + + return $this; + } + + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getExpandGroups() + { + return $this->expand_groups; + } + + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setExpandGroups($var) + { + GPBUtil::checkBool($var); + $this->expand_groups = $var; + + return $this; + } + } diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php index 0dbeeb33e198..d74fc43d4f2c 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php @@ -22,13 +22,13 @@ class SubpropertyEventFilter extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $name = ''; /** * Immutable. Resource name of the Subproperty that uses this filter. * * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $apply_to_property = null; + private $apply_to_property = null; /** * Required. Unordered list. Filter clauses that define the * SubpropertyEventFilter. All clauses are AND'ed together to determine what diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php index 6b72ca9d1f44..d6a41038a0bd 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php @@ -23,14 +23,14 @@ class SubpropertyEventFilterClause extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $filter_clause_type = 0; + private $filter_clause_type = 0; /** * Required. The logical expression for what events are sent to the * subproperty. * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $filter_expression = null; + private $filter_expression = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php index ddec2d765ae3..a71098593ff9 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php @@ -20,7 +20,7 @@ class SubpropertyEventFilterCondition extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $field_name = ''; + private $field_name = ''; protected $one_filter; /** diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php index 0ef40e1b4af1..c7e1c7bfe983 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php @@ -20,20 +20,20 @@ class StringFilter extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $match_type = 0; + private $match_type = 0; /** * Required. The string value used for the matching. * * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $value = ''; + private $value = ''; /** * Optional. If true, the string value is case sensitive. If false, the * match is case-insensitive. * * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - protected $case_sensitive = false; + private $case_sensitive = false; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpression.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpression.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpressionList.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php rename to AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpressionList.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php rename to AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php index 6b84a308aae6..b9d686d2db4a 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php @@ -21,7 +21,7 @@ class UpdateDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $data_redaction_settings = null; + private $data_redaction_settings = null; /** * Required. The list of fields to be updated. Field names must be in snake * case (e.g., "field_to_update"). Omitted fields will not be updated. To @@ -30,7 +30,7 @@ class UpdateDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $update_mask = null; + private $update_mask = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateSubpropertyEventFilterRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php rename to AnalyticsAdmin/src/V1alpha/UpdateSubpropertyEventFilterRequest.php index df97940e61cf..7ee58c4bdf1a 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateSubpropertyEventFilterRequest.php @@ -20,7 +20,7 @@ class UpdateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Mess * * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $subproperty_event_filter = null; + private $subproperty_event_filter = null; /** * Required. The list of fields to update. Field names must be in snake case * (for example, "field_to_update"). Omitted fields will not be updated. To @@ -29,7 +29,7 @@ class UpdateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Mess * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $update_mask = null; + private $update_mask = null; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json index c3d294c473d0..9c36224be4b8 100644 --- a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json +++ b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json @@ -35,51 +35,26 @@ "archiveCustomMetric" ] }, - "AuditUserLinks": { - "methods": [ - "auditUserLinks" - ] - }, "BatchCreateAccessBindings": { "methods": [ "batchCreateAccessBindings" ] }, - "BatchCreateUserLinks": { - "methods": [ - "batchCreateUserLinks" - ] - }, "BatchDeleteAccessBindings": { "methods": [ "batchDeleteAccessBindings" ] }, - "BatchDeleteUserLinks": { - "methods": [ - "batchDeleteUserLinks" - ] - }, "BatchGetAccessBindings": { "methods": [ "batchGetAccessBindings" ] }, - "BatchGetUserLinks": { - "methods": [ - "batchGetUserLinks" - ] - }, "BatchUpdateAccessBindings": { "methods": [ "batchUpdateAccessBindings" ] }, - "BatchUpdateUserLinks": { - "methods": [ - "batchUpdateUserLinks" - ] - }, "CancelDisplayVideo360AdvertiserLinkProposal": { "methods": [ "cancelDisplayVideo360AdvertiserLinkProposal" @@ -170,6 +145,16 @@ "createProperty" ] }, + "CreateRollupProperty": { + "methods": [ + "createRollupProperty" + ] + }, + "CreateRollupPropertySourceLink": { + "methods": [ + "createRollupPropertySourceLink" + ] + }, "CreateSKAdNetworkConversionValueSchema": { "methods": [ "createSKAdNetworkConversionValueSchema" @@ -180,9 +165,14 @@ "createSearchAds360Link" ] }, - "CreateUserLink": { + "CreateSubproperty": { + "methods": [ + "createSubproperty" + ] + }, + "CreateSubpropertyEventFilter": { "methods": [ - "createUserLink" + "createSubpropertyEventFilter" ] }, "DeleteAccessBinding": { @@ -260,6 +250,11 @@ "deleteProperty" ] }, + "DeleteRollupPropertySourceLink": { + "methods": [ + "deleteRollupPropertySourceLink" + ] + }, "DeleteSKAdNetworkConversionValueSchema": { "methods": [ "deleteSKAdNetworkConversionValueSchema" @@ -270,9 +265,9 @@ "deleteSearchAds360Link" ] }, - "DeleteUserLink": { + "DeleteSubpropertyEventFilter": { "methods": [ - "deleteUserLink" + "deleteSubpropertyEventFilter" ] }, "FetchAutomatedGa4ConfigurationOptOut": { @@ -335,6 +330,11 @@ "getCustomMetric" ] }, + "GetDataRedactionSettings": { + "methods": [ + "getDataRedactionSettings" + ] + }, "GetDataRetentionSettings": { "methods": [ "getDataRetentionSettings" @@ -395,6 +395,11 @@ "getProperty" ] }, + "GetRollupPropertySourceLink": { + "methods": [ + "getRollupPropertySourceLink" + ] + }, "GetSKAdNetworkConversionValueSchema": { "methods": [ "getSKAdNetworkConversionValueSchema" @@ -405,11 +410,6 @@ "getSearchAds360Link" ] }, - "GetUserLink": { - "methods": [ - "getUserLink" - ] - }, "ListAccessBindings": { "methods": [ "listAccessBindings" @@ -510,6 +510,11 @@ "listProperties" ] }, + "ListRollupPropertySourceLinks": { + "methods": [ + "listRollupPropertySourceLinks" + ] + }, "ListSKAdNetworkConversionValueSchemas": { "methods": [ "listSKAdNetworkConversionValueSchemas" @@ -520,11 +525,6 @@ "listSearchAds360Links" ] }, - "ListUserLinks": { - "methods": [ - "listUserLinks" - ] - }, "ProvisionAccountTicket": { "methods": [ "provisionAccountTicket" @@ -585,6 +585,11 @@ "updateCustomMetric" ] }, + "UpdateDataRedactionSettings": { + "methods": [ + "updateDataRedactionSettings" + ] + }, "UpdateDataRetentionSettings": { "methods": [ "updateDataRetentionSettings" @@ -644,11 +649,6 @@ "methods": [ "updateSearchAds360Link" ] - }, - "UpdateUserLink": { - "methods": [ - "updateUserLink" - ] } } } diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json index 7f53fb8079a0..3355e5091af3 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json @@ -64,51 +64,26 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "AuditUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchCreateAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchCreateUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchDeleteAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchDeleteUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchGetAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchGetUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchUpdateAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchUpdateUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "CancelDisplayVideo360AdvertiserLinkProposal": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -199,6 +174,16 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, + "CreateRollupProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "CreateSKAdNetworkConversionValueSchema": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -209,10 +194,15 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "CreateUserLink": { + "CreateSubproperty": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateSubpropertyEventFilter": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "DeleteAccessBinding": { "timeout_millis": 60000, @@ -289,6 +279,11 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, + "DeleteRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "DeleteSKAdNetworkConversionValueSchema": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -299,10 +294,10 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "DeleteUserLink": { + "DeleteSubpropertyEventFilter": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "FetchAutomatedGa4ConfigurationOptOut": { "timeout_millis": 60000, @@ -364,6 +359,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "GetDataRedactionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "GetDataRetentionSettings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -424,20 +424,20 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, - "GetSKAdNetworkConversionValueSchema": { + "GetRollupPropertySourceLink": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "GetSearchAds360Link": { + "GetSKAdNetworkConversionValueSchema": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "GetUserLink": { + "GetSearchAds360Link": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "ListAccessBindings": { "timeout_millis": 60000, @@ -539,20 +539,20 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, - "ListSKAdNetworkConversionValueSchemas": { + "ListRollupPropertySourceLinks": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "ListSearchAds360Links": { + "ListSKAdNetworkConversionValueSchemas": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "ListUserLinks": { + "ListSearchAds360Links": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "ProvisionAccountTicket": { "timeout_millis": 60000, @@ -614,6 +614,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "UpdateDataRedactionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "UpdateDataRetentionSettings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -673,11 +678,6 @@ "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" - }, - "UpdateUserLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" } } } diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php index 69de8acb8558..5d77d02ca3fc 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php @@ -3,16 +3,6 @@ return [ 'interfaces' => [ 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'AuditUserLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUserLinks', - ], - ], 'ListAccessBindings' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -203,34 +193,34 @@ 'resourcesGetMethod' => 'getProperties', ], ], - 'ListSKAdNetworkConversionValueSchemas' => [ + 'ListRollupPropertySourceLinks' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', + 'resourcesGetMethod' => 'getRollupPropertySourceLinks', ], ], - 'ListSearchAds360Links' => [ + 'ListSKAdNetworkConversionValueSchemas' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchAds360Links', + 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', ], ], - 'ListUserLinks' => [ + 'ListSearchAds360Links' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUserLinks', + 'resourcesGetMethod' => 'getSearchAds360Links', ], ], 'SearchChangeHistoryEvents' => [ diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php index 2810e13ed775..14a5a77eb4e0 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php @@ -63,25 +63,6 @@ ], ], ], - 'AuditUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:audit', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:audit', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchCreateAccessBindings' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchCreate', @@ -101,25 +82,6 @@ ], ], ], - 'BatchCreateUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchDeleteAccessBindings' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchDelete', @@ -139,25 +101,6 @@ ], ], ], - 'BatchDeleteUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchDelete', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchDelete', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchGetAccessBindings' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchGet', @@ -175,23 +118,6 @@ ], ], ], - 'BatchGetUserLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchGet', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchGet', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchUpdateAccessBindings' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate', @@ -211,25 +137,6 @@ ], ], ], - 'BatchUpdateUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchUpdate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchUpdate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'CancelDisplayVideo360AdvertiserLinkProposal' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel', @@ -439,6 +346,23 @@ 'uriTemplate' => '/v1alpha/properties', 'body' => 'property', ], + 'CreateRollupProperty' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:createRollupProperty', + 'body' => '*', + ], + 'CreateRollupPropertySourceLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', + 'body' => 'rollup_property_source_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'CreateSKAdNetworkConversionValueSchema' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', @@ -463,17 +387,15 @@ ], ], ], - 'CreateUserLink' => [ + 'CreateSubproperty' => [ 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks', - 'body' => 'user_link', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks', - 'body' => 'user_link', - ], - ], + 'uriTemplate' => '/v1alpha/properties:createSubproperty', + 'body' => '*', + ], + 'CreateSubpropertyEventFilter' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters', + 'body' => 'subproperty_event_filter', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -647,6 +569,17 @@ ], ], ], + 'DeleteRollupPropertySourceLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'DeleteSKAdNetworkConversionValueSchema' => [ 'method' => 'delete', 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', @@ -669,15 +602,9 @@ ], ], ], - 'DeleteUserLink' => [ + 'DeleteSubpropertyEventFilter' => [ 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*/userLinks/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/userLinks/*}', - ], - ], + 'uriTemplate' => '/v1alpha/{name=properties/*/subpropertyEventFilters/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -811,6 +738,17 @@ ], ], ], + 'GetDataRedactionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'GetDataRetentionSettings' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}', @@ -943,9 +881,9 @@ ], ], ], - 'GetSKAdNetworkConversionValueSchema' => [ + 'GetRollupPropertySourceLink' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', + 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -954,9 +892,9 @@ ], ], ], - 'GetSearchAds360Link' => [ + 'GetSKAdNetworkConversionValueSchema' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -965,15 +903,9 @@ ], ], ], - 'GetUserLink' => [ + 'GetSearchAds360Link' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/userLinks/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/userLinks/*}', - ], - ], + 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -1184,9 +1116,9 @@ 'filter', ], ], - 'ListSKAdNetworkConversionValueSchemas' => [ + 'ListRollupPropertySourceLinks' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -1195,9 +1127,9 @@ ], ], ], - 'ListSearchAds360Links' => [ + 'ListSKAdNetworkConversionValueSchemas' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -1206,15 +1138,9 @@ ], ], ], - 'ListUserLinks' => [ + 'ListSearchAds360Links' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks', - ], - ], + 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -1396,6 +1322,22 @@ 'update_mask', ], ], + 'UpdateDataRedactionSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}', + 'body' => 'data_redaction_settings', + 'placeholders' => [ + 'data_redaction_settings.name' => [ + 'getters' => [ + 'getDataRedactionSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], 'UpdateDataRetentionSettings' => [ 'method' => 'patch', 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}', @@ -1588,26 +1530,6 @@ 'update_mask', ], ], - 'UpdateUserLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{user_link.name=accounts/*/userLinks/*}', - 'body' => 'user_link', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{user_link.name=properties/*/userLinks/*}', - 'body' => 'user_link', - ], - ], - 'placeholders' => [ - 'user_link.name' => [ - 'getters' => [ - 'getUserLink', - 'getName', - ], - ], - ], - ], ], ], 'numericEnums' => true, diff --git a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php index 91aafdb77c48..144b89202e2c 100644 --- a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php +++ b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php @@ -35,25 +35,23 @@ use Google\Analytics\Admin\V1alpha\AttributionSettings\OtherConversionEventLookbackWindow; use Google\Analytics\Admin\V1alpha\AttributionSettings\ReportingAttributionModel; use Google\Analytics\Admin\V1alpha\Audience; -use Google\Analytics\Admin\V1alpha\AuditUserLink; -use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BigQueryLink; use Google\Analytics\Admin\V1alpha\ChangeHistoryEvent; use Google\Analytics\Admin\V1alpha\ChannelGroup; use Google\Analytics\Admin\V1alpha\ConnectedSiteTag; use Google\Analytics\Admin\V1alpha\ConversionEvent; use Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagResponse; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse; +use Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse; use Google\Analytics\Admin\V1alpha\CustomDimension; use Google\Analytics\Admin\V1alpha\CustomDimension\DimensionScope; use Google\Analytics\Admin\V1alpha\CustomMetric; use Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit; use Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope; +use Google\Analytics\Admin\V1alpha\DataRedactionSettings; use Google\Analytics\Admin\V1alpha\DataRetentionSettings; use Google\Analytics\Admin\V1alpha\DataSharingSettings; use Google\Analytics\Admin\V1alpha\DataStream; @@ -89,19 +87,20 @@ use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse; use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse; use Google\Analytics\Admin\V1alpha\ListPropertiesResponse; +use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksResponse; use Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasResponse; use Google\Analytics\Admin\V1alpha\ListSearchAds360LinksResponse; -use Google\Analytics\Admin\V1alpha\ListUserLinksResponse; use Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret; use Google\Analytics\Admin\V1alpha\PostbackWindow; use Google\Analytics\Admin\V1alpha\Property; use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse; +use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink; use Google\Analytics\Admin\V1alpha\RunAccessReportResponse; use Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema; use Google\Analytics\Admin\V1alpha\SearchAds360Link; use Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsResponse; use Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse; -use Google\Analytics\Admin\V1alpha\UserLink; +use Google\Analytics\Admin\V1alpha\SubpropertyEventFilter; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; @@ -430,74 +429,6 @@ public function archiveCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function auditUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $userLinksElement = new AuditUserLink(); - $userLinks = [ - $userLinksElement, - ]; - $expectedResponse = new AuditUserLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setUserLinks($userLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->auditUserLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getUserLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AuditUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function auditUserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->auditUserLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - /** @test */ public function batchCreateAccessBindingsTest() { @@ -560,68 +491,6 @@ public function batchCreateAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchCreateUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchCreateUserLinks($formattedParent, $requests); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateUserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchCreateUserLinks($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - /** @test */ public function batchDeleteAccessBindingsTest() { @@ -683,67 +552,6 @@ public function batchDeleteAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchDeleteUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $gapicClient->batchDeleteUserLinks($formattedParent, $requests); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteUserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchDeleteUserLinks($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - /** @test */ public function batchGetAccessBindingsTest() { @@ -810,72 +618,6 @@ public function batchGetAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchGetUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'), - ]; - $response = $gapicClient->batchGetUserLinks($formattedParent, $formattedNames); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetUserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'), - ]; - try { - $gapicClient->batchGetUserLinks($formattedParent, $formattedNames); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - /** @test */ public function batchUpdateAccessBindingsTest() { @@ -938,68 +680,6 @@ public function batchUpdateAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchUpdateUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchUpdateUserLinks($formattedParent, $requests); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateUserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchUpdateUserLinks($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - /** @test */ public function cancelDisplayVideo360AdvertiserLinkProposalTest() { @@ -2312,6 +1992,138 @@ public function createPropertyExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function createRollupPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CreateRollupPropertyResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $rollupProperty = new Property(); + $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; + $rollupProperty->setDisplayName($rollupPropertyDisplayName); + $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; + $rollupProperty->setTimeZone($rollupPropertyTimeZone); + $response = $gapicClient->createRollupProperty($rollupProperty); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getRollupProperty(); + $this->assertProtobufEquals($rollupProperty, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $rollupProperty = new Property(); + $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; + $rollupProperty->setDisplayName($rollupPropertyDisplayName); + $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; + $rollupProperty->setTimeZone($rollupPropertyTimeZone); + try { + $gapicClient->createRollupProperty($rollupProperty); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $sourceProperty = 'sourceProperty2069271929'; + $expectedResponse = new RollupPropertySourceLink(); + $expectedResponse->setName($name); + $expectedResponse->setSourceProperty($sourceProperty); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $rollupPropertySourceLink = new RollupPropertySourceLink(); + $response = $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRollupPropertySourceLink(); + $this->assertProtobufEquals($rollupPropertySourceLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertySourceLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $rollupPropertySourceLink = new RollupPropertySourceLink(); + try { + $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function createSKAdNetworkConversionValueSchemaTest() { @@ -2451,7 +2263,77 @@ public function createSearchAds360LinkExceptionTest() } /** @test */ - public function createUserLinkTest() + public function createSubpropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CreateSubpropertyResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subproperty = new Property(); + $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; + $subproperty->setDisplayName($subpropertyDisplayName); + $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; + $subproperty->setTimeZone($subpropertyTimeZone); + $response = $gapicClient->createSubproperty($formattedParent, $subproperty); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getSubproperty(); + $this->assertProtobufEquals($subproperty, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSubpropertyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subproperty = new Property(); + $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; + $subproperty->setDisplayName($subpropertyDisplayName); + $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; + $subproperty->setTimeZone($subpropertyTimeZone); + try { + $gapicClient->createSubproperty($formattedParent, $subproperty); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createSubpropertyEventFilterTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2460,30 +2342,32 @@ public function createUserLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); + $applyToProperty = 'applyToProperty-1639692344'; + $expectedResponse = new SubpropertyEventFilter(); $expectedResponse->setName($name); - $expectedResponse->setEmailAddress($emailAddress); + $expectedResponse->setApplyToProperty($applyToProperty); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $userLink = new UserLink(); - $response = $gapicClient->createUserLink($formattedParent, $userLink); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subpropertyEventFilter = new SubpropertyEventFilter(); + $subpropertyEventFilterFilterClauses = []; + $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); + $response = $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserLink(); - $this->assertProtobufEquals($userLink, $actualValue); + $actualValue = $actualRequestObject->getSubpropertyEventFilter(); + $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function createUserLinkExceptionTest() + public function createSubpropertyEventFilterExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2501,10 +2385,12 @@ public function createUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $userLink = new UserLink(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subpropertyEventFilter = new SubpropertyEventFilter(); + $subpropertyEventFilterFilterClauses = []; + $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); try { - $gapicClient->createUserLink($formattedParent, $userLink); + $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3378,6 +3264,63 @@ public function deletePropertyExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function deleteRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + $gapicClient->deleteRollupPropertySourceLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRollupPropertySourceLinkExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + try { + $gapicClient->deleteRollupPropertySourceLink($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function deleteSKAdNetworkConversionValueSchemaTest() { @@ -3493,7 +3436,7 @@ public function deleteSearchAds360LinkExceptionTest() } /** @test */ - public function deleteUserLinkTest() + public function deleteSubpropertyEventFilterTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3504,20 +3447,20 @@ public function deleteUserLinkTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - $gapicClient->deleteUserLink($formattedName); + $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + $gapicClient->deleteSubpropertyEventFilter($formattedName); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function deleteUserLinkExceptionTest() + public function deleteSubpropertyEventFilterExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3535,9 +3478,9 @@ public function deleteUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); + $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); try { - $gapicClient->deleteUserLink($formattedName); + $gapicClient->deleteSubpropertyEventFilter($formattedName); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4323,6 +4266,70 @@ public function getCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function getDataRedactionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $emailRedactionEnabled = true; + $queryParameterRedactionEnabled = true; + $expectedResponse = new DataRedactionSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); + $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getDataRedactionSettings($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRedactionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getDataRedactionSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function getDataRetentionSettingsTest() { @@ -5112,7 +5119,7 @@ public function getPropertyExceptionTest() } /** @test */ - public function getSKAdNetworkConversionValueSchemaTest() + public function getRollupPropertySourceLinkTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5121,27 +5128,27 @@ public function getSKAdNetworkConversionValueSchemaTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); + $sourceProperty = 'sourceProperty2069271929'; + $expectedResponse = new RollupPropertySourceLink(); $expectedResponse->setName($name2); - $expectedResponse->setApplyConversionValues($applyConversionValues); + $expectedResponse->setSourceProperty($sourceProperty); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $response = $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + $response = $gapicClient->getRollupPropertySourceLink($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getSKAdNetworkConversionValueSchemaExceptionTest() + public function getRollupPropertySourceLinkExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5159,9 +5166,9 @@ public function getSKAdNetworkConversionValueSchemaExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); try { - $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); + $gapicClient->getRollupPropertySourceLink($formattedName); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -5174,7 +5181,7 @@ public function getSKAdNetworkConversionValueSchemaExceptionTest() } /** @test */ - public function getSearchAds360LinkTest() + public function getSKAdNetworkConversionValueSchemaTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5183,29 +5190,27 @@ public function getSearchAds360LinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); + $applyConversionValues = true; + $expectedResponse = new SKAdNetworkConversionValueSchema(); $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setApplyConversionValues($applyConversionValues); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $response = $gapicClient->getSearchAds360Link($formattedName); + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + $response = $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getSearchAds360LinkExceptionTest() + public function getSKAdNetworkConversionValueSchemaExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5223,9 +5228,9 @@ public function getSearchAds360LinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); try { - $gapicClient->getSearchAds360Link($formattedName); + $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -5238,7 +5243,7 @@ public function getSearchAds360LinkExceptionTest() } /** @test */ - public function getUserLinkTest() + public function getSearchAds360LinkTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5247,27 +5252,29 @@ public function getUserLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new SearchAds360Link(); $expectedResponse->setName($name2); - $expectedResponse->setEmailAddress($emailAddress); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - $response = $gapicClient->getUserLink($formattedName); + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + $response = $gapicClient->getSearchAds360Link($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getUserLinkExceptionTest() + public function getSearchAds360LinkExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5285,9 +5292,9 @@ public function getUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); try { - $gapicClient->getUserLink($formattedName); + $gapicClient->getSearchAds360Link($formattedName); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -6632,7 +6639,7 @@ public function listPropertiesExceptionTest() } /** @test */ - public function listSKAdNetworkConversionValueSchemasTest() + public function listRollupPropertySourceLinksTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6641,33 +6648,33 @@ public function listSKAdNetworkConversionValueSchemasTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemas = [ - $skadnetworkConversionValueSchemasElement, + $rollupPropertySourceLinksElement = new RollupPropertySourceLink(); + $rollupPropertySourceLinks = [ + $rollupPropertySourceLinksElement, ]; - $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); + $expectedResponse = new ListRollupPropertySourceLinksResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); + $expectedResponse->setRollupPropertySourceLinks($rollupPropertySourceLinks); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listRollupPropertySourceLinks($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); + $this->assertEquals($expectedResponse->getRollupPropertySourceLinks()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listSKAdNetworkConversionValueSchemasExceptionTest() + public function listRollupPropertySourceLinksExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6685,9 +6692,9 @@ public function listSKAdNetworkConversionValueSchemasExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); try { - $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); + $gapicClient->listRollupPropertySourceLinks($formattedParent); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -6700,7 +6707,7 @@ public function listSKAdNetworkConversionValueSchemasExceptionTest() } /** @test */ - public function listSearchAds360LinksTest() + public function listSKAdNetworkConversionValueSchemasTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6709,33 +6716,33 @@ public function listSearchAds360LinksTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $searchAds360LinksElement = new SearchAds360Link(); - $searchAds360Links = [ - $searchAds360LinksElement, + $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemas = [ + $skadnetworkConversionValueSchemasElement, ]; - $expectedResponse = new ListSearchAds360LinksResponse(); + $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchAds360Links($searchAds360Links); + $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listSearchAds360Links($formattedParent); + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); + $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listSearchAds360LinksExceptionTest() + public function listSKAdNetworkConversionValueSchemasExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6753,9 +6760,9 @@ public function listSearchAds360LinksExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); try { - $gapicClient->listSearchAds360Links($formattedParent); + $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -6768,7 +6775,7 @@ public function listSearchAds360LinksExceptionTest() } /** @test */ - public function listUserLinksTest() + public function listSearchAds360LinksTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6777,33 +6784,33 @@ public function listUserLinksTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $userLinksElement = new UserLink(); - $userLinks = [ - $userLinksElement, + $searchAds360LinksElement = new SearchAds360Link(); + $searchAds360Links = [ + $searchAds360LinksElement, ]; - $expectedResponse = new ListUserLinksResponse(); + $expectedResponse = new ListSearchAds360LinksResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setUserLinks($userLinks); + $expectedResponse->setSearchAds360Links($searchAds360Links); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->listUserLinks($formattedParent); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listSearchAds360Links($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getUserLinks()[0], $resources[0]); + $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListUserLinks', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listUserLinksExceptionTest() + public function listSearchAds360LinksExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6821,9 +6828,9 @@ public function listUserLinksExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); try { - $gapicClient->listUserLinks($formattedParent); + $gapicClient->listSearchAds360Links($formattedParent); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -7655,6 +7662,74 @@ public function updateCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function updateDataRedactionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $emailRedactionEnabled = true; + $queryParameterRedactionEnabled = true; + $expectedResponse = new DataRedactionSettings(); + $expectedResponse->setName($name); + $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); + $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $dataRedactionSettings = new DataRedactionSettings(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getDataRedactionSettings(); + $this->assertProtobufEquals($dataRedactionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRedactionSettingsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $dataRedactionSettings = new DataRedactionSettings(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function updateDataRetentionSettingsTest() { @@ -8500,66 +8575,4 @@ public function updateSearchAds360LinkExceptionTest() $transport->popReceivedCalls(); $this->assertTrue($transport->isExhausted()); } - - /** @test */ - public function updateUserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); - $expectedResponse->setName($name); - $expectedResponse->setEmailAddress($emailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $userLink = new UserLink(); - $response = $gapicClient->updateUserLink($userLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateUserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUserLink(); - $this->assertProtobufEquals($userLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateUserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $userLink = new UserLink(); - try { - $gapicClient->updateUserLink($userLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } } diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php deleted file mode 100644 index 1eb5b5e489439d98d844373b9fc6170db7d421f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3944 zcmbuCQFGfw5Xb8{3Gv!--7C$6FfgiGrs+&^rf#P&NfVG0HFj}q*LFf-%xGl!>(e};Fhva9qOBm zc9qUpVaHVQe3!YFJ5V~KUXS{UfU;?A4TNt)=LD<J_Gus^4KVoRx zO3xew6ai;#dn3nUw(BT-LCvw~`dvjbx$SMwMJcwGiEDMP4l2_wJB<41XM2wZmT!B^ z_3LQ5x!I>I(v<(QemC5fafI5;D$aW_m z2G8?qLP@Nr)LW2|rkHNuw#aoz55<3Rqfa6p)?~wU`jij=l+0%amPp7VIas1jSN<|5 z=zq<@io|2|m>T^D&&RUk4%HxKqH*7MN1pH{UD(Y3e_Z+VQ58F2r7NTgORgXC`0j7Z zt3%dtnL#6$SCfMJ=yG17hdL~q^4Rr+8msdHc<&;>(v@NkvaUm8j;S`Ryfdvdf{__T`f`Ak!Giu=+im3%H_xq~99AkuL*Lh**K-TlXR>vz(JE`v zZ;R^Vi7fGalPoNXAY_H7&WVCYx1|0t2iK*lrxJ{^rd*HTy4amWL&_GmXH)eQCtsUD z$W~m|bm5KXJmehlR0y%BsQ2JTt*$q;R=HL^N9$*YS_QR6X)AiOX|zgO6_s8A5`7xA zhM^0yB=+gdenZzy6U4`VnHn#sza}Pfoho4RIhL>Q4h>m2{4%*aH_ zP2*w;J%vnMF>(Xac<(-X7;`C!J!J(lT^AoBG`3X&+h`i|jb}~xul|#SWmyz8zf1k% zm>j^Oya>a~X=}Dx2$$#ObsB!57fnb-_pdl+>B7#%h|yg>g=S#Biw_-nJlAf+@~K_V zz024BO+fBd6hAAGcd>p%+HGt|ToBo7c$Tt-(%bo+7yk3UgZEY{`XJa(YK=W!lV|%0 zR;*U3V^tp>=#BC&mikTjU{`DE2DS~o+AO!qN4jy!WR9faor!(2n1u|_whX2-RyW{= z%y*!iRpRoIKA#-a7O&!yk6PfB>heSzXy%dlpjt!%LJcX+<)G>}X;rY1)s|wdG*Re*vPaTHC&-Wu5upoTc zU4r)wr~&m)FhuJ6t}mm-Vd`6IF%h|NSH3zffj@%xW1*kn%IC+$x$38rjK+1w*E?zx z;G?H2lC?mtLCU8?6Gt$oFEn2$jzPuI^9`j|4C_VCf?_zUC%)dX2JWakS&Ed6zI$do uH9b3;Q2CVUb+*K4<8?ZV7(a6#+=)i0dvY?14RWs?;)JD~*IvR)fd2sW#q8Sv diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php deleted file mode 100644 index 07477e991b81..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php +++ /dev/null @@ -1,737 +0,0 @@ -internalAddGeneratedFile( - ' -ت -4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alpha-google/analytics/admin/v1alpha/audience.proto2google/analytics/admin/v1alpha/channel_group.proto:google/analytics/admin/v1alpha/event_create_and_edit.proto6google/analytics/admin/v1alpha/expanded_data_set.proto.google/analytics/admin/v1alpha/resources.proto=google/analytics/admin/v1alpha/subproperty_event_filter.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"à -RunAccessReportRequest -entity ( C - -dimensions ( 2/.google.analytics.admin.v1alpha.AccessDimension= -metrics ( 2,.google.analytics.admin.v1alpha.AccessMetricD - date_ranges ( 2/.google.analytics.admin.v1alpha.AccessDateRangeP -dimension_filter ( 26.google.analytics.admin.v1alpha.AccessFilterExpressionM - metric_filter ( 26.google.analytics.admin.v1alpha.AccessFilterExpression -offset ( -limit ( - time_zone ( @ - order_bys - ( 2-.google.analytics.admin.v1alpha.AccessOrderBy -return_entity_quota ( -include_all_users (BàA - expand_groups (BàA"¿ -RunAccessReportResponseP -dimension_headers ( 25.google.analytics.admin.v1alpha.AccessDimensionHeaderJ -metric_headers ( 22.google.analytics.admin.v1alpha.AccessMetricHeader7 -rows ( 2).google.analytics.admin.v1alpha.AccessRow - row_count (: -quota ( 2+.google.analytics.admin.v1alpha.AccessQuota"P -GetAccountRequest; -name ( B-àAúA\' -%analyticsadmin.googleapis.com/Account"R -ListAccountsRequest - page_size ( - -page_token (  - show_deleted ("j -ListAccountsResponse9 -accounts ( 2\'.google.analytics.admin.v1alpha.Account -next_page_token ( "S -DeleteAccountRequest; -name ( B-àAúA\' -%analyticsadmin.googleapis.com/Account"‹ -UpdateAccountRequest= -account ( 2\'.google.analytics.admin.v1alpha.AccountBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"o -ProvisionAccountTicketRequest8 -account ( 2\'.google.analytics.admin.v1alpha.Account - redirect_uri ( "; -ProvisionAccountTicketResponse -account_ticket_id ( "R -GetPropertyRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/Property"i -ListPropertiesRequest -filter ( BàA - page_size ( - -page_token (  - show_deleted ("o -ListPropertiesResponse< - -properties ( 2(.google.analytics.admin.v1alpha.Property -next_page_token ( "Ž -UpdatePropertyRequest? -property ( 2(.google.analytics.admin.v1alpha.PropertyBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"X -CreatePropertyRequest? -property ( 2(.google.analytics.admin.v1alpha.PropertyBàA"U -DeletePropertyRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/Property"© -CreateFirebaseLinkRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkH - firebase_link ( 2,.google.analytics.admin.v1alpha.FirebaseLinkBàA"] -DeleteFirebaseLinkRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/FirebaseLink"… -ListFirebaseLinksRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLink - page_size ( - -page_token ( "z -ListFirebaseLinksResponseD -firebase_links ( 2,.google.analytics.admin.v1alpha.FirebaseLink -next_page_token ( "\\ -GetGlobalSiteTagRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/GlobalSiteTag"® -CreateGoogleAdsLinkRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLinkK -google_ads_link ( 2-.google.analytics.admin.v1alpha.GoogleAdsLinkBàA"š -UpdateGoogleAdsLinkRequestF -google_ads_link ( 2-.google.analytics.admin.v1alpha.GoogleAdsLink4 - update_mask ( 2.google.protobuf.FieldMaskBàA"_ -DeleteGoogleAdsLinkRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/GoogleAdsLink"‡ -ListGoogleAdsLinksRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLink - page_size ( - -page_token ( "~ -ListGoogleAdsLinksResponseG -google_ads_links ( 2-.google.analytics.admin.v1alpha.GoogleAdsLink -next_page_token ( "h -GetDataSharingSettingsRequestG -name ( B9àAúA3 -1analyticsadmin.googleapis.com/DataSharingSettings"D -ListAccountSummariesRequest - page_size ( - -page_token ( "‚ -ListAccountSummariesResponseI -account_summaries ( 2..google.analytics.admin.v1alpha.AccountSummary -next_page_token ( "† -$AcknowledgeUserDataCollectionRequest@ -property ( B.àAúA( -&analyticsadmin.googleapis.com/Property -acknowledgement ( BàA"\' -%AcknowledgeUserDataCollectionResponse"ƒ - SearchChangeHistoryEventsRequest> -account ( B-àAúA\' -%analyticsadmin.googleapis.com/Account@ -property ( B.àAúA( -&analyticsadmin.googleapis.com/PropertyU - resource_type (29.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeBàA? -action (2*.google.analytics.admin.v1alpha.ActionTypeBàA - actor_email ( BàA= -earliest_change_time ( 2.google.protobuf.TimestampBàA; -latest_change_time ( 2.google.protobuf.TimestampBàA - page_size (BàA - -page_token ( BàA" -!SearchChangeHistoryEventsResponseQ -change_history_events ( 22.google.analytics.admin.v1alpha.ChangeHistoryEvent -next_page_token ( "t -#GetMeasurementProtocolSecretRequestM -name ( B?àAúA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret"Þ -&CreateMeasurementProtocolSecretRequestO -parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecretc -measurement_protocol_secret ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecretBàA"w -&DeleteMeasurementProtocolSecretRequestM -name ( B?àAúA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret"à -&UpdateMeasurementProtocolSecretRequestc -measurement_protocol_secret ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecretBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"Ÿ -%ListMeasurementProtocolSecretsRequestO -parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecret - page_size ( - -page_token ( "¢ -&ListMeasurementProtocolSecretsResponse_ -measurement_protocol_secrets ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecret -next_page_token ( "‚ -*GetSKAdNetworkConversionValueSchemaRequestT -name ( BFàAúA@ ->analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema"û --CreateSKAdNetworkConversionValueSchemaRequestV -parent ( BFàAúA@>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchemar -#skadnetwork_conversion_value_schema ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaBàA"… --DeleteSKAdNetworkConversionValueSchemaRequestT -name ( BFàAúA@ ->analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema"Ù --UpdateSKAdNetworkConversionValueSchemaRequestr -#skadnetwork_conversion_value_schema ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"­ -,ListSKAdNetworkConversionValueSchemasRequestV -parent ( BFàAúA@>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema - page_size ( - -page_token ( "¸ --ListSKAdNetworkConversionValueSchemasResponsen -$skadnetwork_conversion_value_schemas ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema -next_page_token ( "l -GetGoogleSignalsSettingsRequestI -name ( B;àAúA5 -3analyticsadmin.googleapis.com/GoogleSignalsSettings"· -"UpdateGoogleSignalsSettingsRequest[ -google_signals_settings ( 25.google.analytics.admin.v1alpha.GoogleSignalsSettingsBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"µ -CreateConversionEventRequestN -conversion_event ( 2/.google.analytics.admin.v1alpha.ConversionEventBàAE -parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent"¤ -UpdateConversionEventRequestN -conversion_event ( 2/.google.analytics.admin.v1alpha.ConversionEventBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"` -GetConversionEventRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/ConversionEvent"c -DeleteConversionEventRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/ConversionEvent"‹ -ListConversionEventsRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent - page_size ( - -page_token ( "ƒ -ListConversionEventsResponseJ -conversion_events ( 2/.google.analytics.admin.v1alpha.ConversionEvent -next_page_token ( "| -\'GetDisplayVideo360AdvertiserLinkRequestQ -name ( BCàAúA= -;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink"§ -)ListDisplayVideo360AdvertiserLinksRequestS -parent ( BCàAúA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink - page_size ( - -page_token ( "° -*ListDisplayVideo360AdvertiserLinksResponsei -"display_video_360_advertiser_links ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink -next_page_token ( "ð -*CreateDisplayVideo360AdvertiserLinkRequestS -parent ( BCàAúA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkm -!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkBàA" -*DeleteDisplayVideo360AdvertiserLinkRequestQ -name ( BCàAúA= -;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink"Ì -*UpdateDisplayVideo360AdvertiserLinkRequesth -!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink4 - update_mask ( 2.google.protobuf.FieldMaskBàA"Œ -/GetDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKàAúAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"· -1ListDisplayVideo360AdvertiserLinkProposalsRequest[ -parent ( BKàAúAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal - page_size ( - -page_token ( "É -2ListDisplayVideo360AdvertiserLinkProposalsResponsez -+display_video_360_advertiser_link_proposals ( 2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal -next_page_token ( "‘ -2CreateDisplayVideo360AdvertiserLinkProposalRequest[ -parent ( BKàAúAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal~ -*display_video_360_advertiser_link_proposal ( 2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalBàA" -2DeleteDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKàAúAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" -3ApproveDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKàAúAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"  -4ApproveDisplayVideo360AdvertiserLinkProposalResponseh -!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" -2CancelDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKàAúAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"b -GetSearchAds360LinkRequestD -name ( B6àAúA0 -.analyticsadmin.googleapis.com/SearchAds360Link" -ListSearchAds360LinksRequestF -parent ( B6àAúA0.analyticsadmin.googleapis.com/SearchAds360Link - page_size ( - -page_token ( "ˆ -ListSearchAds360LinksResponseN -search_ads_360_links ( 20.google.analytics.admin.v1alpha.SearchAds360Link -next_page_token ( "» -CreateSearchAds360LinkRequestF -parent ( B6àAúA0.analyticsadmin.googleapis.com/SearchAds360LinkR -search_ads_360_link ( 20.google.analytics.admin.v1alpha.SearchAds360LinkBàA"e -DeleteSearchAds360LinkRequestD -name ( B6àAúA0 -.analyticsadmin.googleapis.com/SearchAds360Link"¤ -UpdateSearchAds360LinkRequestM -search_ads_360_link ( 20.google.analytics.admin.v1alpha.SearchAds360Link4 - update_mask ( 2.google.protobuf.FieldMaskBàA"µ -CreateCustomDimensionRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimensionN -custom_dimension ( 2/.google.analytics.admin.v1alpha.CustomDimensionBàA"Ÿ -UpdateCustomDimensionRequestI -custom_dimension ( 2/.google.analytics.admin.v1alpha.CustomDimension4 - update_mask ( 2.google.protobuf.FieldMaskBàA"‹ -ListCustomDimensionsRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimension - page_size ( - -page_token ( "ƒ -ListCustomDimensionsResponseJ -custom_dimensions ( 2/.google.analytics.admin.v1alpha.CustomDimension -next_page_token ( "d -ArchiveCustomDimensionRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/CustomDimension"` -GetCustomDimensionRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/CustomDimension"© -CreateCustomMetricRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetricH - custom_metric ( 2,.google.analytics.admin.v1alpha.CustomMetricBàA"– -UpdateCustomMetricRequestC - custom_metric ( 2,.google.analytics.admin.v1alpha.CustomMetric4 - update_mask ( 2.google.protobuf.FieldMaskBàA"… -ListCustomMetricsRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetric - page_size ( - -page_token ( "z -ListCustomMetricsResponseD -custom_metrics ( 2,.google.analytics.admin.v1alpha.CustomMetric -next_page_token ( "^ -ArchiveCustomMetricRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/CustomMetric"Z -GetCustomMetricRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/CustomMetric"l -GetDataRetentionSettingsRequestI -name ( B;àAúA5 -3analyticsadmin.googleapis.com/DataRetentionSettings"· -"UpdateDataRetentionSettingsRequest[ -data_retention_settings ( 25.google.analytics.admin.v1alpha.DataRetentionSettingsBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"¡ -CreateDataStreamRequest@ -parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStreamD - data_stream ( 2*.google.analytics.admin.v1alpha.DataStreamBàA"Y -DeleteDataStreamRequest> -name ( B0àAúA* -(analyticsadmin.googleapis.com/DataStream" -UpdateDataStreamRequest? - data_stream ( 2*.google.analytics.admin.v1alpha.DataStream4 - update_mask ( 2.google.protobuf.FieldMaskBàA" -ListDataStreamsRequest@ -parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStream - page_size ( - -page_token ( "t -ListDataStreamsResponse@ - data_streams ( 2*.google.analytics.admin.v1alpha.DataStream -next_page_token ( "V -GetDataStreamRequest> -name ( B0àAúA* -(analyticsadmin.googleapis.com/DataStream"R -GetAudienceRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/Audience"} -ListAudiencesRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/Audience - page_size ( - -page_token ( "m -ListAudiencesResponse; - audiences ( 2(.google.analytics.admin.v1alpha.Audience -next_page_token ( "˜ -CreateAudienceRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/Audience? -audience ( 2(.google.analytics.admin.v1alpha.AudienceBàA"Ž -UpdateAudienceRequest? -audience ( 2(.google.analytics.admin.v1alpha.AudienceBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"V -ArchiveAudienceRequest< -name ( B.àAúA(&analyticsadmin.googleapis.com/Audience"h -GetAttributionSettingsRequestG -name ( B9àAúA3 -1analyticsadmin.googleapis.com/AttributionSettings"° - UpdateAttributionSettingsRequestV -attribution_settings ( 23.google.analytics.admin.v1alpha.AttributionSettingsBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"\\ -GetAccessBindingRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/AccessBinding"¨ -BatchGetAccessBindingsRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingB -names ( B3àAúA- -+analyticsadmin.googleapis.com/AccessBinding"h -BatchGetAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"‡ -ListAccessBindingsRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBinding - page_size ( - -page_token ( "} -ListAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding -next_page_token ( "­ -CreateAccessBindingRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingJ -access_binding ( 2-.google.analytics.admin.v1alpha.AccessBindingBàA"º - BatchCreateAccessBindingsRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingQ -requests ( 2:.google.analytics.admin.v1alpha.CreateAccessBindingRequestBàA"k -!BatchCreateAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"h -UpdateAccessBindingRequestJ -access_binding ( 2-.google.analytics.admin.v1alpha.AccessBindingBàA"º - BatchUpdateAccessBindingsRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingQ -requests ( 2:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestBàA"k -!BatchUpdateAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"_ -DeleteAccessBindingRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/AccessBinding"º - BatchDeleteAccessBindingsRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/AccessBindingQ -requests ( 2:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestBàA"¶ -CreateExpandedDataSetRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/ExpandedDataSetO -expanded_data_set ( 2/.google.analytics.admin.v1alpha.ExpandedDataSetBàA"¥ -UpdateExpandedDataSetRequestO -expanded_data_set ( 2/.google.analytics.admin.v1alpha.ExpandedDataSetBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"c -DeleteExpandedDataSetRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/ExpandedDataSet"` -GetExpandedDataSetRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/ExpandedDataSet"‹ -ListExpandedDataSetsRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/ExpandedDataSet - page_size ( - -page_token ( "„ -ListExpandedDataSetsResponseK -expanded_data_sets ( 2/.google.analytics.admin.v1alpha.ExpandedDataSet -next_page_token ( "© -CreateChannelGroupRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/ChannelGroupH - channel_group ( 2,.google.analytics.admin.v1alpha.ChannelGroupBàA"› -UpdateChannelGroupRequestH - channel_group ( 2,.google.analytics.admin.v1alpha.ChannelGroupBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"] -DeleteChannelGroupRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/ChannelGroup"Z -GetChannelGroupRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/ChannelGroup"… -ListChannelGroupsRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/ChannelGroup - page_size ( - -page_token ( "z -ListChannelGroupsResponseD -channel_groups ( 2,.google.analytics.admin.v1alpha.ChannelGroup -next_page_token ( "S -)SetAutomatedGa4ConfigurationOptOutRequest -property ( BàA -opt_out (", -*SetAutomatedGa4ConfigurationOptOutResponse"D -+FetchAutomatedGa4ConfigurationOptOutRequest -property ( BàA"? -,FetchAutomatedGa4ConfigurationOptOutResponse -opt_out ("Z -GetBigQueryLinkRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/BigQueryLink"… -ListBigQueryLinksRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/BigQueryLink - page_size ( - -page_token ( "z -ListBigQueryLinksResponseD -bigquery_links ( 2,.google.analytics.admin.v1alpha.BigQueryLink -next_page_token ( "x -%GetEnhancedMeasurementSettingsRequestO -name ( BAàAúA; -9analyticsadmin.googleapis.com/EnhancedMeasurementSettings"É -(UpdateEnhancedMeasurementSettingsRequestg -enhanced_measurement_settings ( 2;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"l -GetDataRedactionSettingsRequestI -name ( B;àAúA5 -3analyticsadmin.googleapis.com/DataRedactionSettings"· -"UpdateDataRedactionSettingsRequest[ -data_redaction_settings ( 25.google.analytics.admin.v1alpha.DataRedactionSettingsBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"„ -CreateConnectedSiteTagRequest -property ( Q -connected_site_tag ( 20.google.analytics.admin.v1alpha.ConnectedSiteTagBàA" -CreateConnectedSiteTagResponse"A -DeleteConnectedSiteTagRequest -property (  -tag_id ( "0 -ListConnectedSiteTagsRequest -property ( "n -ListConnectedSiteTagsResponseM -connected_site_tags ( 20.google.analytics.admin.v1alpha.ConnectedSiteTag"¥ -CreateAdSenseLinkRequestA -parent ( B1àAúA+)analyticsadmin.googleapis.com/AdSenseLinkF - adsense_link ( 2+.google.analytics.admin.v1alpha.AdSenseLinkBàA"X -GetAdSenseLinkRequest? -name ( B1àAúA+ -)analyticsadmin.googleapis.com/AdSenseLink"[ -DeleteAdSenseLinkRequest? -name ( B1àAúA+ -)analyticsadmin.googleapis.com/AdSenseLink"ƒ -ListAdSenseLinksRequestA -parent ( B1àAúA+)analyticsadmin.googleapis.com/AdSenseLink - page_size ( - -page_token ( "w -ListAdSenseLinksResponseB - adsense_links ( 2+.google.analytics.admin.v1alpha.AdSenseLink -next_page_token ( "d - FetchConnectedGa4PropertyRequest@ -property ( B.àAúA( -&analyticsadmin.googleapis.com/Property"b -!FetchConnectedGa4PropertyResponse= -property ( B+úA( -&analyticsadmin.googleapis.com/Property"¶ -CreateEventCreateRuleRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/EventCreateRuleO -event_create_rule ( 2/.google.analytics.admin.v1alpha.EventCreateRuleBàA"¥ -UpdateEventCreateRuleRequestO -event_create_rule ( 2/.google.analytics.admin.v1alpha.EventCreateRuleBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"c -DeleteEventCreateRuleRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/EventCreateRule"` -GetEventCreateRuleRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/EventCreateRule"‹ -ListEventCreateRulesRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/EventCreateRule - page_size ( - -page_token ( "„ -ListEventCreateRulesResponseK -event_create_rules ( 2/.google.analytics.admin.v1alpha.EventCreateRule -next_page_token ( "… -CreateRollupPropertyRequestF -rollup_property ( 2(.google.analytics.admin.v1alpha.PropertyBàA -source_properties ( BàA"Á -CreateRollupPropertyResponseA -rollup_property ( 2(.google.analytics.admin.v1alpha.Property^ -rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink"r -"GetRollupPropertySourceLinkRequestL -name ( B>àAúA8 -6analyticsadmin.googleapis.com/RollupPropertySourceLink"§ -$ListRollupPropertySourceLinksRequestN -parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLink - page_size (BàA - -page_token ( BàA"  -%ListRollupPropertySourceLinksResponse^ -rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink -next_page_token ( "Û -%CreateRollupPropertySourceLinkRequestN -parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLinkb -rollup_property_source_link ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLinkBàA"u -%DeleteRollupPropertySourceLinkRequestL -name ( B>àAúA8 -6analyticsadmin.googleapis.com/RollupPropertySourceLink"ý -CreateSubpropertyRequest> -parent ( B.àAúA( -&analyticsadmin.googleapis.com/PropertyB - subproperty ( 2(.google.analytics.admin.v1alpha.PropertyBàA] -subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"´ -CreateSubpropertyResponse= - subproperty ( 2(.google.analytics.admin.v1alpha.PropertyX -subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter"Ò -#CreateSubpropertyEventFilterRequestL -parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter] -subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"n - GetSubpropertyEventFilterRequestJ -name ( B<àAúA6 -4analyticsadmin.googleapis.com/SubpropertyEventFilter"£ -"ListSubpropertyEventFiltersRequestL -parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter - page_size (BàA - -page_token ( BàA"™ -#ListSubpropertyEventFiltersResponseY -subproperty_event_filters ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter -next_page_token ( "º -#UpdateSubpropertyEventFilterRequest] -subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"q -#DeleteSubpropertyEventFilterRequestJ -name ( B<àAúA6 -4analyticsadmin.googleapis.com/SubpropertyEventFilter2ñè -AnalyticsAdminService“ - -GetAccount1.google.analytics.admin.v1alpha.GetAccountRequest\'.google.analytics.admin.v1alpha.Account")‚Óä“/v1alpha/{name=accounts/*}ÚAname” - ListAccounts3.google.analytics.admin.v1alpha.ListAccountsRequest4.google.analytics.admin.v1alpha.ListAccountsResponse"‚Óä“/v1alpha/accountsˆ - DeleteAccount4.google.analytics.admin.v1alpha.DeleteAccountRequest.google.protobuf.Empty")‚Óä“*/v1alpha/{name=accounts/*}ÚAname¹ - UpdateAccount4.google.analytics.admin.v1alpha.UpdateAccountRequest\'.google.analytics.admin.v1alpha.Account"I‚Óä“-2"/v1alpha/{account.name=accounts/*}:accountÚAaccount,update_maskÌ -ProvisionAccountTicket=.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest>.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse"3‚Óä“-"(/v1alpha/accounts:provisionAccountTicket:*´ -ListAccountSummaries;.google.analytics.admin.v1alpha.ListAccountSummariesRequest<.google.analytics.admin.v1alpha.ListAccountSummariesResponse"!‚Óä“/v1alpha/accountSummaries˜ - GetProperty2.google.analytics.admin.v1alpha.GetPropertyRequest(.google.analytics.admin.v1alpha.Property"+‚Óä“/v1alpha/{name=properties/*}ÚAnameœ -ListProperties5.google.analytics.admin.v1alpha.ListPropertiesRequest6.google.analytics.admin.v1alpha.ListPropertiesResponse"‚Óä“/v1alpha/properties£ -CreateProperty5.google.analytics.admin.v1alpha.CreatePropertyRequest(.google.analytics.admin.v1alpha.Property"0‚Óä“"/v1alpha/properties:propertyÚApropertyž -DeleteProperty5.google.analytics.admin.v1alpha.DeletePropertyRequest(.google.analytics.admin.v1alpha.Property"+‚Óä“*/v1alpha/{name=properties/*}ÚAnameÁ -UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"N‚Óä“12%/v1alpha/{property.name=properties/*}:propertyÚAproperty,update_maskÙ -CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"Z‚Óä“=",/v1alpha/{parent=properties/*}/firebaseLinks: firebase_linkÚAparent,firebase_link¤ -DeleteFirebaseLink9.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/firebaseLinks/*}ÚAnameÇ -ListFirebaseLinks8.google.analytics.admin.v1alpha.ListFirebaseLinksRequest9.google.analytics.admin.v1alpha.ListFirebaseLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/firebaseLinksÚAparentà -GetGlobalSiteTag7.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest-.google.analytics.admin.v1alpha.GlobalSiteTag"G‚Óä“:8/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}ÚAnameá -CreateGoogleAdsLink:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest-.google.analytics.admin.v1alpha.GoogleAdsLink"_‚Óä“@"-/v1alpha/{parent=properties/*}/googleAdsLinks:google_ads_linkÚAparent,google_ads_linkö -UpdateGoogleAdsLink:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest-.google.analytics.admin.v1alpha.GoogleAdsLink"t‚Óä“P2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:google_ads_linkÚAgoogle_ads_link,update_mask§ -DeleteGoogleAdsLink:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.google.protobuf.Empty"<‚Óä“/*-/v1alpha/{name=properties/*/googleAdsLinks/*}ÚAnameË -ListGoogleAdsLinks9.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest:.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse">‚Óä“/-/v1alpha/{parent=properties/*}/googleAdsLinksÚAparentË -GetDataSharingSettings=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest3.google.analytics.admin.v1alpha.DataSharingSettings"=‚Óä“0./v1alpha/{name=accounts/*/dataSharingSettings}ÚAnameö -GetMeasurementProtocolSecretC.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"V‚Óä“IG/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}ÚAname‰ -ListMeasurementProtocolSecretsE.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestF.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse"X‚Óä“IG/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecretsÚAparent¸ -CreateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"‘‚Óä“f"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretÚA"parent,measurement_protocol_secretÙ -DeleteMeasurementProtocolSecretF.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.google.protobuf.Empty"V‚Óä“I*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}ÚAnameÚ -UpdateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"³‚Óä“‚2c/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretÚA\'measurement_protocol_secret,update_mask÷ -AcknowledgeUserDataCollectionD.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestE.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse"I‚Óä“C">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:*‘ -#GetSKAdNetworkConversionValueSchemaJ.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"\\‚Óä“OM/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}ÚAnameã -&CreateSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"§‚Óä“t"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schemaÚA*parent,skadnetwork_conversion_value_schemaí -&DeleteSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.google.protobuf.Empty"\\‚Óä“O*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}ÚAname -&UpdateSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"Ñ‚Ó䓘2q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schemaÚA/skadnetwork_conversion_value_schema,update_mask¤ -%ListSKAdNetworkConversionValueSchemasL.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequestM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse"^‚Óä“OM/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchemaÚAparentä -SearchChangeHistoryEvents@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestA.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse"B‚Óä“<"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:*Õ -GetGoogleSignalsSettings?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"A‚Óä“42/v1alpha/{name=properties/*/googleSignalsSettings}ÚAname¬ -UpdateGoogleSignalsSettingsB.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"‘‚Óä“e2J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:google_signals_settingsÚA#google_signals_settings,update_maskë -CreateConversionEvent<.google.analytics.admin.v1alpha.CreateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"c‚Óä“C"//v1alpha/{parent=properties/*}/conversionEvents:conversion_eventÚAparent,conversion_event -UpdateConversionEvent<.google.analytics.admin.v1alpha.UpdateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"y‚Óä“T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:conversion_eventÚAconversion_event,update_maskÀ -GetConversionEvent9.google.analytics.admin.v1alpha.GetConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent">‚Óä“1//v1alpha/{name=properties/*/conversionEvents/*}ÚAname­ -DeleteConversionEvent<.google.analytics.admin.v1alpha.DeleteConversionEventRequest.google.protobuf.Empty">‚Óä“1*//v1alpha/{name=properties/*/conversionEvents/*}ÚAnameÓ -ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/conversionEventsÚAparentø - GetDisplayVideo360AdvertiserLinkG.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"L‚Óä“?=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}ÚAname‹ -"ListDisplayVideo360AdvertiserLinksI.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse"N‚Óä“?=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinksÚAparentÆ -#CreateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"“‚Óä“b"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_linkÚA(parent,display_video_360_advertiser_link× -#DeleteDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}ÚAnameî -#UpdateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"»‚Óä“„2_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_linkÚA-display_video_360_advertiser_link,update_mask˜ -(GetDisplayVideo360AdvertiserLinkProposalO.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"T‚Óä“GE/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}ÚAname« -*ListDisplayVideo360AdvertiserLinkProposalsQ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequestR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse"V‚Óä“GE/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposalsÚAparentø -+CreateDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"­‚Óä“s"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposalÚA1parent,display_video_360_advertiser_link_proposalï -+DeleteDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.google.protobuf.Empty"T‚Óä“G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}ÚAname³ -,ApproveDisplayVideo360AdvertiserLinkProposalS.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequestT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse"X‚Óä“R"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:*¡ -+CancelDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"W‚Óä“Q"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:*ë -CreateCustomDimension<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"c‚Óä“C"//v1alpha/{parent=properties/*}/customDimensions:custom_dimensionÚAparent,custom_dimension -UpdateCustomDimension<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"y‚Óä“T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:custom_dimensionÚAcustom_dimension,update_maskÓ -ListCustomDimensions;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/customDimensionsÚAparentº -ArchiveCustomDimension=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.google.protobuf.Empty"I‚Óä“<"7/v1alpha/{name=properties/*/customDimensions/*}:archive:*ÚAnameÀ -GetCustomDimension9.google.analytics.admin.v1alpha.GetCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension">‚Óä“1//v1alpha/{name=properties/*/customDimensions/*}ÚAnameÙ -CreateCustomMetric9.google.analytics.admin.v1alpha.CreateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"Z‚Óä“=",/v1alpha/{parent=properties/*}/customMetrics: custom_metricÚAparent,custom_metricì -UpdateCustomMetric9.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"m‚Óä“K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}: custom_metricÚAcustom_metric,update_maskÇ -ListCustomMetrics8.google.analytics.admin.v1alpha.ListCustomMetricsRequest9.google.analytics.admin.v1alpha.ListCustomMetricsResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/customMetricsÚAparent± -ArchiveCustomMetric:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.google.protobuf.Empty"F‚Óä“9"4/v1alpha/{name=properties/*/customMetrics/*}:archive:*ÚAname´ -GetCustomMetric6.google.analytics.admin.v1alpha.GetCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric";‚Óä“.,/v1alpha/{name=properties/*/customMetrics/*}ÚAnameÕ -GetDataRetentionSettings?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"A‚Óä“42/v1alpha/{name=properties/*/dataRetentionSettings}ÚAname¬ -UpdateDataRetentionSettingsB.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"‘‚Óä“e2J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settingsÚA#data_retention_settings,update_maskÍ -CreateDataStream7.google.analytics.admin.v1alpha.CreateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"T‚Óä“9"*/v1alpha/{parent=properties/*}/dataStreams: data_streamÚAparent,data_streamž -DeleteDataStream7.google.analytics.admin.v1alpha.DeleteDataStreamRequest.google.protobuf.Empty"9‚Óä“,**/v1alpha/{name=properties/*/dataStreams/*}ÚAnameÞ -UpdateDataStream7.google.analytics.admin.v1alpha.UpdateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"e‚Óä“E26/v1alpha/{data_stream.name=properties/*/dataStreams/*}: data_streamÚAdata_stream,update_mask¿ -ListDataStreams6.google.analytics.admin.v1alpha.ListDataStreamsRequest7.google.analytics.admin.v1alpha.ListDataStreamsResponse";‚Óä“,*/v1alpha/{parent=properties/*}/dataStreamsÚAparent¬ - GetDataStream4.google.analytics.admin.v1alpha.GetDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"9‚Óä“,*/v1alpha/{name=properties/*/dataStreams/*}ÚAname¤ - GetAudience2.google.analytics.admin.v1alpha.GetAudienceRequest(.google.analytics.admin.v1alpha.Audience"7‚Óä“*(/v1alpha/{name=properties/*/audiences/*}ÚAname· - ListAudiences4.google.analytics.admin.v1alpha.ListAudiencesRequest5.google.analytics.admin.v1alpha.ListAudiencesResponse"9‚Óä“*(/v1alpha/{parent=properties/*}/audiencesÚAparent¿ -CreateAudience5.google.analytics.admin.v1alpha.CreateAudienceRequest(.google.analytics.admin.v1alpha.Audience"L‚Óä“4"(/v1alpha/{parent=properties/*}/audiences:audienceÚAparent,audienceÍ -UpdateAudience5.google.analytics.admin.v1alpha.UpdateAudienceRequest(.google.analytics.admin.v1alpha.Audience"Z‚Óä“=21/v1alpha/{audience.name=properties/*/audiences/*}:audienceÚAaudience,update_maskž -ArchiveAudience6.google.analytics.admin.v1alpha.ArchiveAudienceRequest.google.protobuf.Empty";‚Óä“5"0/v1alpha/{name=properties/*/audiences/*}:archive:*Ä -GetSearchAds360Link:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"?‚Óä“20/v1alpha/{name=properties/*/searchAds360Links/*}ÚAname× -ListSearchAds360Links<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse"A‚Óä“20/v1alpha/{parent=properties/*}/searchAds360LinksÚAparentõ -CreateSearchAds360Link=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"j‚Óä“G"0/v1alpha/{parent=properties/*}/searchAds360Links:search_ads_360_linkÚAparent,search_ads_360_link° -DeleteSearchAds360Link=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.google.protobuf.Empty"?‚Óä“2*0/v1alpha/{name=properties/*/searchAds360Links/*}ÚAname -UpdateSearchAds360Link=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"ƒ‚Óä“[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:search_ads_360_linkÚAsearch_ads_360_link,update_maskÍ -GetAttributionSettings=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest3.google.analytics.admin.v1alpha.AttributionSettings"?‚Óä“20/v1alpha/{name=properties/*/attributionSettings}ÚAname› -UpdateAttributionSettings@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest3.google.analytics.admin.v1alpha.AttributionSettings"†‚Óä“]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:attribution_settingsÚA attribution_settings,update_maskð -RunAccessReport6.google.analytics.admin.v1alpha.RunAccessReportRequest7.google.analytics.admin.v1alpha.RunAccessReportResponse"l‚Óä“f"./v1alpha/{entity=properties/*}:runAccessReport:*Z1",/v1alpha/{entity=accounts/*}:runAccessReport:*Ÿ -CreateAccessBinding:.google.analytics.admin.v1alpha.CreateAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"œ‚Óä“~"+/v1alpha/{parent=accounts/*}/accessBindings:access_bindingZ?"-/v1alpha/{parent=properties/*}/accessBindings:access_bindingÚAparent,access_bindingç -GetAccessBinding7.google.analytics.admin.v1alpha.GetAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"k‚Óä“^+/v1alpha/{name=accounts/*/accessBindings/*}Z/-/v1alpha/{name=properties/*/accessBindings/*}ÚAname· -UpdateAccessBinding:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"´‚Óä“œ2:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:access_bindingZN2"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:* -BatchGetAccessBindings=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse"v‚Óä“p4/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ86/v1alpha/{parent=properties/*}/accessBindings:batchGet¥ -BatchUpdateAccessBindings@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequestA.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse"‚‚Óä“|"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:*Z>"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:*ú -BatchDeleteAccessBindings@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.google.protobuf.Empty"‚‚Óä“|"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:*Z>"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:*À -GetExpandedDataSet9.google.analytics.admin.v1alpha.GetExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet">‚Óä“1//v1alpha/{name=properties/*/expandedDataSets/*}ÚAnameÓ -ListExpandedDataSets;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/expandedDataSetsÚAparentí -CreateExpandedDataSet<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet"e‚Óä“D"//v1alpha/{parent=properties/*}/expandedDataSets:expanded_data_setÚAparent,expanded_data_set„ -UpdateExpandedDataSet<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet"|‚Óä“V2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:expanded_data_setÚAexpanded_data_set,update_mask­ -DeleteExpandedDataSet<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.google.protobuf.Empty">‚Óä“1*//v1alpha/{name=properties/*/expandedDataSets/*}ÚAname´ -GetChannelGroup6.google.analytics.admin.v1alpha.GetChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup";‚Óä“.,/v1alpha/{name=properties/*/channelGroups/*}ÚAnameÇ -ListChannelGroups8.google.analytics.admin.v1alpha.ListChannelGroupsRequest9.google.analytics.admin.v1alpha.ListChannelGroupsResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/channelGroupsÚAparentÙ -CreateChannelGroup9.google.analytics.admin.v1alpha.CreateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"Z‚Óä“=",/v1alpha/{parent=properties/*}/channelGroups: channel_groupÚAparent,channel_groupì -UpdateChannelGroup9.google.analytics.admin.v1alpha.UpdateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"m‚Óä“K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}: channel_groupÚAchannel_group,update_mask¤ -DeleteChannelGroup9.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/channelGroups/*}ÚAnameþ -"SetAutomatedGa4ConfigurationOptOutI.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequestJ.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse"A‚Óä“;"6/v1alpha/properties:setAutomatedGa4ConfigurationOptOut:*† -$FetchAutomatedGa4ConfigurationOptOutK.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse"C‚Óä“="8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:*´ -GetBigQueryLink6.google.analytics.admin.v1alpha.GetBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink";‚Óä“.,/v1alpha/{name=properties/*/bigQueryLinks/*}ÚAnameÇ -ListBigQueryLinks8.google.analytics.admin.v1alpha.ListBigQueryLinksRequest9.google.analytics.admin.v1alpha.ListBigQueryLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/bigQueryLinksÚAparentû -GetEnhancedMeasurementSettingsE.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"U‚Óä“HF/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}ÚAnameå -!UpdateEnhancedMeasurementSettingsH.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"¸‚Óä“…2d/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:enhanced_measurement_settingsÚA)enhanced_measurement_settings,update_maskÎ -CreateConnectedSiteTag=.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest>.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse"5‚Óä“/"*/v1alpha/properties:createConnectedSiteTag:*¦ -DeleteConnectedSiteTag=.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.google.protobuf.Empty"5‚Óä“/"*/v1alpha/properties:deleteConnectedSiteTag:*Ê -ListConnectedSiteTags<.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest=.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse"4‚Óä“.")/v1alpha/properties:listConnectedSiteTags:*× -FetchConnectedGa4Property@.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequestA.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse"5‚Óä“/-/v1alpha/properties:fetchConnectedGa4Property° -GetAdSenseLink5.google.analytics.admin.v1alpha.GetAdSenseLinkRequest+.google.analytics.admin.v1alpha.AdSenseLink":‚Óä“-+/v1alpha/{name=properties/*/adSenseLinks/*}ÚAnameÓ -CreateAdSenseLink8.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest+.google.analytics.admin.v1alpha.AdSenseLink"W‚Óä“;"+/v1alpha/{parent=properties/*}/adSenseLinks: adsense_linkÚAparent,adsense_link¡ -DeleteAdSenseLink8.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.google.protobuf.Empty":‚Óä“-*+/v1alpha/{name=properties/*/adSenseLinks/*}ÚAnameà -ListAdSenseLinks7.google.analytics.admin.v1alpha.ListAdSenseLinksRequest8.google.analytics.admin.v1alpha.ListAdSenseLinksResponse"<‚Óä“-+/v1alpha/{parent=properties/*}/adSenseLinksÚAparentÎ -GetEventCreateRule9.google.analytics.admin.v1alpha.GetEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"L‚Óä“?=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameá -ListEventCreateRules;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse"N‚Óä“?=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRulesÚAparentû -CreateEventCreateRule<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"s‚Óä“R"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:event_create_ruleÚAparent,event_create_rule“ -UpdateEventCreateRule<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"Š‚Óä“d2O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:event_create_ruleÚAevent_create_rule,update_mask» -DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameº -UpdateDataRedactionSettingsB.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"Ÿ‚Óä“s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:data_redaction_settingsÚA#data_redaction_settings,update_maskã -GetDataRedactionSettings?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"O‚Óä“B@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}ÚAnameÆ -CreateRollupProperty;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse"3‚Óä“-"(/v1alpha/properties:createRollupProperty:*ä -GetRollupPropertySourceLinkB.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"G‚Óä“:8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAname÷ -ListRollupPropertySourceLinksD.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestE.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse"I‚Óä“:8/v1alpha/{parent=properties/*}/rollupPropertySourceLinksÚAparent¦ -CreateRollupPropertySourceLinkE.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"‚‚Óä“W"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:rollup_property_source_linkÚA"parent,rollup_property_source_linkÈ -DeleteRollupPropertySourceLinkE.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.google.protobuf.Empty"G‚Óä“:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAnameº -CreateSubproperty8.google.analytics.admin.v1alpha.CreateSubpropertyRequest9.google.analytics.admin.v1alpha.CreateSubpropertyResponse"0‚Óä“*"%/v1alpha/properties:createSubproperty:* -DeleteSubpropertyEventFilterC.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.google.protobuf.Empty"E‚Óä“8*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}ÚAname— -CreateSubpropertyEventFilterC.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest6.google.analytics.admin.v1alpha.SubpropertyEventFilter"z‚Óä“R"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:subproperty_event_filterÚAparent,subproperty_event_filterüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{ -"com.google.analytics.admin.v1alphaBAnalyticsAdminProtoPZ>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php deleted file mode 100644 index 3a94ac8194dd576ddee1f7860580341096b14f0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5535 zcmcIo&3D^W7O(9%#Mh1+6lfh62GvuhDMM{A91bU?fNU#?i@$0+O_?!ADAKc|b7V$LX8fWTh+N|QI`|juOe!WjVa}FK& zqqsvX;;KH;#e-wfKO~~#+PS%{C8A&0Nkwlq{9=tD6CU*cdQ}sMi3Yfw7AmX1hJ1`AR^n4Wsi#H5UF)YJ3RMYql zExId?RnsGQ`7G^tW@)}*TOz&CMfEmsiJT{;z2VsCfxBX;R*yOb9WrWKK5jFNXn-<^@TbWwDPKXa`+OmE8IB>HbO z&uNY^+BS%(*T|uIWZ3T3))T9qFgfpPp9GOy_*UeO#tgB8UYswGdGYqAM&L6^*CQ8g zBcwJXqo|2D;U90q?f(l)!XG$!If7o9L9ZM@uecGibBu}`Sjk~n46arfC^51XJuroT zFa0MAZ-roM7*k?-XlB<%yt;;l+9M1E0;?YWv?j`!9TbvcVl!K9mH)R|rb4D2UGW_fsoWM!{2 z=*jiwc2jPwT@o^omLE#>;aWnt4B48z)9ehC{pN6YEh(%*M(#9%pD7^+EA?(?C?Un# z5~beWYqgZVydyvCt)+{fLoNvoK>1;6IZ%;4{`yB9#CV2*CC5B z`{+Z3+fE~!!c4gWIo-yVK!S71A+dX@mW7OM1&76-ldyUUkr=d$jj?5wjG-i7-M?te zPDv*nro&J-IIpo88WwAm87US{P)EX-ggql;N(_ z!4R)OZl^CxL%GjSmWsb8VD(gnVF84(YfocQcp1hB8m#zsETk_(NG%6IF*0VAy!5vO ztcPV|?L7{kUUzPkV01 zpq2!Rdf2HI)E7f=rk8!Ts3*?p`6%WK$nh|9s1$hb`e0GUF*IRiT81SGj*<^=oEK0U z17QdP7Z-CGFQ3`!bNj6HO9EaC#SVbq;Y3*uhhvtr!Xe}% z7M@QW51Vodr^PSAd*=+X(X==?W!{a1rl&iwuGtn2$SNJLB5(0Lf0noAf`*Ty&kgqwk)?mf9K^v=H`SR(gfqO=D2OH<$JwBX=Bv`8X2+$JTlScMLRHJ&C=@MRMUQ!+guu6JlSQHs%B z#VgQcNr#XZHsPA8dvt^GY<#{jzGK6#LM#=hWu5gfmbNME^{c$SVe_P6VGB{Vx^ND} zoy{ws30KJ@&79Hs=ZTV2TPJLl%2&4+4P=B_Ipi1C*fw&b($c~{KG#)3EroZm7h%YKgLswi zga40DDr)eEhKJ$5C-3|kn|QekSQ{7KhU<}0+szi;2L^RqC!Sg){tTm=^Xcfy*z70+ zsVyt=1GEFpyA8LVO+3JD1RaRG$hqWFz2C)^MZ#?}pdPHHYBMOI8=e8G+G^;g9(~;F zCI0fMX4*47yha^4vCq6}qLZVCP5MIV9Nb|sa1IWZS?B-YX7sG}E`QmJJp`Wn2*@b; KQ{4%i0Q?tE9~gQ7 diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php deleted file mode 100644 index fd598deea7fe53be1dc3ac7e8bdd046ca157b7b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2398 zcmb_e&2HO95VkB?utu`#FhJnAMX^-^L@81UQEqaal(J}9fPVy=PMtyku_9N}0u)J* zOQULPpqF0z2z`Ox`#d@K);H+>P&5rC4P3_;ORL#$zM1)EW?#MzrU5)cJ>roNGvc7p z9I+`uLFhBz_FXiJ$72#A+n)v0C1C@h?g=_RF_F>jo8R!OkspUPX`_knPh8T(9(L!9 z+EEibGwL-jpJO+e;-)>to=04368dq_knjK=o{=cPHbK2X=ZG-uV1|c1i8Ry~NJCv9 z4c|Q11=0?H?cyjxdkV290O1`V{ujg}m)a;|m@`0+X=G84GKyXLGY@SSjj1bsn|seY6FoSo|$3aVvYHzUs6A8 zx38nR2Km_4Q<9YQgSTWVzI#QJz;(w-+dnDAAis{L62Eh`Pqiq}ZHfQ^WS)SFmid9byLa`kfSb>qK1HI|_oXA(!@ z9;|3@p-Mf=r4d^|=l?f!-#g?uDfBkLSQOF{jk1;Fu%%A%y}tThU)%nD6)IUK+6Z8V znLV}GJW$5fR{xISHI4+L$pJfg?pM=b?Gn2&k=ZNBv)XStD5YlFHas}e&AkK5d^<3# z^W(FDvDe@48{N$ntpsbvg}!HQ=Cm)M+%bCn<1_1rzIm{@s%=2YIPNB2^I8Sg_fC#Y zom*@cg!TUU;h}YE^o)za<{IZw9q6ZKUr*19+mE1qA_9J4--_S#Lt2H2CAOV zERxdSQc`?*7si}z7m7*O6r{9Ux5qnJ=@g+LnALuP8?#%f{bq)EyK2f~CKy%7a_dgf z)PBuDMeYnf3r=H~Xb+*{&?s>6Jlkec?&koRT&g--Wc z;aq8$3%l$j>xL^-mbj!Hz=m9{V#0+ytgQkUeYy4QQtphBQwh(W9kuS zYmNI}7eD6P&fhwQZ_}}?rm`BLIG|C3zZ04_LVLkieLzA+Nz{Coe4bw|o&(Z5|H00_ z4z4GRB-O^Gm*ekdK_!rDD5~u(G diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php deleted file mode 100644 index 0de4d453c68a1e2cf4d20dd1071c3caf37718178..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1966 zcmbVNO>f&q5UniRvBr)~Z_!jvQg^EaumUs^oZjR*EiKUs0b624I&A`>#EM)=3s59M zE)A%Gjy?3+|Iz={bN@hZMVFsatE5exBf9k^{+@&rJ2&Xn4%`u-+ z><1qAEYHECXgsC?w!E3o92zt*?(}i5Z(yaP8lQ>K(2D|#w(!LBCJt>9mpF6ItguP! z8FQPrr^NB6q)Bh7%S|hw;uMp(wn=Tq8_6*ME}7BLCl zgjB$+`;H^m;>>e#9ME?yT7QC5%-Hv_?}@~m`jhO~7>}SHt&u#(Jc#J(=@GRp}l2OOL zpi^?oyr9)u-f9W*uFwI^3jEfnBo$Aev+UxsZ5Q{v6mqE-%wnD=@OuSX|6eEQIE`%- z8fzpPYh)U`f0SeUtQlmyQ;F47IMhfWWF{(f9mR_9TyzgAer~LmaH(FoDE}&Npoef! z*v(twM6|k5?ACrR!@-K?29ZP2A#BDPUV@a-F&x@7;+i{PR5<*MwVB=1$sqWJ>!O?xnRdEzh5u#TCNpreME=dhlUkGiO;6!s^!h z9jfJ-%G1~Ssq~xtV+o!X~#l+s3Oa(1RxM_KU?#VbAjZB@bUpRl6&;F-<VO<&Ayrus|oIbxzLCd!*g!^uENSp*IOERwF~t8#=5?UFu8)x56s5 z$K0)6KBbO7qE+^*PhFeYrcDJkLnd?;0>GtX7W&j;Is@rmuSY1 zPwNux0Kjr+7?O63+QKszOu!o;_~%dh4!1}sC=wwLd1!K%3r-#W8)kS&2Gj`|VqD)l zn7EeUo=fC`bJt>($0Wj(dms89Dso5?c3mkF3S@L#!2+aev{+~b+!tQZ#jUm4kcm`U z`K9tW4lCjKfK(!mwc0h3heQMuwium|fQd=q9w^=tV3z(eR%z#RVQwZ)I;QIlclj@J3e0%9-)sR zA3Hp<;5RpdJlSaEVN3EW|B-fKjt2qOR+&?+WVFxWj*Wc;ZR@$}SXkUjJe8A> zV}{q=ikEWpB@XxI2e0K`%wzENQN2WeG~tl&eE4dYzSOq%WsKU z<98?{WWp+qd$r#;K3)phl>@w+`RSSEcoRE0Ex8T7YcCn(ojhh#I)48k{@>3l8NPm$ XPOh(_>Af)Q-#O^j&S)IZUn_z)O5t;G}*lr&-&2^(?G*9|gy|->O zj;+@Ei}#FX=g3&^nqpvYjgw}qWgMHmj!`!go0Uw->>CZEZ|rSyDtod+Wltt5d(YmJ ziOLhk>P@59OH>_d>@$|Y|2l*Hrd3b$`UaLxyl(Y$t7Y{qqiKByd-^bOU^IIsW}hE> zFlg2LR=bs;32LiuK6scAG->SXoi=3fVZ!07LSlhP_6n`O*#(n(IkQ*qTAhBoTfxwD z`q1pV!lWk;9@@(iIqM+tK=7DOpJVdFM87*Qy{jh@U9&&vww`dliNLA*uf6G|wkHo7 zmWi#U)5A>;XqyL$m%FxAn>>1VmRRI^|SedG875_RY9bd65O?Dm3}O)UrB|~s|$_N4@sqj zZ&*o(%rQxC^g34@9jC3EP#t^j`(bl!{m{wX=snY!ci)-UvDObr4fK6m4{XABJOdnO zX1{Xga?b|uu-(SMbr z(ihl*y;&k0pTV1j)QWvlf&^AwbM?rbHRxcMrp{+Yr<-+$U2RysPSZHiIUAQ8HfE&j zY@ur&!dL3`cEgO%(i`apyV5Y5Ca#Y7WjvVUYp0){$xqlDu1*M*5CSwhR&Nd0$-1*) z$q+m5t$$|!>oob-vuqAJ4$bbL1W6>%79mUiTJN89%=i-4UP?W3Wa6$os*P(7%^Kzq zr?Y<9PAMgvh*!2Gq$y71I=kF4y3k#Ig#2)4CBMMASc$h8X^UO6T8%-k-#yXmILO0x z_k>G%DfMpHP7C(LtUXV<#pX#5^zXD=X8a1Bomk{1TdWVd;Hr*A=v?RModgN@%R8g)@+aoLj#I=h z?soVYE~LI3c7{VDYdhw?#tG1~{7ce4yA8+JZCec;7r+Q{I@^WRM;9QD%atH+m))I^L2j>`MUN zw_zR_gJxeJbgekw%!l3qhxf?s8|GI zyDgV-+qt?9Mpg@wF9*mrR z*v596S!4?yqfY)~gk9aR&#!2;o(J7qxGk~Dx6Jy;6#(V(-tW`hLFvYsY_QeI+Z*BM zaqtEmog<#HMdzp9#P8GOpGMf?X0yF-G&QSl){Mh3+v>F}1ft$;rQ2t6lf6Be!BNs5 z26H&}2-Xk1oF#u01+P4TlpDQqM-YdwaizA8%`Ryyw<8e>+-FkVXz9n`7?x3QB4_IN z;^ZJiR3m-F?i!7rPVsgdxu5kNWSfYF%$Bj=MEo<(DP)iaJ~NsF)9-tPr@m+)C;V^d ztR%b1m8#v<&11uA>PDl1xV0CbcYR9w=u9?4PiRD-?+2fd2<>dCLy5$1EZMWw=s#xI zb#7}%M%QW`A~WmbKfNGjdYir06QlG`tp1U1)9MX6op!hHN}F8GoRng#L4$!2ScfgM zq4$iY*>mU6Vb4kLur~tdv`&1(`O!;{*y};VA&ADH-X9XD zEhT-(<{ZB5+xYFD$q%Lu0{u}2m#38VCn%(P7fev3B{yFnO`NAR@lI(NK42ppqti?n zdSK${&n?7R^V|ZjdVHS#f?U(k4@T2}966K!Ai};hS^DD{IkLq$?M1ro35iDc1W)35 zr-LrvFw%C~@oDncFR_HSB{#}u|C4t2dA8kp0b_$t=I&OjAHnklxtI#O-f8#x`v`*I zV_J>&Cpu+CB%X!TTBxqtQ+N1GCsjK~5iD`3UYMd(VmJNl^^dxy$?u|zle>>xq0?zn zdgsVT9D0vmS##;1;K2VX!k$h(@K8a&xahg}LXK|zv)*%~(GrJyj(few&-XO>n-R8D z895WmoX>AI!d+2l=Iqm=o&=c8e;mM#`2FSHETlSf$)848?A&y}gW!QUqE>cbwM^Uk zX!>marSC=}(gwR)ZyR0Y07JuEO1&MXlvzH9>%Gv(99t4N*)a~E?poUwhhiiOp=%{E ziClfN4J+}+ICB*F>O=06|B1+VWEM6j)*eN&W+;^aoUer7ZqElx5lR;& z^AQrv$Xp>Ca*L7tjPur=E8fzD9LY!VHY2f^?ps(qbEj}-eB(G7-#Gp(`Mnt?5f*-E z<}JjM-4nijiLn_crIXeXXYvsO_7J{hLez$Ph#7Uz5`dPtFCK;+yG%1E>y_dxHUMIy z3mQD+5IJ73}7Iv&UC*{}``wbuox~Ct9tv9l1@gw;|iCqtPF2&fK1C)x3 zRZ6qVU=RM8pZZd2HEcO-52N}1EOyJG259!64P;30ZadjR7_9&n*G8UI?V^%&#BRDv z83z!Uvl8jsLh2W{(#k(Avzx&@q=yk2IgEwW-dkZCwBsS5LtpWPG(zzngiXf9%i&ba zR@mZ55@^F!p^n3wY=TUlE&I{{4m&QS-U;Jn)0=XD(#Pz!lLR2DM=6hRd+vWZShG22N#K>1tjRR`^UVKvOQ{`mcOk+mR-=v!n=lmqjGX(9Dt*cv$jn?EBuAS1g} zC=T>qk6cCKcp*7voez;}wlh zMedD>wyMd%3WrElT;ha6oh{EeInssQYV3y5$IkZ$qg%bfX@%Ys@^G$aqeXTNpgw?W zWaffFAVxPi#ZWa=Mhm<4xq7RI@mriysGlN->lCpCnSJZ<+XE9-7B2VO(~-$ohhL*f zw#*ysp4kHBI`-zZ4%b!1IoVL$T(OCG%)=wWp%OO4O*&MGwkk$_{*F?=uPKzLx2U+ zM{g~;J7}8mdz?(TJ`S4~s+g94DZ_^GPV!%(?B2u+At)_fVT+!-$A!~*o$_@gaqf)* zujnb!QmAMb2|^G`5x<-dLWc`omiSuhO( z!NO^ze-~-#??l*>$!Y0iDStdBC!KUx6V7kTcWh8_n*81@dt>6-&h2~AlWwq=$sXKL z0QCl=Kj`TV^hjCFo*nLnUaw>z4htHmkP`&xfTGd_ed1t~78f8etR54pe$rF6(nD2?TNsiGpQ{U1 zyL9(VZnI(QQ((8ixnmhq%Sa}PRknaz6jD-|Z|QNpBP(pLe8wGmsQL5uv< zQtAsAB7&XMT&@IZ^Gx1nk0*<2lm(|G`gX9u1Onm{MDizO4x<@wkZ@jMOXxg9TOom2 z9F!F%fliGX>VoqZirkQL2IwLBPDGD0W#Mjc5RtYa@j6f=uKP==r(weK@ww*a=o(SU zIJ`V$FC+XinoU$?sDSJ%w{tX#n_nbZL4%2t=yM{{eReljC@E#G_F7gw*IzQvW*r@$ zW0$ryr5c-&@UKEmDaE4GX}C|`<1~D97-=|vGK4fvlmBp;T@_*xFvI`b*?oh>yh-W+ z{@p&tuS|E0g5NbymbwiZr28|H>L>=?z)RtMZe9t1BH=BgDsjNEUwV!{Qyaw*F!>x{ z>!p-@A)bNr+N8uAwp~@ARyDZJ0{x%2W$7xL(`x8XlB+p* zPW;MlSF1`nyDKznLs4q6C~5OTQPEYZyh4bv1#AcW-1+KH^uACd-LmGHW2~DT>QARM) zuSZZaUkpi9%Y<7)S>uJ(KjFFDT=MrL?ArPHN%l$=3WJLqH+XKlD)WDgsvZ=nwxjAL zwOq?(RS|8S9A4*(8>&Jei3BcuN9fra>;Qd58Mpf}s?=brk$ zeYksjVW%6g{+c{o2zR{QV!*?eqP>c@72x|3_9pN831>b~9nu428*xjy4 zjZ+kjdJ)}Y^m;e#IH&Y^IH)>gJt8X+QE>_UMufdi*EjV(drpU&0YG4CY84gx0zZE=6lZIt}y2zxN?38HfLWjXt`?SfX|*5-+!dDNg6Rdp*PXSej7 zLOG}I_-=wPvBwvh{UvzGU9#IRvoBm|;^TM4%$el>L|8Ih7o_)DO0DG);9qb@DYiD{ zJcp$Sdh({7gGvV%z{~~ad|=OsCec%PXRH!RZ?nC(s!Bzz^2A53;RefW^FuAEIi=`3 zxrgkHicIar<(#foH{~*}yKG)AmzAQ%uQEMXE#P9qSv_E{j~`l;aT#Wdh3pnC|A|C5 z3RQO~!EuQRL!-NH+0BsjewSg@+rv2$&+$ zJ$7g8W+B`-yAi}QVtC_B{w53QuJrgU=lYQz1}9z~r|Aq${ujEUQEo>&Z3azXaIFaG zF3~m5@0od&76LwSSY)%^Hri2f>qj5Vr+*JnOXlO0DD3kPn1L;u+-Kr}=pbT~wu?Q86o4WJ6qxc~_Nl#OGQGx)OPI=-gS{UfL~Vm|#_ zu+Z;D*awqQoJj|<6>NJH1ZhFvl&m`?WKS0AI-Lw}E^OiB5wqcZjNu1v+^>A-bIr?r zgX^*jf6h>6xSc5ZD!@TH0~HXT4xnSqt~NVoB$VeNd(|g7{rpg&PB>2g(C6lfXiA(< z|LU3iD`99E1$R}45l1MJa#0DB?9Y)&{y4%GJeB1jY2e!}gPQ`(9T6?Qlyv1fEAE_! zlNH5F|Gi+gjbU+{Jh`VleoEcn@hS{;(5X1h^88OP5Ktb(FTi>6Cl`2~h`yxtGW@sD z?Vm*0`;%E7yIv`ne{v*2{9!ZVmCK86^F|ed)73j;C#K@#UakJwC48*r|IGDOb`O#H zHlT}LJuBCgO%?w*mo&@UHMOMH5YZvfK=hN@)(~T9_=*hipFO`I7xj`{-BM~A!VLf~ z8-=nAoE%sV((b$>7i;;fTvY^~Q&Y0}vRYI(cM*93>#0@cXG#&V6+jvuK?BKIVYlRJ zO)P?ZT&dRNLYYvd7~M2dMgd#9oP~`-jo1OkgD@w9oI^}10;L2F04yrTB*69?D!_bV z8Nq3JE4Dz3ZOSEpLsu!i&#ReCL9wSQ1;Vgmi-Zy60X^|~o4~9P)GpC71>&fz)cA`U z#bRnHwoHr_2ye5DcrWLPvN(esL;RuEMZi<+7( zD7D?#b*e2?AXNSofp$qQYOx#AGF!kmfkhpt6OJu*Qv$S9RW=kt(v;XO4ugRL{kTm6 z)+n6RVsTpLt7^uUYHk~cPQ{8l1jK21wNgRdBet@7z^-bZPm?LS1or!^fVxK!shvL` zz-v3Yl*@8)w^qn%_-GOP5Fp<$_#D1Q`&Dda^{Z@Nc6)N^z_T^A8ibrV=yQZ`W>+Kp znX8$$U7@YTqN^3gKnw5&Z-AwbAhSGy3Bci?o>_y`1Kej6fy77ZkM7jeYDF=$* zpJjIf`%U=@NG~Y#-&FK`K?B>nIxs-MNsv+Sl5&<;mars*U8w?X2b_d8udzj>Hwq;p zIuv6IW&o{o1d0TKKfFTUb=nWL!Y1Sl87no)*ECoJ)WnlR2+)3>0DdnVi$!Z{RxM&8 z_Fscp&@`C8TGHJ@01N{h*-r(Q2?N36JTV!9Z0_QV(i`m6TtTZ8wv;z+~VHl`@`XIfOgJuw7ztj}UUUa=9<>5Q6y{8o6?C z3Oj0b%bU_YlZ(K3wQOD~$*~oJ46z}UUF`F|O9~-x=Y+k!%z38DqArwFuWlEW*uB*r zlSXS`ybOn2*sm4j5`119w&fe8l;up38^C$J!YPTDGpj#{Aamp$#&$6c_z~6Z2=n$) zg#KYue!TxYf6h4jzufKs6O5rox$baeWc4$4&s*$1S8JEvWsgWrTt&hS1s@APhl(zg z3qH@!B8f*0Re7h3n-*#WkOHG1(@W&op!)DE1aIIK+`dY#Ep~bJ z*YFLB6Blu3M(}~{k%GJz)MxayTFv2pukJ!l=ca1g8D}uO8%)#rB`8qX?%zCbi|P*6hKCrLQ^Mcb+NPTUWo};5 diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php deleted file mode 100644 index f3eeb73ab73f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.AccessBetweenFilter - */ -class AccessBetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Admin\V1alpha\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return \Google\Analytics\Admin\V1alpha\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @param \Google\Analytics\Admin\V1alpha\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return \Google\Analytics\Admin\V1alpha\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @param \Google\Analytics\Admin\V1alpha\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php deleted file mode 100644 index bd42946d1eaf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php +++ /dev/null @@ -1,198 +0,0 @@ -google.analytics.admin.v1alpha.AccessBinding - */ -class AccessBinding extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * - * Generated from protobuf field repeated string roles = 3; - */ - private $roles; - protected $access_target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user - * If set, the email address of the user to set roles for. - * Format: "someuser@gmail.com" - * @type string $name - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * @type array|\Google\Protobuf\Internal\RepeatedField $roles - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * If set, the email address of the user to set roles for. - * Format: "someuser@gmail.com" - * - * Generated from protobuf field string user = 2; - * @return string - */ - public function getUser() - { - return $this->readOneof(2); - } - - public function hasUser() - { - return $this->hasOneof(2); - } - - /** - * If set, the email address of the user to set roles for. - * Format: "someuser@gmail.com" - * - * Generated from protobuf field string user = 2; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * - * Generated from protobuf field repeated string roles = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoles() - { - return $this->roles; - } - - /** - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * - * Generated from protobuf field repeated string roles = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->roles = $arr; - - return $this; - } - - /** - * @return string - */ - public function getAccessTarget() - { - return $this->whichOneof("access_target"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php deleted file mode 100644 index d0e653ce6bc2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.AccessDateRange - */ -class AccessDateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php deleted file mode 100644 index 44449e85e67d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.AccessDimension - */ -class AccessDimension extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php deleted file mode 100644 index be9a5f3aee35..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1alpha.AccessDimensionHeader - */ -class AccessDimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The dimension's name; for example 'userEmail'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php deleted file mode 100644 index d68f8597b18e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.AccessDimensionValue - */ -class AccessDimensionValue extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php deleted file mode 100644 index 82da5e23d402..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.admin.v1alpha.AccessFilter - */ -class AccessFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessStringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Admin\V1alpha\AccessInListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Admin\V1alpha\AccessNumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $between_filter - * A filter for two values. - * @type string $field_name - * The dimension name or metric name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessStringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessStringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessStringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\AccessInListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\AccessInListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessInListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AccessNumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AccessNumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessBetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php deleted file mode 100644 index fbdd935d575e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.admin.v1alpha.AccessFilterExpression - */ -class AccessFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $and_group - * Each of the FilterExpressions in the and_group has an AND relationship. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $or_group - * Each of the FilterExpressions in the or_group has an OR relationship. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Admin\V1alpha\AccessFilter $access_filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AccessFilter|null - */ - public function getAccessFilter() - { - return $this->readOneof(4); - } - - public function hasAccessFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AccessFilter $var - * @return $this - */ - public function setAccessFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php deleted file mode 100644 index 2eb4395ffca0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.AccessFilterExpressionList - */ -class AccessFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php deleted file mode 100644 index dee5bd8ea6dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1alpha.AccessInListFilter - */ -class AccessInListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php deleted file mode 100644 index 190ee537d233..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php +++ /dev/null @@ -1,80 +0,0 @@ -google.analytics.admin.v1alpha.AccessMetric - */ -class AccessMetric extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php deleted file mode 100644 index e05c29ae718d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1alpha.AccessMetricHeader - */ -class AccessMetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The metric's name; for example 'accessCount'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php deleted file mode 100644 index abb0fb9e2ec1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.AccessMetricValue - */ -class AccessMetricValue extends \Google\Protobuf\Internal\Message -{ - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The measurement value. For example, this value may be '13'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php deleted file mode 100644 index 9187c504683a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.AccessNumericFilter - */ -class AccessNumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Admin\V1alpha\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return \Google\Analytics\Admin\V1alpha\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; - * @param \Google\Analytics\Admin\V1alpha\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php deleted file mode 100644 index c6d1fa905dea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.admin.v1alpha.AccessNumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Admin\V1alpha\AccessNumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php deleted file mode 100644 index 6703b77c9b81..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy - */ -class AccessOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type bool $desc - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php deleted file mode 100644 index 3d1c23f4cc16..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index 40d8927a3f97..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php deleted file mode 100644 index e210588587b2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php deleted file mode 100644 index 388a200c0f81..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php +++ /dev/null @@ -1,283 +0,0 @@ -google.analytics.admin.v1alpha.AccessQuota - */ -class AccessQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_day - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_hour - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $concurrent_requests - * Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $server_errors_per_project_per_hour - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_project_per_hour - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php deleted file mode 100644 index ee0694f48b7e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1alpha.AccessQuotaStatus - */ -class AccessQuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - */ - protected $consumed = 0; - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - */ - protected $remaining = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return $this->consumed; - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return $this->remaining; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php deleted file mode 100644 index 15f63e19b860..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.AccessRow - */ -class AccessRow extends \Google\Protobuf\Internal\Message -{ - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of dimension values. These values are in the same order as specified - * in the request. - * @type array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of metric values. These values are in the same order as specified - * in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php deleted file mode 100644 index 511a01168a39..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.admin.v1alpha.AccessStringFilter - */ -class AccessStringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessStringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php deleted file mode 100644 index 69c13e765d72..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1alpha.AccessStringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\AccessStringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php deleted file mode 100644 index cf1546349336..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php +++ /dev/null @@ -1,269 +0,0 @@ -google.analytics.admin.v1alpha.Account - */ -class Account extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - */ - protected $region_code = ''; - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this account was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when account payload fields were last updated. - * @type string $display_name - * Required. Human-readable display name for this account. - * @type string $region_code - * Country of business. Must be a Unicode CLDR region code. - * @type bool $deleted - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeleted() - { - return $this->deleted; - } - - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeleted($var) - { - GPBUtil::checkBool($var); - $this->deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php deleted file mode 100644 index 9b8c7fc6efc8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php +++ /dev/null @@ -1,186 +0,0 @@ -google.analytics.admin.v1alpha.AccountSummary - */ -class AccountSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - */ - protected $account = ''; - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - private $property_summaries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * @type string $account - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * @type string $display_name - * Display name for the account referred to in this account summary. - * @type array<\Google\Analytics\Admin\V1alpha\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $property_summaries - * List of summaries for child accounts of this account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPropertySummaries() - { - return $this->property_summaries; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - * @param array<\Google\Analytics\Admin\V1alpha\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPropertySummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\PropertySummary::class); - $this->property_summaries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php deleted file mode 100644 index 98b1ece2a495..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - */ -class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $acknowledgement = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The property for which to acknowledge user data collection. - * @type string $acknowledgement - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAcknowledgement() - { - return $this->acknowledgement; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAcknowledgement($var) - { - GPBUtil::checkString($var, True); - $this->acknowledgement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php deleted file mode 100644 index 4d03c2d230b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse - */ -class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php deleted file mode 100644 index 49253924461b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.ActionType - */ -class ActionType -{ - /** - * Action type unknown or not specified. - * - * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; - */ - const ACTION_TYPE_UNSPECIFIED = 0; - /** - * Resource was created in this change. - * - * Generated from protobuf enum CREATED = 1; - */ - const CREATED = 1; - /** - * Resource was updated in this change. - * - * Generated from protobuf enum UPDATED = 2; - */ - const UPDATED = 2; - /** - * Resource was deleted in this change. - * - * Generated from protobuf enum DELETED = 3; - */ - const DELETED = 3; - - private static $valueToName = [ - self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', - self::CREATED => 'CREATED', - self::UPDATED => 'UPDATED', - self::DELETED => 'DELETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php deleted file mode 100644 index f2bc347c5a68..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.analytics.admin.v1alpha.ActorType - */ -class ActorType -{ - /** - * Unknown or unspecified actor type. - * - * Generated from protobuf enum ACTOR_TYPE_UNSPECIFIED = 0; - */ - const ACTOR_TYPE_UNSPECIFIED = 0; - /** - * Changes made by the user specified in actor_email. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * Changes made by the Google Analytics system. - * - * Generated from protobuf enum SYSTEM = 2; - */ - const SYSTEM = 2; - /** - * Changes made by Google Analytics support team staff. - * - * Generated from protobuf enum SUPPORT = 3; - */ - const SUPPORT = 3; - - private static $valueToName = [ - self::ACTOR_TYPE_UNSPECIFIED => 'ACTOR_TYPE_UNSPECIFIED', - self::USER => 'USER', - self::SYSTEM => 'SYSTEM', - self::SUPPORT => 'SUPPORT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php deleted file mode 100644 index d761b682fb8d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1alpha.AdSenseLink - */ -class AdSenseLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * - * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_client_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * @type string $ad_client_code - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * - * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdClientCode() - { - return $this->ad_client_code; - } - - /** - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * - * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdClientCode($var) - { - GPBUtil::checkString($var, True); - $this->ad_client_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index a52787771996..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest - */ -class ApproveDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php deleted file mode 100644 index 43bf9175e1d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse - */ -class ApproveDisplayVideo360AdvertiserLinkProposalResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - protected $display_video_360_advertiser_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->display_video_360_advertiser_link; - } - - public function hasDisplayVideo360AdvertiserLink() - { - return isset($this->display_video_360_advertiser_link); - } - - public function clearDisplayVideo360AdvertiserLink() - { - unset($this->display_video_360_advertiser_link); - } - - /** - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php deleted file mode 100644 index e87bb551c107..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ArchiveAudienceRequest - */ -class ArchiveAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/audiences/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php deleted file mode 100644 index 900c05da853a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - */ -class ArchiveCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php deleted file mode 100644 index d304ca488199..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.ArchiveCustomMetricRequest - */ -class ArchiveCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php deleted file mode 100644 index f166baedc5d9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php +++ /dev/null @@ -1,240 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings - */ -class AttributionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $acquisition_conversion_event_lookback_window = 0; - /** - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $other_conversion_event_lookback_window = 0; - /** - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reporting_attribution_model = 0; - /** - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ads_web_conversion_data_export_scope = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * @type int $acquisition_conversion_event_lookback_window - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * @type int $other_conversion_event_lookback_window - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * @type int $reporting_attribution_model - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * @type int $ads_web_conversion_data_export_scope - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAcquisitionConversionEventLookbackWindow() - { - return $this->acquisition_conversion_event_lookback_window; - } - - /** - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAcquisitionConversionEventLookbackWindow($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\AcquisitionConversionEventLookbackWindow::class); - $this->acquisition_conversion_event_lookback_window = $var; - - return $this; - } - - /** - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOtherConversionEventLookbackWindow() - { - return $this->other_conversion_event_lookback_window; - } - - /** - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOtherConversionEventLookbackWindow($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\OtherConversionEventLookbackWindow::class); - $this->other_conversion_event_lookback_window = $var; - - return $this; - } - - /** - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportingAttributionModel() - { - return $this->reporting_attribution_model; - } - - /** - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportingAttributionModel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\ReportingAttributionModel::class); - $this->reporting_attribution_model = $var; - - return $this; - } - - /** - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAdsWebConversionDataExportScope() - { - return $this->ads_web_conversion_data_export_scope; - } - - /** - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAdsWebConversionDataExportScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\AdsWebConversionDataExportScope::class); - $this->ads_web_conversion_data_export_scope = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php deleted file mode 100644 index 27addf5b305e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow - */ -class AcquisitionConversionEventLookbackWindow -{ - /** - * Lookback window size unspecified. - * - * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - /** - * 7-day lookback window. - * - * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - */ - const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - /** - * 30-day lookback window. - * - * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - */ - const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - - private static $valueToName = [ - self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED', - self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS', - self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AcquisitionConversionEventLookbackWindow::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_AcquisitionConversionEventLookbackWindow::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php deleted file mode 100644 index 71ce27a0c6dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php +++ /dev/null @@ -1,77 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope - */ -class AdsWebConversionDataExportScope -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; - */ - const ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; - /** - * No data export scope selected yet. - * Export scope can never be changed back to this value. - * - * Generated from protobuf enum NOT_SELECTED_YET = 1; - */ - const NOT_SELECTED_YET = 1; - /** - * Paid and organic channels are eligible to receive conversion credit, but - * only credit assigned to Google Ads channels will appear in your Ads - * accounts. To learn more, see [Paid and Organic - * channels](https://support.google.com/analytics/answer/10632359). - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS = 2; - */ - const PAID_AND_ORGANIC_CHANNELS = 2; - /** - * Only Google Ads paid channels are eligible to receive conversion credit. - * To learn more, see [Google Paid - * channels](https://support.google.com/analytics/answer/10632359). - * - * Generated from protobuf enum GOOGLE_PAID_CHANNELS = 3; - */ - const GOOGLE_PAID_CHANNELS = 3; - - private static $valueToName = [ - self::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED => 'ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED', - self::NOT_SELECTED_YET => 'NOT_SELECTED_YET', - self::PAID_AND_ORGANIC_CHANNELS => 'PAID_AND_ORGANIC_CHANNELS', - self::GOOGLE_PAID_CHANNELS => 'GOOGLE_PAID_CHANNELS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AdsWebConversionDataExportScope::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_AdsWebConversionDataExportScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php deleted file mode 100644 index 9524df564097..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php +++ /dev/null @@ -1,73 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow - */ -class OtherConversionEventLookbackWindow -{ - /** - * Lookback window size unspecified. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - /** - * 30-day lookback window. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - /** - * 60-day lookback window. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - /** - * 90-day lookback window. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - - private static $valueToName = [ - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED', - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS', - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS', - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OtherConversionEventLookbackWindow::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_OtherConversionEventLookbackWindow::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php deleted file mode 100644 index 8a38d59cf52f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel - */ -class ReportingAttributionModel -{ - /** - * Reporting attribution model unspecified. - * - * Generated from protobuf enum REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; - */ - const REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; - /** - * Data-driven attribution distributes credit for the conversion based on - * data for each conversion event. Each Data-driven model is specific to - * each advertiser and each conversion event. - * Previously CROSS_CHANNEL_DATA_DRIVEN - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; - */ - const PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; - /** - * Ignores direct traffic and attributes 100% of the conversion value to the - * last channel that the customer clicked through (or engaged view through - * for YouTube) before converting. - * Previously CROSS_CHANNEL_LAST_CLICK - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - */ - const PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - /** - * Starting in June 2023, new properties can no longer use this model. - * See - * [Analytics - * Help](https://support.google.com/analytics/answer/9164320#040623) - * for more details. - * Starting in September 2023, we will sunset this model for all properties. - * Gives all credit for the conversion to the first channel that a customer - * clicked (or engaged view through for YouTube) before converting. - * Previously CROSS_CHANNEL_FIRST_CLICK - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - */ - const PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - /** - * Starting in June 2023, new properties can no longer use this model. - * See - * [Analytics - * Help](https://support.google.com/analytics/answer/9164320#040623) - * for more details. - * Starting in September 2023, we will sunset this model for all properties. - * Distributes the credit for the conversion equally across all the channels - * a customer clicked (or engaged view through for YouTube) before - * converting. - * Previously CROSS_CHANNEL_LINEAR - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - */ - const PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - /** - * Starting in June 2023, new properties can no longer use this model. - * See - * [Analytics - * Help](https://support.google.com/analytics/answer/9164320#040623) - * for more details. - * Starting in September 2023, we will sunset this model for all properties. - * Attributes 40% credit to the first and last interaction, and the - * remaining 20% credit is distributed evenly to the middle interactions. - * Previously CROSS_CHANNEL_POSITION_BASED - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - */ - const PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - /** - * Starting in June 2023, new properties can no longer use this model. - * See - * [Analytics - * Help](https://support.google.com/analytics/answer/9164320#040623) - * for more details. - * Starting in September 2023, we will sunset this model for all properties. - * Gives more credit to the touchpoints that happened closer in time to - * the conversion. - * Previously CROSS_CHANNEL_TIME_DECAY - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - */ - const PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - /** - * Attributes 100% of the conversion value to the last Google Paid channel - * that the customer clicked through before converting. - * Previously ADS_PREFERRED_LAST_CLICK - * - * Generated from protobuf enum GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; - */ - const GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; - - private static $valueToName = [ - self::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED => 'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED', - self::PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN => 'PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN', - self::PAID_AND_ORGANIC_CHANNELS_LAST_CLICK => 'PAID_AND_ORGANIC_CHANNELS_LAST_CLICK', - self::PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK => 'PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK', - self::PAID_AND_ORGANIC_CHANNELS_LINEAR => 'PAID_AND_ORGANIC_CHANNELS_LINEAR', - self::PAID_AND_ORGANIC_CHANNELS_POSITION_BASED => 'PAID_AND_ORGANIC_CHANNELS_POSITION_BASED', - self::PAID_AND_ORGANIC_CHANNELS_TIME_DECAY => 'PAID_AND_ORGANIC_CHANNELS_TIME_DECAY', - self::GOOGLE_PAID_CHANNELS_LAST_CLICK => 'GOOGLE_PAID_CHANNELS_LAST_CLICK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReportingAttributionModel::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_ReportingAttributionModel::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php deleted file mode 100644 index 07840fea614f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php +++ /dev/null @@ -1,343 +0,0 @@ -google.analytics.admin.v1alpha.Audience - */ -class Audience extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The display name of the Audience. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The description of the Audience. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * - * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $membership_duration_days = 0; - /** - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * - * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ads_personalization_enabled = false; - /** - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $event_trigger = null; - /** - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $exclusion_duration_mode = 0; - /** - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $filter_clauses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * @type string $display_name - * Required. The display name of the Audience. - * @type string $description - * Required. The description of the Audience. - * @type int $membership_duration_days - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * @type bool $ads_personalization_enabled - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * @type \Google\Analytics\Admin\V1alpha\AudienceEventTrigger $event_trigger - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * @type int $exclusion_duration_mode - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the Audience. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the Audience. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The description of the Audience. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. The description of the Audience. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * - * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getMembershipDurationDays() - { - return $this->membership_duration_days; - } - - /** - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * - * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setMembershipDurationDays($var) - { - GPBUtil::checkInt32($var); - $this->membership_duration_days = $var; - - return $this; - } - - /** - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * - * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - /** - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * - * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkBool($var); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\AudienceEventTrigger|null - */ - public function getEventTrigger() - { - return $this->event_trigger; - } - - public function hasEventTrigger() - { - return isset($this->event_trigger); - } - - public function clearEventTrigger() - { - unset($this->event_trigger); - } - - /** - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\AudienceEventTrigger $var - * @return $this - */ - public function setEventTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger::class); - $this->event_trigger = $var; - - return $this; - } - - /** - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getExclusionDurationMode() - { - return $this->exclusion_duration_mode; - } - - /** - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setExclusionDurationMode($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\Audience\AudienceExclusionDurationMode::class); - $this->exclusion_duration_mode = $var; - - return $this; - } - - /** - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterClauses() - { - return $this->filter_clauses; - } - - /** - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @param array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterClauses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceFilterClause::class); - $this->filter_clauses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php deleted file mode 100644 index 21f2bcb25177..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode - */ -class AudienceExclusionDurationMode -{ - /** - * Not specified. - * - * Generated from protobuf enum AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - */ - const AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - /** - * Exclude users from the Audience during periods when they meet the - * filter clause. - * - * Generated from protobuf enum EXCLUDE_TEMPORARILY = 1; - */ - const EXCLUDE_TEMPORARILY = 1; - /** - * Exclude users from the Audience if they've ever met the filter clause. - * - * Generated from protobuf enum EXCLUDE_PERMANENTLY = 2; - */ - const EXCLUDE_PERMANENTLY = 2; - - private static $valueToName = [ - self::AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED => 'AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED', - self::EXCLUDE_TEMPORARILY => 'EXCLUDE_TEMPORARILY', - self::EXCLUDE_PERMANENTLY => 'EXCLUDE_PERMANENTLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AudienceExclusionDurationMode::class, \Google\Analytics\Admin\V1alpha\Audience_AudienceExclusionDurationMode::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php deleted file mode 100644 index 40a3b3c74607..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php +++ /dev/null @@ -1,350 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - */ -class AudienceDimensionOrMetricFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $field_name = ''; - /** - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * - * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $at_any_point_in_time = false; - /** - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * - * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $in_any_n_day_period = 0; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter $in_list_filter - * A filter for a string dimension that matches a particular list of - * options. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter $numeric_filter - * A filter for numeric or date values on a dimension or metric. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter $between_filter - * A filter for numeric or date values between certain values on a dimension - * or metric. - * @type string $field_name - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * @type bool $at_any_point_in_time - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * @type int $in_any_n_day_period - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values on a dimension or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values on a dimension or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for numeric or date values between certain values on a dimension - * or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for numeric or date values between certain values on a dimension - * or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * - * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAtAnyPointInTime() - { - return $this->at_any_point_in_time; - } - - /** - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * - * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAtAnyPointInTime($var) - { - GPBUtil::checkBool($var); - $this->at_any_point_in_time = $var; - - return $this; - } - - /** - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * - * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getInAnyNDayPeriod() - { - return $this->in_any_n_day_period; - } - - /** - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * - * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setInAnyNDayPeriod($var) - { - GPBUtil::checkInt32($var); - $this->in_any_n_day_period = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php deleted file mode 100644 index 65db89b7a769..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - */ -class BetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Begins with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $from_value = null; - /** - * Required. Ends with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $from_value - * Required. Begins with this number, inclusive. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $to_value - * Required. Ends with this number, inclusive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Begins with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Required. Begins with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Required. Ends with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Required. Ends with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BetweenFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_BetweenFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php deleted file mode 100644 index a3669928d13c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The list of possible string values to match against. Must be - * non-empty. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php deleted file mode 100644 index e1ef6d8bf551..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - */ -class NumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The operation applied to a numeric filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $operation = 0; - /** - * Required. The numeric or date value to match against. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * Required. The operation applied to a numeric filter. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $value - * Required. The numeric or date value to match against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The operation applied to a numeric filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * Required. The operation applied to a numeric filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * Required. The numeric or date value to match against. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Required. The numeric or date value to match against. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php deleted file mode 100644 index b2b52d8a9dfb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal. - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than. - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Greater than. - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::GREATER_THAN => 'GREATER_THAN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php deleted file mode 100644 index d65da128ca78..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value. - * @type float $double_value - * Double value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Integer value. - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value. - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value. - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value. - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericValue::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericValue::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php deleted file mode 100644 index c491bcd0cde5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php +++ /dev/null @@ -1,142 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value to be matched against. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php deleted file mode 100644 index 105fe57e2707..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full regular expression matches with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php deleted file mode 100644 index c69832492219..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.AudienceEventFilter - */ -class AudienceEventFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The name of the event to match against. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $event_name = ''; - /** - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $event_parameter_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * Required. Immutable. The name of the event to match against. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $event_parameter_filter_expression - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The name of the event to match against. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Required. Immutable. The name of the event to match against. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getEventParameterFilterExpression() - { - return $this->event_parameter_filter_expression; - } - - public function hasEventParameterFilterExpression() - { - return isset($this->event_parameter_filter_expression); - } - - public function clearEventParameterFilterExpression() - { - unset($this->event_parameter_filter_expression); - } - - /** - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setEventParameterFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->event_parameter_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php deleted file mode 100644 index 59c9d32c6bbc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1alpha.AudienceEventTrigger - */ -class AudienceEventTrigger extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The event name that will be logged. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_name = ''; - /** - * Required. When to log the event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $log_condition = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * Required. The event name that will be logged. - * @type int $log_condition - * Required. When to log the event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The event name that will be logged. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Required. The event name that will be logged. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Required. When to log the event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLogCondition() - { - return $this->log_condition; - } - - /** - * Required. When to log the event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLogCondition($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger\LogCondition::class); - $this->log_condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php deleted file mode 100644 index 601573c7be47..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition - */ -class LogCondition -{ - /** - * Log condition is not specified. - * - * Generated from protobuf enum LOG_CONDITION_UNSPECIFIED = 0; - */ - const LOG_CONDITION_UNSPECIFIED = 0; - /** - * The event should be logged only when a user is joined. - * - * Generated from protobuf enum AUDIENCE_JOINED = 1; - */ - const AUDIENCE_JOINED = 1; - /** - * The event should be logged whenever the Audience condition is met, even - * if the user is already a member of the Audience. - * - * Generated from protobuf enum AUDIENCE_MEMBERSHIP_RENEWED = 2; - */ - const AUDIENCE_MEMBERSHIP_RENEWED = 2; - - private static $valueToName = [ - self::LOG_CONDITION_UNSPECIFIED => 'LOG_CONDITION_UNSPECIFIED', - self::AUDIENCE_JOINED => 'AUDIENCE_JOINED', - self::AUDIENCE_MEMBERSHIP_RENEWED => 'AUDIENCE_MEMBERSHIP_RENEWED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogCondition::class, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger_LogCondition::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php deleted file mode 100644 index 678328c5477b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterClause - */ -class AudienceFilterClause extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies whether this is an include or exclude filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $clause_type = 0; - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter $simple_filter - * A simple filter that a user must satisfy to be a member of the Audience. - * @type \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter $sequence_filter - * Filters that must occur in a specific order for the user to be a member - * of the Audience. - * @type int $clause_type - * Required. Specifies whether this is an include or exclude filter clause. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A simple filter that a user must satisfy to be a member of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter|null - */ - public function getSimpleFilter() - { - return $this->readOneof(2); - } - - public function hasSimpleFilter() - { - return $this->hasOneof(2); - } - - /** - * A simple filter that a user must satisfy to be a member of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter $var - * @return $this - */ - public function setSimpleFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Filters that must occur in a specific order for the user to be a member - * of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter|null - */ - public function getSequenceFilter() - { - return $this->readOneof(3); - } - - public function hasSequenceFilter() - { - return $this->hasOneof(3); - } - - /** - * Filters that must occur in a specific order for the user to be a member - * of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter $var - * @return $this - */ - public function setSequenceFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. Specifies whether this is an include or exclude filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getClauseType() - { - return $this->clause_type; - } - - /** - * Required. Specifies whether this is an include or exclude filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setClauseType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterClause\AudienceClauseType::class); - $this->clause_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php deleted file mode 100644 index a15a7e9cb3b7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType - */ -class AudienceClauseType -{ - /** - * Unspecified clause type. - * - * Generated from protobuf enum AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - const AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - /** - * Users will be included in the Audience if the filter clause is met. - * - * Generated from protobuf enum INCLUDE = 1; - */ - const PBINCLUDE = 1; - /** - * Users will be excluded from the Audience if the filter clause is met. - * - * Generated from protobuf enum EXCLUDE = 2; - */ - const EXCLUDE = 2; - - private static $valueToName = [ - self::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED => 'AUDIENCE_CLAUSE_TYPE_UNSPECIFIED', - self::PBINCLUDE => 'INCLUDE', - self::EXCLUDE => 'EXCLUDE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AudienceClauseType::class, \Google\Analytics\Admin\V1alpha\AudienceFilterClause_AudienceClauseType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php deleted file mode 100644 index 6ba4a70db679..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php +++ /dev/null @@ -1,228 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterExpression - */ -class AudienceFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $and_group - * A list of expressions to be AND’ed together. It can only contain - * AudienceFilterExpressions with or_group. This must be set for the top - * level AudienceFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $or_group - * A list of expressions to OR’ed together. It cannot contain - * AudienceFilterExpressions with and_group or or_group. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $not_expression - * A filter expression to be NOT'ed (For example, inverted, complemented). - * It can only include a dimension_or_metric_filter. This cannot be set on - * the top level AudienceFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter $dimension_or_metric_filter - * A filter on a single dimension or metric. This cannot be set on the top - * level AudienceFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\AudienceEventFilter $event_filter - * Creates a filter that matches a specific event. This cannot be set on the - * top level AudienceFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * AudienceFilterExpressions with or_group. This must be set for the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * AudienceFilterExpressions with or_group. This must be set for the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * AudienceFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * AudienceFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (For example, inverted, complemented). - * It can only include a dimension_or_metric_filter. This cannot be set on - * the top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * A filter expression to be NOT'ed (For example, inverted, complemented). - * It can only include a dimension_or_metric_filter. This cannot be set on - * the top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter on a single dimension or metric. This cannot be set on the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter|null - */ - public function getDimensionOrMetricFilter() - { - return $this->readOneof(4); - } - - public function hasDimensionOrMetricFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter on a single dimension or metric. This cannot be set on the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter $var - * @return $this - */ - public function setDimensionOrMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Creates a filter that matches a specific event. This cannot be set on the - * top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AudienceEventFilter|null - */ - public function getEventFilter() - { - return $this->readOneof(5); - } - - public function hasEventFilter() - { - return $this->hasOneof(5); - } - - /** - * Creates a filter that matches a specific event. This cannot be set on the - * top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AudienceEventFilter $var - * @return $this - */ - public function setEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceEventFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php deleted file mode 100644 index 8b88c4a949e6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterExpressionList - */ -class AudienceFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Audience filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * A list of Audience filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A list of Audience filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * A list of Audience filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AudienceFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php deleted file mode 100644 index c435fdcb3dcb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterScope - */ -class AudienceFilterScope -{ - /** - * Scope is not specified. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; - */ - const AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; - /** - * User joins the Audience if the filter condition is met within one - * event. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; - */ - const AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; - /** - * User joins the Audience if the filter condition is met within one - * session. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; - */ - const AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; - /** - * User joins the Audience if the filter condition is met by any event - * across any session. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; - */ - const AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; - - private static $valueToName = [ - self::AUDIENCE_FILTER_SCOPE_UNSPECIFIED => 'AUDIENCE_FILTER_SCOPE_UNSPECIFIED', - self::AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT => 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT', - self::AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION => 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION', - self::AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS => 'AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php deleted file mode 100644 index 8488446af7a6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1alpha.AudienceSequenceFilter - */ -class AudienceSequenceFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. Defines the time period in which the whole sequence must occur. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sequence_maximum_duration = null; - /** - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $sequence_steps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Required. Immutable. Specifies the scope for this filter. - * @type \Google\Protobuf\Duration $sequence_maximum_duration - * Optional. Defines the time period in which the whole sequence must occur. - * @type array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $sequence_steps - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Defines the time period in which the whole sequence must occur. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getSequenceMaximumDuration() - { - return $this->sequence_maximum_duration; - } - - public function hasSequenceMaximumDuration() - { - return isset($this->sequence_maximum_duration); - } - - public function clearSequenceMaximumDuration() - { - unset($this->sequence_maximum_duration); - } - - /** - * Optional. Defines the time period in which the whole sequence must occur. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setSequenceMaximumDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->sequence_maximum_duration = $var; - - return $this; - } - - /** - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSequenceSteps() - { - return $this->sequence_steps; - } - - /** - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSequenceSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep::class); - $this->sequence_steps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php deleted file mode 100644 index 13ca6308dfd6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php +++ /dev/null @@ -1,225 +0,0 @@ -google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - */ -class AudienceSequenceStep extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Specifies the scope for this step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * - * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $immediately_follows = false; - /** - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * - * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $constraint_duration = null; - /** - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Required. Immutable. Specifies the scope for this step. - * @type bool $immediately_follows - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * @type \Google\Protobuf\Duration $constraint_duration - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $filter_expression - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Specifies the scope for this step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. Specifies the scope for this step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * - * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getImmediatelyFollows() - { - return $this->immediately_follows; - } - - /** - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * - * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setImmediatelyFollows($var) - { - GPBUtil::checkBool($var); - $this->immediately_follows = $var; - - return $this; - } - - /** - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * - * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getConstraintDuration() - { - return $this->constraint_duration; - } - - public function hasConstraintDuration() - { - return isset($this->constraint_duration); - } - - public function clearConstraintDuration() - { - unset($this->constraint_duration); - } - - /** - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * - * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setConstraintDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->constraint_duration = $var; - - return $this; - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getFilterExpression() - { - return $this->filter_expression; - } - - public function hasFilterExpression() - { - return isset($this->filter_expression); - } - - public function clearFilterExpression() - { - unset($this->filter_expression); - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->filter_expression = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AudienceSequenceStep::class, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter_AudienceSequenceStep::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php deleted file mode 100644 index 26f27aa25a82..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php +++ /dev/null @@ -1,116 +0,0 @@ -google.analytics.admin.v1alpha.AudienceSimpleFilter - */ -class AudienceSimpleFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Required. Immutable. Specifies the scope for this filter. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $filter_expression - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getFilterExpression() - { - return $this->filter_expression; - } - - public function hasFilterExpression() - { - return isset($this->filter_expression); - } - - public function clearFilterExpression() - { - unset($this->filter_expression); - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php deleted file mode 100644 index 537b7dbd330a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest - */ -class BatchCreateAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @type array<\Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php deleted file mode 100644 index 20b38e1f4086..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse - */ -class BatchCreateAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The access bindings created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * The access bindings created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The access bindings created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * The access bindings created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php deleted file mode 100644 index 4aae0f4947b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest - */ -class BatchDeleteAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @type array<\Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php deleted file mode 100644 index b1880eb346b5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest - */ -class BatchGetAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @type array|\Google\Protobuf\Internal\RepeatedField $names - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php deleted file mode 100644 index 1d081d8da436..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse - */ -class BatchGetAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested access bindings. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * The requested access bindings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested access bindings. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * The requested access bindings. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php deleted file mode 100644 index a79e2f38d164..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest - */ -class BatchUpdateAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @type array<\Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php deleted file mode 100644 index 9624005bb343..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse - */ -class BatchUpdateAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The access bindings updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * The access bindings updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The access bindings updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * The access bindings updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php deleted file mode 100644 index dbdff98a75fc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php +++ /dev/null @@ -1,393 +0,0 @@ -google.analytics.admin.v1alpha.BigQueryLink - */ -class BigQueryLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project = ''; - /** - * Output only. Time when the link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * If set true, enables daily data export to the linked Google Cloud project. - * - * Generated from protobuf field bool daily_export_enabled = 4; - */ - protected $daily_export_enabled = false; - /** - * If set true, enables streaming export to the linked Google Cloud project. - * - * Generated from protobuf field bool streaming_export_enabled = 5; - */ - protected $streaming_export_enabled = false; - /** - * If set true, enables fresh daily export to the linked Google Cloud project. - * - * Generated from protobuf field bool fresh_daily_export_enabled = 9; - */ - protected $fresh_daily_export_enabled = false; - /** - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * - * Generated from protobuf field bool include_advertising_id = 6; - */ - protected $include_advertising_id = false; - /** - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * - * Generated from protobuf field repeated string export_streams = 7; - */ - private $export_streams; - /** - * The list of event names that will be excluded from exports. - * - * Generated from protobuf field repeated string excluded_events = 8; - */ - private $excluded_events; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * @type string $project - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the link was created. - * @type bool $daily_export_enabled - * If set true, enables daily data export to the linked Google Cloud project. - * @type bool $streaming_export_enabled - * If set true, enables streaming export to the linked Google Cloud project. - * @type bool $fresh_daily_export_enabled - * If set true, enables fresh daily export to the linked Google Cloud project. - * @type bool $include_advertising_id - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * @type array|\Google\Protobuf\Internal\RepeatedField $export_streams - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_events - * The list of event names that will be excluded from exports. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. Time when the link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * If set true, enables daily data export to the linked Google Cloud project. - * - * Generated from protobuf field bool daily_export_enabled = 4; - * @return bool - */ - public function getDailyExportEnabled() - { - return $this->daily_export_enabled; - } - - /** - * If set true, enables daily data export to the linked Google Cloud project. - * - * Generated from protobuf field bool daily_export_enabled = 4; - * @param bool $var - * @return $this - */ - public function setDailyExportEnabled($var) - { - GPBUtil::checkBool($var); - $this->daily_export_enabled = $var; - - return $this; - } - - /** - * If set true, enables streaming export to the linked Google Cloud project. - * - * Generated from protobuf field bool streaming_export_enabled = 5; - * @return bool - */ - public function getStreamingExportEnabled() - { - return $this->streaming_export_enabled; - } - - /** - * If set true, enables streaming export to the linked Google Cloud project. - * - * Generated from protobuf field bool streaming_export_enabled = 5; - * @param bool $var - * @return $this - */ - public function setStreamingExportEnabled($var) - { - GPBUtil::checkBool($var); - $this->streaming_export_enabled = $var; - - return $this; - } - - /** - * If set true, enables fresh daily export to the linked Google Cloud project. - * - * Generated from protobuf field bool fresh_daily_export_enabled = 9; - * @return bool - */ - public function getFreshDailyExportEnabled() - { - return $this->fresh_daily_export_enabled; - } - - /** - * If set true, enables fresh daily export to the linked Google Cloud project. - * - * Generated from protobuf field bool fresh_daily_export_enabled = 9; - * @param bool $var - * @return $this - */ - public function setFreshDailyExportEnabled($var) - { - GPBUtil::checkBool($var); - $this->fresh_daily_export_enabled = $var; - - return $this; - } - - /** - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * - * Generated from protobuf field bool include_advertising_id = 6; - * @return bool - */ - public function getIncludeAdvertisingId() - { - return $this->include_advertising_id; - } - - /** - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * - * Generated from protobuf field bool include_advertising_id = 6; - * @param bool $var - * @return $this - */ - public function setIncludeAdvertisingId($var) - { - GPBUtil::checkBool($var); - $this->include_advertising_id = $var; - - return $this; - } - - /** - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * - * Generated from protobuf field repeated string export_streams = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExportStreams() - { - return $this->export_streams; - } - - /** - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * - * Generated from protobuf field repeated string export_streams = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExportStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->export_streams = $arr; - - return $this; - } - - /** - * The list of event names that will be excluded from exports. - * - * Generated from protobuf field repeated string excluded_events = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedEvents() - { - return $this->excluded_events; - } - - /** - * The list of event names that will be excluded from exports. - * - * Generated from protobuf field repeated string excluded_events = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_events = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index ef65eb9e7af7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest - */ -class CancelDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php deleted file mode 100644 index a02c687dc6f1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php +++ /dev/null @@ -1,197 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryChange - */ -class ChangeHistoryChange extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - */ - protected $resource = ''; - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; - */ - protected $action = 0; - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - protected $resource_before_change = null; - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - protected $resource_after_change = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Resource name of the resource whose changes are described by this entry. - * @type int $action - * The type of action that changed this resource. - * @type \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $resource_before_change - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * @type \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $resource_after_change - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ActionType::class); - $this->action = $var; - - return $this; - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceBeforeChange() - { - return $this->resource_before_change; - } - - public function hasResourceBeforeChange() - { - return isset($this->resource_before_change); - } - - public function clearResourceBeforeChange() - { - unset($this->resource_before_change); - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @param \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceBeforeChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_before_change = $var; - - return $this; - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceAfterChange() - { - return $this->resource_after_change; - } - - public function hasResourceAfterChange() - { - return isset($this->resource_after_change); - } - - public function clearResourceAfterChange() - { - unset($this->resource_after_change); - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @param \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceAfterChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_after_change = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php deleted file mode 100644 index 782755107f06..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php +++ /dev/null @@ -1,847 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - */ -class ChangeHistoryResource extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Account $account - * A snapshot of an Account resource in change history. - * @type \Google\Analytics\Admin\V1alpha\Property $property - * A snapshot of a Property resource in change history. - * @type \Google\Analytics\Admin\V1alpha\FirebaseLink $firebase_link - * A snapshot of a FirebaseLink resource in change history. - * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link - * A snapshot of a GoogleAdsLink resource in change history. - * @type \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $google_signals_settings - * A snapshot of a GoogleSignalsSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * A snapshot of a DisplayVideo360AdvertiserLink resource in change - * history. - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal - * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - * change history. - * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event - * A snapshot of a ConversionEvent resource in change history. - * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret - * A snapshot of a MeasurementProtocolSecret resource in change history. - * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension - * A snapshot of a CustomDimension resource in change history. - * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric - * A snapshot of a CustomMetric resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings - * A snapshot of a data retention settings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link - * A snapshot of a SearchAds360Link resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream - * A snapshot of a DataStream resource in change history. - * @type \Google\Analytics\Admin\V1alpha\AttributionSettings $attribution_settings - * A snapshot of AttributionSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set - * A snapshot of an ExpandedDataSet resource in change history. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group - * A snapshot of a ChannelGroup resource in change history. - * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link - * A snapshot of a BigQuery link resource in change history. - * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings - * A snapshot of EnhancedMeasurementSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings - * A snapshot of DataRedactionSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema - * A snapshot of SKAdNetworkConversionValueSchema resource in change - * history. - * @type \Google\Analytics\Admin\V1alpha\AdSenseLink $adsense_link - * A snapshot of an AdSenseLink resource in change history. - * @type \Google\Analytics\Admin\V1alpha\Audience $audience - * A snapshot of an Audience resource in change history. - * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule - * A snapshot of an EventCreateRule resource in change history. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @return \Google\Analytics\Admin\V1alpha\Account|null - */ - public function getAccount() - { - return $this->readOneof(1); - } - - public function hasAccount() - { - return $this->hasOneof(1); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @param \Google\Analytics\Admin\V1alpha\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 2; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getProperty() - { - return $this->readOneof(2); - } - - public function hasProperty() - { - return $this->hasOneof(2); - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 2; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return \Google\Analytics\Admin\V1alpha\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->readOneof(6); - } - - public function hasFirebaseLink() - { - return $this->hasOneof(6); - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @param \Google\Analytics\Admin\V1alpha\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->readOneof(7); - } - - public function hasGoogleAdsLink() - { - return $this->hasOneof(7); - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * A snapshot of a GoogleSignalsSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings|null - */ - public function getGoogleSignalsSettings() - { - return $this->readOneof(8); - } - - public function hasGoogleSignalsSettings() - { - return $this->hasOneof(8); - } - - /** - * A snapshot of a GoogleSignalsSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @param \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $var - * @return $this - */ - public function setGoogleSignalsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLink resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->readOneof(9); - } - - public function hasDisplayVideo360AdvertiserLink() - { - return $this->hasOneof(9); - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLink resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - * change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null - */ - public function getDisplayVideo360AdvertiserLinkProposal() - { - return $this->readOneof(10); - } - - public function hasDisplayVideo360AdvertiserLinkProposal() - { - return $this->hasOneof(10); - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - * change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinkProposal($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->readOneof(11); - } - - public function hasConversionEvent() - { - return $this->hasOneof(11); - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->readOneof(12); - } - - public function hasMeasurementProtocolSecret() - { - return $this->hasOneof(12); - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * A snapshot of a CustomDimension resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->readOneof(13); - } - - public function hasCustomDimension() - { - return $this->hasOneof(13); - } - - /** - * A snapshot of a CustomDimension resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * A snapshot of a CustomMetric resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->readOneof(14); - } - - public function hasCustomMetric() - { - return $this->hasOneof(14); - } - - /** - * A snapshot of a CustomMetric resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->readOneof(15); - } - - public function hasDataRetentionSettings() - { - return $this->hasOneof(15); - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * A snapshot of a SearchAds360Link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null - */ - public function getSearchAds360Link() - { - return $this->readOneof(16); - } - - public function hasSearchAds360Link() - { - return $this->hasOneof(16); - } - - /** - * A snapshot of a SearchAds360Link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var - * @return $this - */ - public function setSearchAds360Link($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return \Google\Analytics\Admin\V1alpha\DataStream|null - */ - public function getDataStream() - { - return $this->readOneof(18); - } - - public function hasDataStream() - { - return $this->hasOneof(18); - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @param \Google\Analytics\Admin\V1alpha\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * A snapshot of AttributionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings|null - */ - public function getAttributionSettings() - { - return $this->readOneof(20); - } - - public function hasAttributionSettings() - { - return $this->hasOneof(20); - } - - /** - * A snapshot of AttributionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $var - * @return $this - */ - public function setAttributionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AttributionSettings::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * A snapshot of an ExpandedDataSet resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null - */ - public function getExpandedDataSet() - { - return $this->readOneof(21); - } - - public function hasExpandedDataSet() - { - return $this->hasOneof(21); - } - - /** - * A snapshot of an ExpandedDataSet resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var - * @return $this - */ - public function setExpandedDataSet($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * A snapshot of a ChannelGroup resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null - */ - public function getChannelGroup() - { - return $this->readOneof(22); - } - - public function hasChannelGroup() - { - return $this->hasOneof(22); - } - - /** - * A snapshot of a ChannelGroup resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var - * @return $this - */ - public function setChannelGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * A snapshot of a BigQuery link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null - */ - public function getBigqueryLink() - { - return $this->readOneof(23); - } - - public function hasBigqueryLink() - { - return $this->hasOneof(23); - } - - /** - * A snapshot of a BigQuery link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var - * @return $this - */ - public function setBigqueryLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); - $this->writeOneof(23, $var); - - return $this; - } - - /** - * A snapshot of EnhancedMeasurementSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings|null - */ - public function getEnhancedMeasurementSettings() - { - return $this->readOneof(24); - } - - public function hasEnhancedMeasurementSettings() - { - return $this->hasOneof(24); - } - - /** - * A snapshot of EnhancedMeasurementSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $var - * @return $this - */ - public function setEnhancedMeasurementSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings::class); - $this->writeOneof(24, $var); - - return $this; - } - - /** - * A snapshot of DataRedactionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null - */ - public function getDataRedactionSettings() - { - return $this->readOneof(25); - } - - public function hasDataRedactionSettings() - { - return $this->hasOneof(25); - } - - /** - * A snapshot of DataRedactionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var - * @return $this - */ - public function setDataRedactionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); - $this->writeOneof(25, $var); - - return $this; - } - - /** - * A snapshot of SKAdNetworkConversionValueSchema resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null - */ - public function getSkadnetworkConversionValueSchema() - { - return $this->readOneof(26); - } - - public function hasSkadnetworkConversionValueSchema() - { - return $this->hasOneof(26); - } - - /** - * A snapshot of SKAdNetworkConversionValueSchema resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var - * @return $this - */ - public function setSkadnetworkConversionValueSchema($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * A snapshot of an AdSenseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink|null - */ - public function getAdsenseLink() - { - return $this->readOneof(27); - } - - public function hasAdsenseLink() - { - return $this->hasOneof(27); - } - - /** - * A snapshot of an AdSenseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $var - * @return $this - */ - public function setAdsenseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * A snapshot of an Audience resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 28; - * @return \Google\Analytics\Admin\V1alpha\Audience|null - */ - public function getAudience() - { - return $this->readOneof(28); - } - - public function hasAudience() - { - return $this->hasOneof(28); - } - - /** - * A snapshot of an Audience resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 28; - * @param \Google\Analytics\Admin\V1alpha\Audience $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->writeOneof(28, $var); - - return $this; - } - - /** - * A snapshot of an EventCreateRule resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null - */ - public function getEventCreateRule() - { - return $this->readOneof(29); - } - - public function hasEventCreateRule() - { - return $this->hasOneof(29); - } - - /** - * A snapshot of an EventCreateRule resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var - * @return $this - */ - public function setEventCreateRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->writeOneof(29, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChangeHistoryResource::class, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange_ChangeHistoryResource::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php deleted file mode 100644 index d399dea64b76..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php +++ /dev/null @@ -1,266 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryEvent - */ -class ChangeHistoryEvent extends \Google\Protobuf\Internal\Message -{ - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - */ - protected $change_time = null; - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; - */ - protected $actor_type = 0; - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - */ - protected $user_actor_email = ''; - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - */ - protected $changes_filtered = false; - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - private $changes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of this change history event. This ID is unique across Google Analytics. - * @type \Google\Protobuf\Timestamp $change_time - * Time when change was made. - * @type int $actor_type - * The type of actor that made this change. - * @type string $user_actor_email - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * @type bool $changes_filtered - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * @type array<\Google\Analytics\Admin\V1alpha\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $changes - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getChangeTime() - { - return $this->change_time; - } - - public function hasChangeTime() - { - return isset($this->change_time); - } - - public function clearChangeTime() - { - unset($this->change_time); - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->change_time = $var; - - return $this; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return int - */ - public function getActorType() - { - return $this->actor_type; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @param int $var - * @return $this - */ - public function setActorType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ActorType::class); - $this->actor_type = $var; - - return $this; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @return string - */ - public function getUserActorEmail() - { - return $this->user_actor_email; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @param string $var - * @return $this - */ - public function setUserActorEmail($var) - { - GPBUtil::checkString($var, True); - $this->user_actor_email = $var; - - return $this; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @return bool - */ - public function getChangesFiltered() - { - return $this->changes_filtered; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @param bool $var - * @return $this - */ - public function setChangesFiltered($var) - { - GPBUtil::checkBool($var); - $this->changes_filtered = $var; - - return $this; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChanges() - { - return $this->changes; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - * @param array<\Google\Analytics\Admin\V1alpha\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange::class); - $this->changes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php deleted file mode 100644 index f42497a79ac6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryResourceType - */ -class ChangeHistoryResourceType -{ - /** - * Resource type unknown or not specified. - * - * Generated from protobuf enum CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Account resource - * - * Generated from protobuf enum ACCOUNT = 1; - */ - const ACCOUNT = 1; - /** - * Property resource - * - * Generated from protobuf enum PROPERTY = 2; - */ - const PROPERTY = 2; - /** - * FirebaseLink resource - * - * Generated from protobuf enum FIREBASE_LINK = 6; - */ - const FIREBASE_LINK = 6; - /** - * GoogleAdsLink resource - * - * Generated from protobuf enum GOOGLE_ADS_LINK = 7; - */ - const GOOGLE_ADS_LINK = 7; - /** - * GoogleSignalsSettings resource - * - * Generated from protobuf enum GOOGLE_SIGNALS_SETTINGS = 8; - */ - const GOOGLE_SIGNALS_SETTINGS = 8; - /** - * ConversionEvent resource - * - * Generated from protobuf enum CONVERSION_EVENT = 9; - */ - const CONVERSION_EVENT = 9; - /** - * MeasurementProtocolSecret resource - * - * Generated from protobuf enum MEASUREMENT_PROTOCOL_SECRET = 10; - */ - const MEASUREMENT_PROTOCOL_SECRET = 10; - /** - * CustomDimension resource - * - * Generated from protobuf enum CUSTOM_DIMENSION = 11; - */ - const CUSTOM_DIMENSION = 11; - /** - * CustomMetric resource - * - * Generated from protobuf enum CUSTOM_METRIC = 12; - */ - const CUSTOM_METRIC = 12; - /** - * DataRetentionSettings resource - * - * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13; - */ - const DATA_RETENTION_SETTINGS = 13; - /** - * DisplayVideo360AdvertiserLink resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - /** - * DisplayVideo360AdvertiserLinkProposal resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - /** - * SearchAds360Link resource - * - * Generated from protobuf enum SEARCH_ADS_360_LINK = 16; - */ - const SEARCH_ADS_360_LINK = 16; - /** - * DataStream resource - * - * Generated from protobuf enum DATA_STREAM = 18; - */ - const DATA_STREAM = 18; - /** - * AttributionSettings resource - * - * Generated from protobuf enum ATTRIBUTION_SETTINGS = 20; - */ - const ATTRIBUTION_SETTINGS = 20; - /** - * ExpandedDataSet resource - * - * Generated from protobuf enum EXPANDED_DATA_SET = 21; - */ - const EXPANDED_DATA_SET = 21; - /** - * ChannelGroup resource - * - * Generated from protobuf enum CHANNEL_GROUP = 22; - */ - const CHANNEL_GROUP = 22; - /** - * EnhancedMeasurementSettings resource - * - * Generated from protobuf enum ENHANCED_MEASUREMENT_SETTINGS = 24; - */ - const ENHANCED_MEASUREMENT_SETTINGS = 24; - /** - * DataRedactionSettings resource - * - * Generated from protobuf enum DATA_REDACTION_SETTINGS = 25; - */ - const DATA_REDACTION_SETTINGS = 25; - /** - * SKAdNetworkConversionValueSchema resource - * - * Generated from protobuf enum SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; - */ - const SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; - /** - * AdSenseLink resource - * - * Generated from protobuf enum ADSENSE_LINK = 27; - */ - const ADSENSE_LINK = 27; - /** - * Audience resource - * - * Generated from protobuf enum AUDIENCE = 28; - */ - const AUDIENCE = 28; - /** - * EventCreateRule resource - * - * Generated from protobuf enum EVENT_CREATE_RULE = 29; - */ - const EVENT_CREATE_RULE = 29; - - private static $valueToName = [ - self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', - self::ACCOUNT => 'ACCOUNT', - self::PROPERTY => 'PROPERTY', - self::FIREBASE_LINK => 'FIREBASE_LINK', - self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK', - self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS', - self::CONVERSION_EVENT => 'CONVERSION_EVENT', - self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET', - self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION', - self::CUSTOM_METRIC => 'CUSTOM_METRIC', - self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL', - self::SEARCH_ADS_360_LINK => 'SEARCH_ADS_360_LINK', - self::DATA_STREAM => 'DATA_STREAM', - self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS', - self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET', - self::CHANNEL_GROUP => 'CHANNEL_GROUP', - self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS', - self::DATA_REDACTION_SETTINGS => 'DATA_REDACTION_SETTINGS', - self::SKADNETWORK_CONVERSION_VALUE_SCHEMA => 'SKADNETWORK_CONVERSION_VALUE_SCHEMA', - self::ADSENSE_LINK => 'ADSENSE_LINK', - self::AUDIENCE => 'AUDIENCE', - self::EVENT_CREATE_RULE => 'EVENT_CREATE_RULE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php deleted file mode 100644 index 4e54fb6bb465..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php +++ /dev/null @@ -1,215 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroup - */ -class ChannelGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * The description of the Channel Group. Max length of 256 characters. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Required. The grouping rules of channels. Maximum number of rules is 25. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $grouping_rule; - /** - * Output only. Default Channel Group defined by Google, which cannot be - * updated. - * - * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $system_defined = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * @type string $display_name - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * @type string $description - * The description of the Channel Group. Max length of 256 characters. - * @type array<\Google\Analytics\Admin\V1alpha\GroupingRule>|\Google\Protobuf\Internal\RepeatedField $grouping_rule - * Required. The grouping rules of channels. Maximum number of rules is 25. - * @type bool $system_defined - * Output only. Default Channel Group defined by Google, which cannot be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The description of the Channel Group. Max length of 256 characters. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the Channel Group. Max length of 256 characters. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The grouping rules of channels. Maximum number of rules is 25. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroupingRule() - { - return $this->grouping_rule; - } - - /** - * Required. The grouping rules of channels. Maximum number of rules is 25. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\GroupingRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroupingRule($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\GroupingRule::class); - $this->grouping_rule = $arr; - - return $this; - } - - /** - * Output only. Default Channel Group defined by Google, which cannot be - * updated. - * - * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSystemDefined() - { - return $this->system_defined; - } - - /** - * Output only. Default Channel Group defined by Google, which cannot be - * updated. - * - * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSystemDefined($var) - { - GPBUtil::checkBool($var); - $this->system_defined = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php deleted file mode 100644 index e655e6cf43f8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php +++ /dev/null @@ -1,145 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter - */ -class ChannelGroupFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $field_name = ''; - protected $value_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter $in_list_filter - * A filter for a string dimension that matches a particular list of - * options. - * @type string $field_name - * Required. Immutable. The dimension name to filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. Immutable. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. Immutable. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getValueFilter() - { - return $this->whichOneof("value_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php deleted file mode 100644 index 7a06e006f7a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The list of possible string values to match against. Must be - * non-empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php deleted file mode 100644 index 11bca6c6afa3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value to be matched against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php deleted file mode 100644 index e2be7673eb98..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Default match type. - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full regular expression match with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial regular expression match with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php deleted file mode 100644 index 7b52c2651c2c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php +++ /dev/null @@ -1,192 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilterExpression - */ -class ChannelGroupFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $and_group - * A list of expressions to be AND’ed together. It can only contain - * ChannelGroupFilterExpressions with or_group. This must be set for the - * top level ChannelGroupFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $or_group - * A list of expressions to OR’ed together. It cannot contain - * ChannelGroupFilterExpressions with and_group or or_group. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $not_expression - * A filter expression to be NOT'ed (that is inverted, complemented). It - * can only include a dimension_or_metric_filter. This cannot be set on the - * top level ChannelGroupFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter $filter - * A filter on a single dimension. This cannot be set on the top - * level ChannelGroupFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * ChannelGroupFilterExpressions with or_group. This must be set for the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * ChannelGroupFilterExpressions with or_group. This must be set for the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * ChannelGroupFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * ChannelGroupFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (that is inverted, complemented). It - * can only include a dimension_or_metric_filter. This cannot be set on the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * A filter expression to be NOT'ed (that is inverted, complemented). It - * can only include a dimension_or_metric_filter. This cannot be set on the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter|null - */ - public function getFilter() - { - return $this->readOneof(4); - } - - public function hasFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php deleted file mode 100644 index 4264488a1755..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList - */ -class ChannelGroupFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Channel Group filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * A list of Channel Group filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * A list of Channel Group filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * A list of Channel Group filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php deleted file mode 100644 index fa2d1aab894e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.CoarseValue - */ -class CoarseValue -{ - /** - * Coarse value not specified. - * - * Generated from protobuf enum COARSE_VALUE_UNSPECIFIED = 0; - */ - const COARSE_VALUE_UNSPECIFIED = 0; - /** - * Coarse value of low. - * - * Generated from protobuf enum COARSE_VALUE_LOW = 1; - */ - const COARSE_VALUE_LOW = 1; - /** - * Coarse value of medium. - * - * Generated from protobuf enum COARSE_VALUE_MEDIUM = 2; - */ - const COARSE_VALUE_MEDIUM = 2; - /** - * Coarse value of high. - * - * Generated from protobuf enum COARSE_VALUE_HIGH = 3; - */ - const COARSE_VALUE_HIGH = 3; - - private static $valueToName = [ - self::COARSE_VALUE_UNSPECIFIED => 'COARSE_VALUE_UNSPECIFIED', - self::COARSE_VALUE_LOW => 'COARSE_VALUE_LOW', - self::COARSE_VALUE_MEDIUM => 'COARSE_VALUE_MEDIUM', - self::COARSE_VALUE_HIGH => 'COARSE_VALUE_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php deleted file mode 100644 index 4e530bbbbbd9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ConnectedSiteTag - */ -class ConnectedSiteTag extends \Google\Protobuf\Internal\Message -{ - /** - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tag_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * @type string $tag_id - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTagId() - { - return $this->tag_id; - } - - /** - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTagId($var) - { - GPBUtil::checkString($var, True); - $this->tag_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php deleted file mode 100644 index 32b00e21aab5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php +++ /dev/null @@ -1,287 +0,0 @@ -google.analytics.admin.v1alpha.ConversionEvent - */ -class ConversionEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $event_name = ''; - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = false; - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = false; - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $counting_method = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * @type string $event_name - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this conversion event was created in the property. - * @type bool $deletable - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * @type bool $custom - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * @type int $counting_method - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeletable() - { - return $this->deletable; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeletable($var) - { - GPBUtil::checkBool($var); - $this->deletable = $var; - - return $this; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCustom() - { - return $this->custom; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkBool($var); - $this->custom = $var; - - return $this; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCountingMethod() - { - return $this->counting_method; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCountingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ConversionEvent\ConversionCountingMethod::class); - $this->counting_method = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php deleted file mode 100644 index b22477370f5a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod - */ -class ConversionCountingMethod -{ - /** - * Counting method not specified. - * - * Generated from protobuf enum CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - const CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - /** - * Each Event instance is considered a Conversion. - * - * Generated from protobuf enum ONCE_PER_EVENT = 1; - */ - const ONCE_PER_EVENT = 1; - /** - * An Event instance is considered a Conversion at most once per session per - * user. - * - * Generated from protobuf enum ONCE_PER_SESSION = 2; - */ - const ONCE_PER_SESSION = 2; - - private static $valueToName = [ - self::CONVERSION_COUNTING_METHOD_UNSPECIFIED => 'CONVERSION_COUNTING_METHOD_UNSPECIFIED', - self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', - self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConversionCountingMethod::class, \Google\Analytics\Admin\V1alpha\ConversionEvent_ConversionCountingMethod::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php deleted file mode 100644 index 6a01fe7ab131..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php +++ /dev/null @@ -1,254 +0,0 @@ -google.analytics.admin.v1alpha.ConversionValues - */ -class ConversionValues extends \Google\Protobuf\Internal\Message -{ - /** - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * - * Generated from protobuf field optional int32 fine_value = 2; - */ - protected $fine_value = null; - /** - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $coarse_value = 0; - /** - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; - */ - private $event_mappings; - /** - * If true, the SDK should lock to this conversion value for the current - * postback window. - * - * Generated from protobuf field bool lock_enabled = 5; - */ - protected $lock_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * @type int $fine_value - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * @type int $coarse_value - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * @type array<\Google\Analytics\Admin\V1alpha\EventMapping>|\Google\Protobuf\Internal\RepeatedField $event_mappings - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * @type bool $lock_enabled - * If true, the SDK should lock to this conversion value for the current - * postback window. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * - * Generated from protobuf field optional int32 fine_value = 2; - * @return int - */ - public function getFineValue() - { - return isset($this->fine_value) ? $this->fine_value : 0; - } - - public function hasFineValue() - { - return isset($this->fine_value); - } - - public function clearFineValue() - { - unset($this->fine_value); - } - - /** - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * - * Generated from protobuf field optional int32 fine_value = 2; - * @param int $var - * @return $this - */ - public function setFineValue($var) - { - GPBUtil::checkInt32($var); - $this->fine_value = $var; - - return $this; - } - - /** - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCoarseValue() - { - return $this->coarse_value; - } - - /** - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCoarseValue($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CoarseValue::class); - $this->coarse_value = $var; - - return $this; - } - - /** - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventMappings() - { - return $this->event_mappings; - } - - /** - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; - * @param array<\Google\Analytics\Admin\V1alpha\EventMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventMapping::class); - $this->event_mappings = $arr; - - return $this; - } - - /** - * If true, the SDK should lock to this conversion value for the current - * postback window. - * - * Generated from protobuf field bool lock_enabled = 5; - * @return bool - */ - public function getLockEnabled() - { - return $this->lock_enabled; - } - - /** - * If true, the SDK should lock to this conversion value for the current - * postback window. - * - * Generated from protobuf field bool lock_enabled = 5; - * @param bool $var - * @return $this - */ - public function setLockEnabled($var) - { - GPBUtil::checkBool($var); - $this->lock_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php deleted file mode 100644 index fd8100328afe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.analytics.admin.v1alpha.CreateAccessBindingRequest - */ -class CreateAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The access binding to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_binding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * @type \Google\Analytics\Admin\V1alpha\AccessBinding $access_binding - * Required. The access binding to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The access binding to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AccessBinding|null - */ - public function getAccessBinding() - { - return $this->access_binding; - } - - public function hasAccessBinding() - { - return isset($this->access_binding); - } - - public function clearAccessBinding() - { - unset($this->access_binding); - } - - /** - * Required. The access binding to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AccessBinding $var - * @return $this - */ - public function setAccessBinding($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_binding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php deleted file mode 100644 index 2b0bb93f59e8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.analytics.admin.v1alpha.CreateAdSenseLinkRequest - */ -class CreateAdSenseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The AdSense Link to create - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $adsense_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\AdSenseLink $adsense_link - * Required. The AdSense Link to create - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The AdSense Link to create - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink|null - */ - public function getAdsenseLink() - { - return $this->adsense_link; - } - - public function hasAdsenseLink() - { - return isset($this->adsense_link); - } - - public function clearAdsenseLink() - { - unset($this->adsense_link); - } - - /** - * Required. The AdSense Link to create - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $var - * @return $this - */ - public function setAdsenseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); - $this->adsense_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php deleted file mode 100644 index f45fb9a56046..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateAudienceRequest - */ -class CreateAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The audience to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\Audience $audience - * Required. The audience to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The audience to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Audience|null - */ - public function getAudience() - { - return $this->audience; - } - - public function hasAudience() - { - return isset($this->audience); - } - - public function clearAudience() - { - unset($this->audience); - } - - /** - * Required. The audience to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Audience $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->audience = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php deleted file mode 100644 index 71a7df254dfa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateChannelGroupRequest - */ -class CreateChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ChannelGroup to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_group = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group - * Required. The ChannelGroup to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ChannelGroup to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null - */ - public function getChannelGroup() - { - return $this->channel_group; - } - - public function hasChannelGroup() - { - return isset($this->channel_group); - } - - public function clearChannelGroup() - { - unset($this->channel_group); - } - - /** - * Required. The ChannelGroup to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var - * @return $this - */ - public function setChannelGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->channel_group = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php deleted file mode 100644 index d69c7da0b80d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest - */ -class CreateConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Required. The tag to add to the Universal Analytics property - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connected_site_tag = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $connected_site_tag - * Required. The tag to add to the Universal Analytics property - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Required. The tag to add to the Universal Analytics property - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ConnectedSiteTag|null - */ - public function getConnectedSiteTag() - { - return $this->connected_site_tag; - } - - public function hasConnectedSiteTag() - { - return isset($this->connected_site_tag); - } - - public function clearConnectedSiteTag() - { - unset($this->connected_site_tag); - } - - /** - * Required. The tag to add to the Universal Analytics property - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $var - * @return $this - */ - public function setConnectedSiteTag($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class); - $this->connected_site_tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php deleted file mode 100644 index b3f4637fa867..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse - */ -class CreateConnectedSiteTagResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php deleted file mode 100644 index 6768191a774e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateConversionEventRequest - */ -class CreateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event - * Required. The conversion event to create. - * @type string $parent - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php deleted file mode 100644 index 550d999af829..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateCustomDimensionRequest - */ -class CreateCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_dimension = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension - * Required. The CustomDimension to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->custom_dimension; - } - - public function hasCustomDimension() - { - return isset($this->custom_dimension); - } - - public function clearCustomDimension() - { - unset($this->custom_dimension); - } - - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); - $this->custom_dimension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php deleted file mode 100644 index 9832c3f40cae..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateCustomMetricRequest - */ -class CreateCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_metric = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric - * Required. The CustomMetric to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php deleted file mode 100644 index de44518ee939..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateDataStreamRequest - */ -class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_stream = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream - * Required. The DataStream to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->data_stream = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index 1e7149c55d66..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest - */ -class CreateDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_video_360_advertiser_link_proposal = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null - */ - public function getDisplayVideo360AdvertiserLinkProposal() - { - return $this->display_video_360_advertiser_link_proposal; - } - - public function hasDisplayVideo360AdvertiserLinkProposal() - { - return isset($this->display_video_360_advertiser_link_proposal); - } - - public function clearDisplayVideo360AdvertiserLinkProposal() - { - unset($this->display_video_360_advertiser_link_proposal); - } - - /** - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinkProposal($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); - $this->display_video_360_advertiser_link_proposal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 9c207531279e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest - */ -class CreateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DisplayVideo360AdvertiserLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_video_360_advertiser_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * Required. The DisplayVideo360AdvertiserLink to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DisplayVideo360AdvertiserLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->display_video_360_advertiser_link; - } - - public function hasDisplayVideo360AdvertiserLink() - { - return isset($this->display_video_360_advertiser_link); - } - - public function clearDisplayVideo360AdvertiserLink() - { - unset($this->display_video_360_advertiser_link); - } - - /** - * Required. The DisplayVideo360AdvertiserLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php deleted file mode 100644 index e0046eb92e52..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateEventCreateRuleRequest - */ -class CreateEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The EventCreateRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_create_rule = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule - * Required. The EventCreateRule to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The EventCreateRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null - */ - public function getEventCreateRule() - { - return $this->event_create_rule; - } - - public function hasEventCreateRule() - { - return isset($this->event_create_rule); - } - - public function clearEventCreateRule() - { - unset($this->event_create_rule); - } - - /** - * Required. The EventCreateRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var - * @return $this - */ - public function setEventCreateRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->event_create_rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php deleted file mode 100644 index 64f67ebd9d1d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateExpandedDataSetRequest - */ -class CreateExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ExpandedDataSet to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expanded_data_set = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set - * Required. The ExpandedDataSet to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ExpandedDataSet to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null - */ - public function getExpandedDataSet() - { - return $this->expanded_data_set; - } - - public function hasExpandedDataSet() - { - return isset($this->expanded_data_set); - } - - public function clearExpandedDataSet() - { - unset($this->expanded_data_set); - } - - /** - * Required. The ExpandedDataSet to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var - * @return $this - */ - public function setExpandedDataSet($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->expanded_data_set = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php deleted file mode 100644 index f92b7f8b56b7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateFirebaseLinkRequest - */ -class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $firebase_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\FirebaseLink $firebase_link - * Required. The Firebase link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->firebase_link; - } - - public function hasFirebaseLink() - { - return isset($this->firebase_link); - } - - public function clearFirebaseLink() - { - unset($this->firebase_link); - } - - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); - $this->firebase_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php deleted file mode 100644 index 08edb14ce2b2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest - */ -class CreateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_ads_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link - * Required. The GoogleAdsLink to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->google_ads_link; - } - - public function hasGoogleAdsLink() - { - return isset($this->google_ads_link); - } - - public function clearGoogleAdsLink() - { - unset($this->google_ads_link); - } - - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); - $this->google_ads_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php deleted file mode 100644 index e1557c4c6555..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest - */ -class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php deleted file mode 100644 index adea21ee71cc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.CreatePropertyRequest - */ -class CreatePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $property - * Required. The property to create. - * Note: the supplied property must specify its parent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 2432a2fbd5c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest - */ -class CreateSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. SKAdNetwork conversion value schema to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $skadnetwork_conversion_value_schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema - * Required. SKAdNetwork conversion value schema to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. SKAdNetwork conversion value schema to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null - */ - public function getSkadnetworkConversionValueSchema() - { - return $this->skadnetwork_conversion_value_schema; - } - - public function hasSkadnetworkConversionValueSchema() - { - return isset($this->skadnetwork_conversion_value_schema); - } - - public function clearSkadnetworkConversionValueSchema() - { - unset($this->skadnetwork_conversion_value_schema); - } - - /** - * Required. SKAdNetwork conversion value schema to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var - * @return $this - */ - public function setSkadnetworkConversionValueSchema($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->skadnetwork_conversion_value_schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php deleted file mode 100644 index 855e83c052d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest - */ -class CreateSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The SearchAds360Link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $search_ads_360_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link - * Required. The SearchAds360Link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The SearchAds360Link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null - */ - public function getSearchAds360Link() - { - return $this->search_ads_360_link; - } - - public function hasSearchAds360Link() - { - return isset($this->search_ads_360_link); - } - - public function clearSearchAds360Link() - { - unset($this->search_ads_360_link); - } - - /** - * Required. The SearchAds360Link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var - * @return $this - */ - public function setSearchAds360Link($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->search_ads_360_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php deleted file mode 100644 index ba0a444737d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php +++ /dev/null @@ -1,301 +0,0 @@ -google.analytics.admin.v1alpha.CustomDimension - */ -class CustomDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disallow_ads_personalization = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * @type string $parameter_name - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * @type string $display_name - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * @type int $scope - * Required. Immutable. The scope of this dimension. - * @type bool $disallow_ads_personalization - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomDimension\DimensionScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisallowAdsPersonalization() - { - return $this->disallow_ads_personalization; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisallowAdsPersonalization($var) - { - GPBUtil::checkBool($var); - $this->disallow_ads_personalization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php deleted file mode 100644 index a623e13b2358..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.CustomDimension.DimensionScope - */ -class DimensionScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - const DIMENSION_SCOPE_UNSPECIFIED = 0; - /** - * Dimension scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - /** - * Dimension scoped to a user. - * - * Generated from protobuf enum USER = 2; - */ - const USER = 2; - /** - * Dimension scoped to eCommerce items - * - * Generated from protobuf enum ITEM = 3; - */ - const ITEM = 3; - - private static $valueToName = [ - self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - self::USER => 'USER', - self::ITEM => 'ITEM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionScope::class, \Google\Analytics\Admin\V1alpha\CustomDimension_DimensionScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php deleted file mode 100644 index 473e4273ef7a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php +++ /dev/null @@ -1,319 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric - */ -class CustomMetric extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_unit = 0; - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $restricted_metric_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * @type string $parameter_name - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * @type string $display_name - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * @type int $measurement_unit - * Required. The type for the custom metric's value. - * @type int $scope - * Required. Immutable. The scope of this custom metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMeasurementUnit() - { - return $this->measurement_unit; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMeasurementUnit($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit::class); - $this->measurement_unit = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricType() - { - return $this->restricted_metric_type; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\CustomMetric\RestrictedMetricType::class); - $this->restricted_metric_type = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php deleted file mode 100644 index 5d27e4dc0f14..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php +++ /dev/null @@ -1,122 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit - */ -class MeasurementUnit -{ - /** - * MeasurementUnit unspecified or missing. - * - * Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - const MEASUREMENT_UNIT_UNSPECIFIED = 0; - /** - * This metric uses default units. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * This metric measures a currency. - * - * Generated from protobuf enum CURRENCY = 2; - */ - const CURRENCY = 2; - /** - * This metric measures feet. - * - * Generated from protobuf enum FEET = 3; - */ - const FEET = 3; - /** - * This metric measures meters. - * - * Generated from protobuf enum METERS = 4; - */ - const METERS = 4; - /** - * This metric measures kilometers. - * - * Generated from protobuf enum KILOMETERS = 5; - */ - const KILOMETERS = 5; - /** - * This metric measures miles. - * - * Generated from protobuf enum MILES = 6; - */ - const MILES = 6; - /** - * This metric measures milliseconds. - * - * Generated from protobuf enum MILLISECONDS = 7; - */ - const MILLISECONDS = 7; - /** - * This metric measures seconds. - * - * Generated from protobuf enum SECONDS = 8; - */ - const SECONDS = 8; - /** - * This metric measures minutes. - * - * Generated from protobuf enum MINUTES = 9; - */ - const MINUTES = 9; - /** - * This metric measures hours. - * - * Generated from protobuf enum HOURS = 10; - */ - const HOURS = 10; - - private static $valueToName = [ - self::MEASUREMENT_UNIT_UNSPECIFIED => 'MEASUREMENT_UNIT_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::CURRENCY => 'CURRENCY', - self::FEET => 'FEET', - self::METERS => 'METERS', - self::KILOMETERS => 'KILOMETERS', - self::MILES => 'MILES', - self::MILLISECONDS => 'MILLISECONDS', - self::SECONDS => 'SECONDS', - self::MINUTES => 'MINUTES', - self::HOURS => 'HOURS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MeasurementUnit::class, \Google\Analytics\Admin\V1alpha\CustomMetric_MeasurementUnit::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php deleted file mode 100644 index 362df05131af..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php +++ /dev/null @@ -1,57 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric.MetricScope - */ -class MetricScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum METRIC_SCOPE_UNSPECIFIED = 0; - */ - const METRIC_SCOPE_UNSPECIFIED = 0; - /** - * Metric scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - - private static $valueToName = [ - self::METRIC_SCOPE_UNSPECIFIED => 'METRIC_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricScope::class, \Google\Analytics\Admin\V1alpha\CustomMetric_MetricScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php deleted file mode 100644 index 06006742e548..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Type unknown or unspecified. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Metric reports cost data. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Metric reports revenue data. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1alpha\CustomMetric_RestrictedMetricType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php deleted file mode 100644 index 596562959ce5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php +++ /dev/null @@ -1,143 +0,0 @@ -google.analytics.admin.v1alpha.DataRetentionSettings - */ -class DataRetentionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - */ - protected $event_data_retention = 0; - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - */ - protected $reset_user_data_on_new_activity = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * @type int $event_data_retention - * The length of time that event-level data is retained. - * @type bool $reset_user_data_on_new_activity - * If true, reset the retention period for the user identifier with every - * event from that user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return int - */ - public function getEventDataRetention() - { - return $this->event_data_retention; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param int $var - * @return $this - */ - public function setEventDataRetention($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings\RetentionDuration::class); - $this->event_data_retention = $var; - - return $this; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @return bool - */ - public function getResetUserDataOnNewActivity() - { - return $this->reset_user_data_on_new_activity; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @param bool $var - * @return $this - */ - public function setResetUserDataOnNewActivity($var) - { - GPBUtil::checkBool($var); - $this->reset_user_data_on_new_activity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php deleted file mode 100644 index be5f9eb42de3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php +++ /dev/null @@ -1,88 +0,0 @@ -google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration - */ -class RetentionDuration -{ - /** - * Data retention time duration is not specified. - * - * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0; - */ - const RETENTION_DURATION_UNSPECIFIED = 0; - /** - * The data retention time duration is 2 months. - * - * Generated from protobuf enum TWO_MONTHS = 1; - */ - const TWO_MONTHS = 1; - /** - * The data retention time duration is 14 months. - * - * Generated from protobuf enum FOURTEEN_MONTHS = 3; - */ - const FOURTEEN_MONTHS = 3; - /** - * The data retention time duration is 26 months. - * Available to 360 properties only. - * - * Generated from protobuf enum TWENTY_SIX_MONTHS = 4; - */ - const TWENTY_SIX_MONTHS = 4; - /** - * The data retention time duration is 38 months. - * Available to 360 properties only. - * - * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5; - */ - const THIRTY_EIGHT_MONTHS = 5; - /** - * The data retention time duration is 50 months. - * Available to 360 properties only. - * - * Generated from protobuf enum FIFTY_MONTHS = 6; - */ - const FIFTY_MONTHS = 6; - - private static $valueToName = [ - self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED', - self::TWO_MONTHS => 'TWO_MONTHS', - self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS', - self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS', - self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS', - self::FIFTY_MONTHS => 'FIFTY_MONTHS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1alpha\DataRetentionSettings_RetentionDuration::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php deleted file mode 100644 index 8dd6943a2104..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php +++ /dev/null @@ -1,262 +0,0 @@ -google.analytics.admin.v1alpha.DataSharingSettings - */ -class DataSharingSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - */ - protected $sharing_with_google_support_enabled = false; - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - */ - protected $sharing_with_google_assigned_sales_enabled = false; - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - */ - protected $sharing_with_google_any_sales_enabled = false; - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - */ - protected $sharing_with_google_products_enabled = false; - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - */ - protected $sharing_with_others_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @type bool $sharing_with_google_support_enabled - * Allows Google support to access the data in order to help troubleshoot - * issues. - * @type bool $sharing_with_google_assigned_sales_enabled - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * @type bool $sharing_with_google_any_sales_enabled - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * @type bool $sharing_with_google_products_enabled - * Allows Google to use the data to improve other Google products or services. - * @type bool $sharing_with_others_enabled - * Allows Google to share the data anonymously in aggregate form with others. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @return bool - */ - public function getSharingWithGoogleSupportEnabled() - { - return $this->sharing_with_google_support_enabled; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleSupportEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_support_enabled = $var; - - return $this; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @return bool - */ - public function getSharingWithGoogleAssignedSalesEnabled() - { - return $this->sharing_with_google_assigned_sales_enabled; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAssignedSalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_assigned_sales_enabled = $var; - - return $this; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @return bool - */ - public function getSharingWithGoogleAnySalesEnabled() - { - return $this->sharing_with_google_any_sales_enabled; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAnySalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_any_sales_enabled = $var; - - return $this; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @return bool - */ - public function getSharingWithGoogleProductsEnabled() - { - return $this->sharing_with_google_products_enabled; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleProductsEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_products_enabled = $var; - - return $this; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @return bool - */ - public function getSharingWithOthersEnabled() - { - return $this->sharing_with_others_enabled; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @param bool $var - * @return $this - */ - public function setSharingWithOthersEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_others_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php deleted file mode 100644 index 334525308793..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php +++ /dev/null @@ -1,356 +0,0 @@ -google.analytics.admin.v1alpha.DataStream - */ -class DataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - protected $stream_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $web_stream_data - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * @type \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $android_app_stream_data - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * @type \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $ios_app_stream_data - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * @type int $type - * Required. Immutable. The type of this DataStream resource. - * @type string $display_name - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this stream was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when stream payload fields were last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData|null - */ - public function getWebStreamData() - { - return $this->readOneof(6); - } - - public function hasWebStreamData() - { - return $this->hasOneof(6); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @param \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $var - * @return $this - */ - public function setWebStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData|null - */ - public function getAndroidAppStreamData() - { - return $this->readOneof(7); - } - - public function hasAndroidAppStreamData() - { - return $this->hasOneof(7); - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @param \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $var - * @return $this - */ - public function setAndroidAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData|null - */ - public function getIosAppStreamData() - { - return $this->readOneof(8); - } - - public function hasIosAppStreamData() - { - return $this->hasOneof(8); - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @param \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $var - * @return $this - */ - public function setIosAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataStream\DataStreamType::class); - $this->type = $var; - - return $this; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getStreamData() - { - return $this->whichOneof("stream_data"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php deleted file mode 100644 index 05430a617fbc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - */ -class AndroidAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $package_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * @type string $package_name - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_AndroidAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php deleted file mode 100644 index 40b9025b6d49..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.DataStreamType - */ -class DataStreamType -{ - /** - * Type unknown or not specified. - * - * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - const DATA_STREAM_TYPE_UNSPECIFIED = 0; - /** - * Web data stream. - * - * Generated from protobuf enum WEB_DATA_STREAM = 1; - */ - const WEB_DATA_STREAM = 1; - /** - * Android app data stream. - * - * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2; - */ - const ANDROID_APP_DATA_STREAM = 2; - /** - * iOS app data stream. - * - * Generated from protobuf enum IOS_APP_DATA_STREAM = 3; - */ - const IOS_APP_DATA_STREAM = 3; - - private static $valueToName = [ - self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED', - self::WEB_DATA_STREAM => 'WEB_DATA_STREAM', - self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM', - self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataStreamType::class, \Google\Analytics\Admin\V1alpha\DataStream_DataStreamType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php deleted file mode 100644 index e7abc7c8e336..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.IosAppStreamData - */ -class IosAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $bundle_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * @type string $bundle_id - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBundleId() - { - return $this->bundle_id; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBundleId($var) - { - GPBUtil::checkString($var, True); - $this->bundle_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_IosAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php deleted file mode 100644 index 792c187d85dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.WebStreamData - */ -class WebStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $measurement_id = ''; - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - */ - protected $default_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $measurement_id - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * @type string $firebase_app_id - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * @type string $default_uri - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeasurementId() - { - return $this->measurement_id; - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeasurementId($var) - { - GPBUtil::checkString($var, True); - $this->measurement_id = $var; - - return $this; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @return string - */ - public function getDefaultUri() - { - return $this->default_uri; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @param string $var - * @return $this - */ - public function setDefaultUri($var) - { - GPBUtil::checkString($var, True); - $this->default_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WebStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_WebStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php deleted file mode 100644 index 9d730b5cbf5f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteAccessBindingRequest - */ -class DeleteAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php deleted file mode 100644 index 76993f0074b1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteAccountRequest - */ -class DeleteAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php deleted file mode 100644 index 90c9a4d251db..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest - */ -class DeleteAdSenseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php deleted file mode 100644 index 0204276e23ff..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteChannelGroupRequest - */ -class DeleteChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php deleted file mode 100644 index 19d55fea7d9d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest - */ -class DeleteConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2; - */ - protected $tag_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type string $tag_id - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2; - * @return string - */ - public function getTagId() - { - return $this->tag_id; - } - - /** - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2; - * @param string $var - * @return $this - */ - public function setTagId($var) - { - GPBUtil::checkString($var, True); - $this->tag_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php deleted file mode 100644 index fa7d5f9222ce..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteConversionEventRequest - */ -class DeleteConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php deleted file mode 100644 index 38db8bd212dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteDataStreamRequest - */ -class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index a55495ca15b1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest - */ -class DeleteDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index a191a561b1a5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest - */ -class DeleteDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php deleted file mode 100644 index 70fbfc0e95f6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest - */ -class DeleteEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php deleted file mode 100644 index 76050b0ae4d4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest - */ -class DeleteExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/expandedDataSets/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php deleted file mode 100644 index 2feb69d3bbc1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest - */ -class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php deleted file mode 100644 index b370776561f7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest - */ -class DeleteGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/googleAdsLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php deleted file mode 100644 index c1a6b3a2a102..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest - */ -class DeleteMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php deleted file mode 100644 index 2c194f05a433..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeletePropertyRequest - */ -class DeletePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 7ddd5484433f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest - */ -class DeleteSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php deleted file mode 100644 index f62ec3028faa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest - */ -class DeleteSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php deleted file mode 100644 index db07c2123059..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php +++ /dev/null @@ -1,408 +0,0 @@ -google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink - */ -class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $advertiser_id = ''; - /** - * Output only. The display name of the Display & Video 360 Advertiser. - * - * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $advertiser_display_name = ''; - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - protected $ads_personalization_enabled = null; - /** - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $campaign_data_sharing_enabled = null; - /** - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cost_data_sharing_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * @type string $advertiser_id - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * @type string $advertiser_display_name - * Output only. The display name of the Display & Video 360 Advertiser. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdvertiserId() - { - return $this->advertiser_id; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdvertiserId($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_id = $var; - - return $this; - } - - /** - * Output only. The display name of the Display & Video 360 Advertiser. - * - * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdvertiserDisplayName() - { - return $this->advertiser_display_name; - } - - /** - * Output only. The display name of the Display & Video 360 Advertiser. - * - * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdvertiserDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_display_name = $var; - - return $this; - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCampaignDataSharingEnabled() - { - return $this->campaign_data_sharing_enabled; - } - - public function hasCampaignDataSharingEnabled() - { - return isset($this->campaign_data_sharing_enabled); - } - - public function clearCampaignDataSharingEnabled() - { - unset($this->campaign_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCampaignDataSharingEnabled() - - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCampaignDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("campaign_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCampaignDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->campaign_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCampaignDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("campaign_data_sharing_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCostDataSharingEnabled() - { - return $this->cost_data_sharing_enabled; - } - - public function hasCostDataSharingEnabled() - { - return isset($this->cost_data_sharing_enabled); - } - - public function clearCostDataSharingEnabled() - { - unset($this->cost_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCostDataSharingEnabled() - - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCostDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("cost_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCostDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cost_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCostDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("cost_data_sharing_enabled", $var); - return $this;} - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php deleted file mode 100644 index ff6821888ae0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php +++ /dev/null @@ -1,490 +0,0 @@ -google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - */ -class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $advertiser_id = ''; - /** - * Output only. The status information for this link proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_proposal_status_details = null; - /** - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * - * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $advertiser_display_name = ''; - /** - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * - * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $validation_email = ''; - /** - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ads_personalization_enabled = null; - /** - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $campaign_data_sharing_enabled = null; - /** - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cost_data_sharing_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * @type string $advertiser_id - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * @type \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $link_proposal_status_details - * Output only. The status information for this link proposal. - * @type string $advertiser_display_name - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * @type string $validation_email - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdvertiserId() - { - return $this->advertiser_id; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdvertiserId($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_id = $var; - - return $this; - } - - /** - * Output only. The status information for this link proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails|null - */ - public function getLinkProposalStatusDetails() - { - return $this->link_proposal_status_details; - } - - public function hasLinkProposalStatusDetails() - { - return isset($this->link_proposal_status_details); - } - - public function clearLinkProposalStatusDetails() - { - unset($this->link_proposal_status_details); - } - - /** - * Output only. The status information for this link proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $var - * @return $this - */ - public function setLinkProposalStatusDetails($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails::class); - $this->link_proposal_status_details = $var; - - return $this; - } - - /** - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * - * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdvertiserDisplayName() - { - return $this->advertiser_display_name; - } - - /** - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * - * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdvertiserDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_display_name = $var; - - return $this; - } - - /** - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * - * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getValidationEmail() - { - return $this->validation_email; - } - - /** - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * - * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setValidationEmail($var) - { - GPBUtil::checkString($var, True); - $this->validation_email = $var; - - return $this; - } - - /** - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCampaignDataSharingEnabled() - { - return $this->campaign_data_sharing_enabled; - } - - public function hasCampaignDataSharingEnabled() - { - return isset($this->campaign_data_sharing_enabled); - } - - public function clearCampaignDataSharingEnabled() - { - unset($this->campaign_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCampaignDataSharingEnabled() - - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCampaignDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("campaign_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCampaignDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->campaign_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCampaignDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("campaign_data_sharing_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCostDataSharingEnabled() - { - return $this->cost_data_sharing_enabled; - } - - public function hasCostDataSharingEnabled() - { - return isset($this->cost_data_sharing_enabled); - } - - public function clearCostDataSharingEnabled() - { - unset($this->cost_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCostDataSharingEnabled() - - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCostDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("cost_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCostDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cost_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCostDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("cost_data_sharing_enabled", $var); - return $this;} - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php deleted file mode 100644 index b210cd61041e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php +++ /dev/null @@ -1,472 +0,0 @@ -google.analytics.admin.v1alpha.EnhancedMeasurementSettings - */ -class EnhancedMeasurementSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * - * Generated from protobuf field bool stream_enabled = 2; - */ - protected $stream_enabled = false; - /** - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * - * Generated from protobuf field bool scrolls_enabled = 3; - */ - protected $scrolls_enabled = false; - /** - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * - * Generated from protobuf field bool outbound_clicks_enabled = 4; - */ - protected $outbound_clicks_enabled = false; - /** - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * - * Generated from protobuf field bool site_search_enabled = 5; - */ - protected $site_search_enabled = false; - /** - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * - * Generated from protobuf field bool video_engagement_enabled = 6; - */ - protected $video_engagement_enabled = false; - /** - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * - * Generated from protobuf field bool file_downloads_enabled = 7; - */ - protected $file_downloads_enabled = false; - /** - * If enabled, capture a page view event each time the website changes the - * browser history state. - * - * Generated from protobuf field bool page_changes_enabled = 8; - */ - protected $page_changes_enabled = false; - /** - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * - * Generated from protobuf field bool form_interactions_enabled = 9; - */ - protected $form_interactions_enabled = false; - /** - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * - * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $search_query_parameter = ''; - /** - * Additional URL query parameters. - * Max length is 1024 characters. - * - * Generated from protobuf field string uri_query_parameter = 11; - */ - protected $uri_query_parameter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * @type bool $stream_enabled - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * @type bool $scrolls_enabled - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * @type bool $outbound_clicks_enabled - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * @type bool $site_search_enabled - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * @type bool $video_engagement_enabled - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * @type bool $file_downloads_enabled - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * @type bool $page_changes_enabled - * If enabled, capture a page view event each time the website changes the - * browser history state. - * @type bool $form_interactions_enabled - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * @type string $search_query_parameter - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * @type string $uri_query_parameter - * Additional URL query parameters. - * Max length is 1024 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * - * Generated from protobuf field bool stream_enabled = 2; - * @return bool - */ - public function getStreamEnabled() - { - return $this->stream_enabled; - } - - /** - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * - * Generated from protobuf field bool stream_enabled = 2; - * @param bool $var - * @return $this - */ - public function setStreamEnabled($var) - { - GPBUtil::checkBool($var); - $this->stream_enabled = $var; - - return $this; - } - - /** - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * - * Generated from protobuf field bool scrolls_enabled = 3; - * @return bool - */ - public function getScrollsEnabled() - { - return $this->scrolls_enabled; - } - - /** - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * - * Generated from protobuf field bool scrolls_enabled = 3; - * @param bool $var - * @return $this - */ - public function setScrollsEnabled($var) - { - GPBUtil::checkBool($var); - $this->scrolls_enabled = $var; - - return $this; - } - - /** - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * - * Generated from protobuf field bool outbound_clicks_enabled = 4; - * @return bool - */ - public function getOutboundClicksEnabled() - { - return $this->outbound_clicks_enabled; - } - - /** - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * - * Generated from protobuf field bool outbound_clicks_enabled = 4; - * @param bool $var - * @return $this - */ - public function setOutboundClicksEnabled($var) - { - GPBUtil::checkBool($var); - $this->outbound_clicks_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * - * Generated from protobuf field bool site_search_enabled = 5; - * @return bool - */ - public function getSiteSearchEnabled() - { - return $this->site_search_enabled; - } - - /** - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * - * Generated from protobuf field bool site_search_enabled = 5; - * @param bool $var - * @return $this - */ - public function setSiteSearchEnabled($var) - { - GPBUtil::checkBool($var); - $this->site_search_enabled = $var; - - return $this; - } - - /** - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * - * Generated from protobuf field bool video_engagement_enabled = 6; - * @return bool - */ - public function getVideoEngagementEnabled() - { - return $this->video_engagement_enabled; - } - - /** - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * - * Generated from protobuf field bool video_engagement_enabled = 6; - * @param bool $var - * @return $this - */ - public function setVideoEngagementEnabled($var) - { - GPBUtil::checkBool($var); - $this->video_engagement_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * - * Generated from protobuf field bool file_downloads_enabled = 7; - * @return bool - */ - public function getFileDownloadsEnabled() - { - return $this->file_downloads_enabled; - } - - /** - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * - * Generated from protobuf field bool file_downloads_enabled = 7; - * @param bool $var - * @return $this - */ - public function setFileDownloadsEnabled($var) - { - GPBUtil::checkBool($var); - $this->file_downloads_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a page view event each time the website changes the - * browser history state. - * - * Generated from protobuf field bool page_changes_enabled = 8; - * @return bool - */ - public function getPageChangesEnabled() - { - return $this->page_changes_enabled; - } - - /** - * If enabled, capture a page view event each time the website changes the - * browser history state. - * - * Generated from protobuf field bool page_changes_enabled = 8; - * @param bool $var - * @return $this - */ - public function setPageChangesEnabled($var) - { - GPBUtil::checkBool($var); - $this->page_changes_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * - * Generated from protobuf field bool form_interactions_enabled = 9; - * @return bool - */ - public function getFormInteractionsEnabled() - { - return $this->form_interactions_enabled; - } - - /** - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * - * Generated from protobuf field bool form_interactions_enabled = 9; - * @param bool $var - * @return $this - */ - public function setFormInteractionsEnabled($var) - { - GPBUtil::checkBool($var); - $this->form_interactions_enabled = $var; - - return $this; - } - - /** - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * - * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSearchQueryParameter() - { - return $this->search_query_parameter; - } - - /** - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * - * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSearchQueryParameter($var) - { - GPBUtil::checkString($var, True); - $this->search_query_parameter = $var; - - return $this; - } - - /** - * Additional URL query parameters. - * Max length is 1024 characters. - * - * Generated from protobuf field string uri_query_parameter = 11; - * @return string - */ - public function getUriQueryParameter() - { - return $this->uri_query_parameter; - } - - /** - * Additional URL query parameters. - * Max length is 1024 characters. - * - * Generated from protobuf field string uri_query_parameter = 11; - * @param string $var - * @return $this - */ - public function setUriQueryParameter($var) - { - GPBUtil::checkString($var, True); - $this->uri_query_parameter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php deleted file mode 100644 index f5101fcff128..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1alpha.EventCreateRule - */ -class EventCreateRule extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * - * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination_event = ''; - /** - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $event_conditions; - /** - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * - * Generated from protobuf field bool source_copy_parameters = 4; - */ - protected $source_copy_parameters = false; - /** - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - private $parameter_mutations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * @type string $destination_event - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * @type array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $event_conditions - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * @type bool $source_copy_parameters - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * @type array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $parameter_mutations - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * - * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestinationEvent() - { - return $this->destination_event; - } - - /** - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * - * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestinationEvent($var) - { - GPBUtil::checkString($var, True); - $this->destination_event = $var; - - return $this; - } - - /** - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventConditions() - { - return $this->event_conditions; - } - - /** - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MatchingCondition::class); - $this->event_conditions = $arr; - - return $this; - } - - /** - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * - * Generated from protobuf field bool source_copy_parameters = 4; - * @return bool - */ - public function getSourceCopyParameters() - { - return $this->source_copy_parameters; - } - - /** - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * - * Generated from protobuf field bool source_copy_parameters = 4; - * @param bool $var - * @return $this - */ - public function setSourceCopyParameters($var) - { - GPBUtil::checkBool($var); - $this->source_copy_parameters = $var; - - return $this; - } - - /** - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameterMutations() - { - return $this->parameter_mutations; - } - - /** - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - * @param array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameterMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ParameterMutation::class); - $this->parameter_mutations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php deleted file mode 100644 index 62800a21cb3f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php +++ /dev/null @@ -1,279 +0,0 @@ -google.analytics.admin.v1alpha.EventMapping - */ -class EventMapping extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_name = ''; - /** - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * - * Generated from protobuf field optional int64 min_event_count = 2; - */ - protected $min_event_count = null; - /** - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * - * Generated from protobuf field optional int64 max_event_count = 3; - */ - protected $max_event_count = null; - /** - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * - * Generated from protobuf field optional double min_event_value = 4; - */ - protected $min_event_value = null; - /** - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * - * Generated from protobuf field optional double max_event_value = 5; - */ - protected $max_event_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * @type int|string $min_event_count - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * @type int|string $max_event_count - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * @type float $min_event_value - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * @type float $max_event_value - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * - * Generated from protobuf field optional int64 min_event_count = 2; - * @return int|string - */ - public function getMinEventCount() - { - return isset($this->min_event_count) ? $this->min_event_count : 0; - } - - public function hasMinEventCount() - { - return isset($this->min_event_count); - } - - public function clearMinEventCount() - { - unset($this->min_event_count); - } - - /** - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * - * Generated from protobuf field optional int64 min_event_count = 2; - * @param int|string $var - * @return $this - */ - public function setMinEventCount($var) - { - GPBUtil::checkInt64($var); - $this->min_event_count = $var; - - return $this; - } - - /** - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * - * Generated from protobuf field optional int64 max_event_count = 3; - * @return int|string - */ - public function getMaxEventCount() - { - return isset($this->max_event_count) ? $this->max_event_count : 0; - } - - public function hasMaxEventCount() - { - return isset($this->max_event_count); - } - - public function clearMaxEventCount() - { - unset($this->max_event_count); - } - - /** - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * - * Generated from protobuf field optional int64 max_event_count = 3; - * @param int|string $var - * @return $this - */ - public function setMaxEventCount($var) - { - GPBUtil::checkInt64($var); - $this->max_event_count = $var; - - return $this; - } - - /** - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * - * Generated from protobuf field optional double min_event_value = 4; - * @return float - */ - public function getMinEventValue() - { - return isset($this->min_event_value) ? $this->min_event_value : 0.0; - } - - public function hasMinEventValue() - { - return isset($this->min_event_value); - } - - public function clearMinEventValue() - { - unset($this->min_event_value); - } - - /** - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * - * Generated from protobuf field optional double min_event_value = 4; - * @param float $var - * @return $this - */ - public function setMinEventValue($var) - { - GPBUtil::checkDouble($var); - $this->min_event_value = $var; - - return $this; - } - - /** - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * - * Generated from protobuf field optional double max_event_value = 5; - * @return float - */ - public function getMaxEventValue() - { - return isset($this->max_event_value) ? $this->max_event_value : 0.0; - } - - public function hasMaxEventValue() - { - return isset($this->max_event_value); - } - - public function clearMaxEventValue() - { - unset($this->max_event_value); - } - - /** - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * - * Generated from protobuf field optional double max_event_value = 5; - * @param float $var - * @return $this - */ - public function setMaxEventValue($var) - { - GPBUtil::checkDouble($var); - $this->max_event_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php deleted file mode 100644 index 0c24c2b5a748..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php +++ /dev/null @@ -1,339 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSet - */ -class ExpandedDataSet extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $dimension_names; - /** - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * - * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $metric_names; - /** - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $dimension_filter_expression = null; - /** - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * - * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_collection_start_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * @type string $display_name - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * @type string $description - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_names - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $dimension_filter_expression - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * @type \Google\Protobuf\Timestamp $data_collection_start_time - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionNames() - { - return $this->dimension_names; - } - - /** - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->dimension_names = $arr; - - return $this; - } - - /** - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * - * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricNames() - { - return $this->metric_names; - } - - /** - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * - * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metric_names = $arr; - - return $this; - } - - /** - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression|null - */ - public function getDimensionFilterExpression() - { - return $this->dimension_filter_expression; - } - - public function hasDimensionFilterExpression() - { - return isset($this->dimension_filter_expression); - } - - public function clearDimensionFilterExpression() - { - unset($this->dimension_filter_expression); - } - - /** - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $var - * @return $this - */ - public function setDimensionFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); - $this->dimension_filter_expression = $var; - - return $this; - } - - /** - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * - * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDataCollectionStartTime() - { - return $this->data_collection_start_time; - } - - public function hasDataCollectionStartTime() - { - return isset($this->data_collection_start_time); - } - - public function clearDataCollectionStartTime() - { - unset($this->data_collection_start_time); - } - - /** - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * - * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDataCollectionStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->data_collection_start_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php deleted file mode 100644 index 22aed1babf03..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php +++ /dev/null @@ -1,145 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter - */ -class ExpandedDataSetFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter $in_list_filter - * A filter for a string dimension that matches a particular list of - * options. - * @type string $field_name - * Required. The dimension name to filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php deleted file mode 100644 index 1e242378d9a8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php +++ /dev/null @@ -1,116 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The list of possible string values to match against. Must be - * non-empty. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php deleted file mode 100644 index 7010e52a8334..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value to be matched against. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php deleted file mode 100644 index b8c07512fb95..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 2; - */ - const CONTAINS = 2; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::CONTAINS => 'CONTAINS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php deleted file mode 100644 index 599f633a8477..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression - */ -class ExpandedDataSetFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList $and_group - * A list of expressions to be AND’ed together. It must contain a - * ExpandedDataSetFilterExpression with either not_expression or - * dimension_filter. This must be set for the top level - * ExpandedDataSetFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $not_expression - * A filter expression to be NOT'ed (that is, inverted, complemented). It - * must include a dimension_filter. This cannot be set on the - * top level ExpandedDataSetFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter $filter - * A filter on a single dimension. This cannot be set on the top - * level ExpandedDataSetFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to be AND’ed together. It must contain a - * ExpandedDataSetFilterExpression with either not_expression or - * dimension_filter. This must be set for the top level - * ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to be AND’ed together. It must contain a - * ExpandedDataSetFilterExpression with either not_expression or - * dimension_filter. This must be set for the top level - * ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (that is, inverted, complemented). It - * must include a dimension_filter. This cannot be set on the - * top level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(2); - } - - public function hasNotExpression() - { - return $this->hasOneof(2); - } - - /** - * A filter expression to be NOT'ed (that is, inverted, complemented). It - * must include a dimension_filter. This cannot be set on the - * top level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter|null - */ - public function getFilter() - { - return $this->readOneof(3); - } - - public function hasFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php deleted file mode 100644 index 90185029e2a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList - */ -class ExpandedDataSetFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of ExpandedDataSet filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * A list of ExpandedDataSet filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * A list of ExpandedDataSet filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * A list of ExpandedDataSet filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php deleted file mode 100644 index 54c09a227427..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest - */ -class FetchAutomatedGa4ConfigurationOptOutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php deleted file mode 100644 index aa38497d6e9b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse - */ -class FetchAutomatedGa4ConfigurationOptOutResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The opt out status for the UA property. - * - * Generated from protobuf field bool opt_out = 1; - */ - protected $opt_out = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $opt_out - * The opt out status for the UA property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The opt out status for the UA property. - * - * Generated from protobuf field bool opt_out = 1; - * @return bool - */ - public function getOptOut() - { - return $this->opt_out; - } - - /** - * The opt out status for the UA property. - * - * Generated from protobuf field bool opt_out = 1; - * @param bool $var - * @return $this - */ - public function setOptOut($var) - { - GPBUtil::checkBool($var); - $this->opt_out = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php deleted file mode 100644 index 61191cef5a19..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest - */ -class FetchConnectedGa4PropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php deleted file mode 100644 index a94bf8de4550..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse - */ -class FetchConnectedGa4PropertyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php deleted file mode 100644 index 741cb2628234..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php +++ /dev/null @@ -1,165 +0,0 @@ -google.analytics.admin.v1alpha.FirebaseLink - */ -class FirebaseLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project = ''; - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Example format: properties/1234/firebaseLinks/5678 - * @type string $project - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this FirebaseLink was originally created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php deleted file mode 100644 index cb5893b9f126..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.GetAccessBindingRequest - */ -class GetAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php deleted file mode 100644 index 9b4cdaa03052..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetAccountRequest - */ -class GetAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php deleted file mode 100644 index d0bd19915e42..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetAdSenseLinkRequest - */ -class GetAdSenseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php deleted file mode 100644 index ca38dbdfc43b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetAttributionSettingsRequest - */ -class GetAttributionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php deleted file mode 100644 index bcec1ab442c6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetAudienceRequest - */ -class GetAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php deleted file mode 100644 index 5882f134e0a2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetBigQueryLinkRequest - */ -class GetBigQueryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php deleted file mode 100644 index 1b8b76adbea7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetChannelGroupRequest - */ -class GetChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php deleted file mode 100644 index 741ac4d94100..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetConversionEventRequest - */ -class GetConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php deleted file mode 100644 index 2d21779d150d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetCustomDimensionRequest - */ -class GetCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php deleted file mode 100644 index e67f592d606a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetCustomMetricRequest - */ -class GetCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php deleted file mode 100644 index 194ee366d6a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - */ -class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php deleted file mode 100644 index 31aeb5cd19d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetDataSharingSettingsRequest - */ -class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php deleted file mode 100644 index 6952d888238e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetDataStreamRequest - */ -class GetDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index 3c100b7236f2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest - */ -class GetDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 9b35d95116b2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest - */ -class GetDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php deleted file mode 100644 index 595a4b58496b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - */ -class GetEnhancedMeasurementSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php deleted file mode 100644 index 9e5033da4def..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetEventCreateRuleRequest - */ -class GetEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php deleted file mode 100644 index e6d25c38ac9f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetExpandedDataSetRequest - */ -class GetExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php deleted file mode 100644 index bf82823734fb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.GetGlobalSiteTagRequest - */ -class GetGlobalSiteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php deleted file mode 100644 index 18c6cdd29b2a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest - */ -class GetGoogleSignalsSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php deleted file mode 100644 index e3ed3a11c4eb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest - */ -class GetMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php deleted file mode 100644 index 92fab15e70ba..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetPropertyRequest - */ -class GetPropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 13ac0873dd8b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest - */ -class GetSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php deleted file mode 100644 index cc9b6ec43d5b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.GetSearchAds360LinkRequest - */ -class GetSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php deleted file mode 100644 index ff41c254253b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.admin.v1alpha.GlobalSiteTag - */ -class GlobalSiteTag extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * - * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $snippet = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * @type string $snippet - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * - * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getSnippet() - { - return $this->snippet; - } - - /** - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * - * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setSnippet($var) - { - GPBUtil::checkString($var, True); - $this->snippet = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php deleted file mode 100644 index 8c768dd1afb0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php +++ /dev/null @@ -1,358 +0,0 @@ -google.analytics.admin.v1alpha.GoogleAdsLink - */ -class GoogleAdsLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $customer_id = ''; - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $can_manage_clients = false; - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - protected $ads_personalization_enabled = null; - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator_email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * @type string $customer_id - * Immutable. Google Ads customer ID. - * @type bool $can_manage_clients - * Output only. If true, this link is for a Google Ads manager account. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this link was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when this link was last updated. - * @type string $creator_email_address - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setCustomerId($var) - { - GPBUtil::checkString($var, True); - $this->customer_id = $var; - - return $this; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCanManageClients() - { - return $this->can_manage_clients; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCanManageClients($var) - { - GPBUtil::checkBool($var); - $this->can_manage_clients = $var; - - return $this; - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreatorEmailAddress() - { - return $this->creator_email_address; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreatorEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->creator_email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php deleted file mode 100644 index 025db1938708..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php +++ /dev/null @@ -1,63 +0,0 @@ -google.analytics.admin.v1alpha.GoogleSignalsConsent - */ -class GoogleSignalsConsent -{ - /** - * Google Signals consent value defaults to - * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as - * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. - * - * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; - */ - const GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; - /** - * Terms of service have been accepted - * - * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - */ - const GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - /** - * Terms of service have not been accepted - * - * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; - */ - const GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; - - private static $valueToName = [ - self::GOOGLE_SIGNALS_CONSENT_UNSPECIFIED => 'GOOGLE_SIGNALS_CONSENT_UNSPECIFIED', - self::GOOGLE_SIGNALS_CONSENT_CONSENTED => 'GOOGLE_SIGNALS_CONSENT_CONSENTED', - self::GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED => 'GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php deleted file mode 100644 index 24556ce9639c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php +++ /dev/null @@ -1,143 +0,0 @@ -google.analytics.admin.v1alpha.GoogleSignalsSettings - */ -class GoogleSignalsSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Status of this setting. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - */ - protected $state = 0; - /** - * Output only. Terms of Service acceptance. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $consent = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * @type int $state - * Status of this setting. - * @type int $consent - * Output only. Terms of Service acceptance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Status of this setting. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Status of this setting. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Terms of Service acceptance. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getConsent() - { - return $this->consent; - } - - /** - * Output only. Terms of Service acceptance. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setConsent($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsConsent::class); - $this->consent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php deleted file mode 100644 index 1e9442bfdf87..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.admin.v1alpha.GoogleSignalsState - */ -class GoogleSignalsState -{ - /** - * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to - * represent that the user has not made an explicit choice. - * - * Generated from protobuf enum GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; - */ - const GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; - /** - * Google Signals is enabled. - * - * Generated from protobuf enum GOOGLE_SIGNALS_ENABLED = 1; - */ - const GOOGLE_SIGNALS_ENABLED = 1; - /** - * Google Signals is disabled. - * - * Generated from protobuf enum GOOGLE_SIGNALS_DISABLED = 2; - */ - const GOOGLE_SIGNALS_DISABLED = 2; - - private static $valueToName = [ - self::GOOGLE_SIGNALS_STATE_UNSPECIFIED => 'GOOGLE_SIGNALS_STATE_UNSPECIFIED', - self::GOOGLE_SIGNALS_ENABLED => 'GOOGLE_SIGNALS_ENABLED', - self::GOOGLE_SIGNALS_DISABLED => 'GOOGLE_SIGNALS_DISABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php deleted file mode 100644 index 079662ea4784..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.GroupingRule - */ -class GroupingRule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Customer defined display name for the channel. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The Filter Expression that defines the Grouping Rule. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. Customer defined display name for the channel. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $expression - * Required. The Filter Expression that defines the Grouping Rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Required. Customer defined display name for the channel. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Customer defined display name for the channel. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The Filter Expression that defines the Grouping Rule. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression|null - */ - public function getExpression() - { - return $this->expression; - } - - public function hasExpression() - { - return isset($this->expression); - } - - public function clearExpression() - { - unset($this->expression); - } - - /** - * Required. The Filter Expression that defines the Grouping Rule. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); - $this->expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php deleted file mode 100644 index fd5a44904895..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php +++ /dev/null @@ -1,229 +0,0 @@ -google.analytics.admin.v1alpha.IndustryCategory - */ -class IndustryCategory -{ - /** - * Industry category unspecified - * - * Generated from protobuf enum INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - const INDUSTRY_CATEGORY_UNSPECIFIED = 0; - /** - * Automotive - * - * Generated from protobuf enum AUTOMOTIVE = 1; - */ - const AUTOMOTIVE = 1; - /** - * Business and industrial markets - * - * Generated from protobuf enum BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - const BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - /** - * Finance - * - * Generated from protobuf enum FINANCE = 3; - */ - const FINANCE = 3; - /** - * Healthcare - * - * Generated from protobuf enum HEALTHCARE = 4; - */ - const HEALTHCARE = 4; - /** - * Technology - * - * Generated from protobuf enum TECHNOLOGY = 5; - */ - const TECHNOLOGY = 5; - /** - * Travel - * - * Generated from protobuf enum TRAVEL = 6; - */ - const TRAVEL = 6; - /** - * Other - * - * Generated from protobuf enum OTHER = 7; - */ - const OTHER = 7; - /** - * Arts and entertainment - * - * Generated from protobuf enum ARTS_AND_ENTERTAINMENT = 8; - */ - const ARTS_AND_ENTERTAINMENT = 8; - /** - * Beauty and fitness - * - * Generated from protobuf enum BEAUTY_AND_FITNESS = 9; - */ - const BEAUTY_AND_FITNESS = 9; - /** - * Books and literature - * - * Generated from protobuf enum BOOKS_AND_LITERATURE = 10; - */ - const BOOKS_AND_LITERATURE = 10; - /** - * Food and drink - * - * Generated from protobuf enum FOOD_AND_DRINK = 11; - */ - const FOOD_AND_DRINK = 11; - /** - * Games - * - * Generated from protobuf enum GAMES = 12; - */ - const GAMES = 12; - /** - * Hobbies and leisure - * - * Generated from protobuf enum HOBBIES_AND_LEISURE = 13; - */ - const HOBBIES_AND_LEISURE = 13; - /** - * Home and garden - * - * Generated from protobuf enum HOME_AND_GARDEN = 14; - */ - const HOME_AND_GARDEN = 14; - /** - * Internet and telecom - * - * Generated from protobuf enum INTERNET_AND_TELECOM = 15; - */ - const INTERNET_AND_TELECOM = 15; - /** - * Law and government - * - * Generated from protobuf enum LAW_AND_GOVERNMENT = 16; - */ - const LAW_AND_GOVERNMENT = 16; - /** - * News - * - * Generated from protobuf enum NEWS = 17; - */ - const NEWS = 17; - /** - * Online communities - * - * Generated from protobuf enum ONLINE_COMMUNITIES = 18; - */ - const ONLINE_COMMUNITIES = 18; - /** - * People and society - * - * Generated from protobuf enum PEOPLE_AND_SOCIETY = 19; - */ - const PEOPLE_AND_SOCIETY = 19; - /** - * Pets and animals - * - * Generated from protobuf enum PETS_AND_ANIMALS = 20; - */ - const PETS_AND_ANIMALS = 20; - /** - * Real estate - * - * Generated from protobuf enum REAL_ESTATE = 21; - */ - const REAL_ESTATE = 21; - /** - * Reference - * - * Generated from protobuf enum REFERENCE = 22; - */ - const REFERENCE = 22; - /** - * Science - * - * Generated from protobuf enum SCIENCE = 23; - */ - const SCIENCE = 23; - /** - * Sports - * - * Generated from protobuf enum SPORTS = 24; - */ - const SPORTS = 24; - /** - * Jobs and education - * - * Generated from protobuf enum JOBS_AND_EDUCATION = 25; - */ - const JOBS_AND_EDUCATION = 25; - /** - * Shopping - * - * Generated from protobuf enum SHOPPING = 26; - */ - const SHOPPING = 26; - - private static $valueToName = [ - self::INDUSTRY_CATEGORY_UNSPECIFIED => 'INDUSTRY_CATEGORY_UNSPECIFIED', - self::AUTOMOTIVE => 'AUTOMOTIVE', - self::BUSINESS_AND_INDUSTRIAL_MARKETS => 'BUSINESS_AND_INDUSTRIAL_MARKETS', - self::FINANCE => 'FINANCE', - self::HEALTHCARE => 'HEALTHCARE', - self::TECHNOLOGY => 'TECHNOLOGY', - self::TRAVEL => 'TRAVEL', - self::OTHER => 'OTHER', - self::ARTS_AND_ENTERTAINMENT => 'ARTS_AND_ENTERTAINMENT', - self::BEAUTY_AND_FITNESS => 'BEAUTY_AND_FITNESS', - self::BOOKS_AND_LITERATURE => 'BOOKS_AND_LITERATURE', - self::FOOD_AND_DRINK => 'FOOD_AND_DRINK', - self::GAMES => 'GAMES', - self::HOBBIES_AND_LEISURE => 'HOBBIES_AND_LEISURE', - self::HOME_AND_GARDEN => 'HOME_AND_GARDEN', - self::INTERNET_AND_TELECOM => 'INTERNET_AND_TELECOM', - self::LAW_AND_GOVERNMENT => 'LAW_AND_GOVERNMENT', - self::NEWS => 'NEWS', - self::ONLINE_COMMUNITIES => 'ONLINE_COMMUNITIES', - self::PEOPLE_AND_SOCIETY => 'PEOPLE_AND_SOCIETY', - self::PETS_AND_ANIMALS => 'PETS_AND_ANIMALS', - self::REAL_ESTATE => 'REAL_ESTATE', - self::REFERENCE => 'REFERENCE', - self::SCIENCE => 'SCIENCE', - self::SPORTS => 'SPORTS', - self::JOBS_AND_EDUCATION => 'JOBS_AND_EDUCATION', - self::SHOPPING => 'SHOPPING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php deleted file mode 100644 index 19dac5a16098..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.admin.v1alpha.LinkProposalInitiatingProduct - */ -class LinkProposalInitiatingProduct -{ - /** - * Unspecified product. - * - * Generated from protobuf enum LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - */ - const LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - /** - * This proposal was created by a user from Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS = 1; - */ - const GOOGLE_ANALYTICS = 1; - /** - * This proposal was created by a user from a linked product (not Google - * Analytics). - * - * Generated from protobuf enum LINKED_PRODUCT = 2; - */ - const LINKED_PRODUCT = 2; - - private static $valueToName = [ - self::LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED => 'LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED', - self::GOOGLE_ANALYTICS => 'GOOGLE_ANALYTICS', - self::LINKED_PRODUCT => 'LINKED_PRODUCT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php deleted file mode 100644 index 5143339967af..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php +++ /dev/null @@ -1,97 +0,0 @@ -google.analytics.admin.v1alpha.LinkProposalState - */ -class LinkProposalState -{ - /** - * Unspecified state - * - * Generated from protobuf enum LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - */ - const LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - /** - * This proposal is awaiting review from a Google Analytics user. This - * proposal will automatically expire after some time. - * - * Generated from protobuf enum AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; - */ - const AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; - /** - * This proposal is awaiting review from a user of a linked product. This - * proposal will automatically expire after some time. - * - * Generated from protobuf enum AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; - */ - const AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; - /** - * This proposal has been withdrawn by an admin on the initiating product. - * This proposal will be automatically deleted after some time. - * - * Generated from protobuf enum WITHDRAWN = 3; - */ - const WITHDRAWN = 3; - /** - * This proposal has been declined by an admin on the receiving product. This - * proposal will be automatically deleted after some time. - * - * Generated from protobuf enum DECLINED = 4; - */ - const DECLINED = 4; - /** - * This proposal expired due to lack of response from an admin on the - * receiving product. This proposal will be automatically deleted after some - * time. - * - * Generated from protobuf enum EXPIRED = 5; - */ - const EXPIRED = 5; - /** - * This proposal has become obsolete because a link was directly created to - * the same external product resource that this proposal specifies. This - * proposal will be automatically deleted after some time. - * - * Generated from protobuf enum OBSOLETE = 6; - */ - const OBSOLETE = 6; - - private static $valueToName = [ - self::LINK_PROPOSAL_STATE_UNSPECIFIED => 'LINK_PROPOSAL_STATE_UNSPECIFIED', - self::AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS => 'AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS', - self::AWAITING_REVIEW_FROM_LINKED_PRODUCT => 'AWAITING_REVIEW_FROM_LINKED_PRODUCT', - self::WITHDRAWN => 'WITHDRAWN', - self::DECLINED => 'DECLINED', - self::EXPIRED => 'EXPIRED', - self::OBSOLETE => 'OBSOLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php deleted file mode 100644 index 0aa42293c25a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.admin.v1alpha.LinkProposalStatusDetails - */ -class LinkProposalStatusDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The source of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_proposal_initiating_product = 0; - /** - * Output only. The email address of the user that proposed this linkage. - * - * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requestor_email = ''; - /** - * Output only. The state of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_proposal_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $link_proposal_initiating_product - * Output only. The source of this proposal. - * @type string $requestor_email - * Output only. The email address of the user that proposed this linkage. - * @type int $link_proposal_state - * Output only. The state of this proposal. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The source of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLinkProposalInitiatingProduct() - { - return $this->link_proposal_initiating_product; - } - - /** - * Output only. The source of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLinkProposalInitiatingProduct($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalInitiatingProduct::class); - $this->link_proposal_initiating_product = $var; - - return $this; - } - - /** - * Output only. The email address of the user that proposed this linkage. - * - * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRequestorEmail() - { - return $this->requestor_email; - } - - /** - * Output only. The email address of the user that proposed this linkage. - * - * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRequestorEmail($var) - { - GPBUtil::checkString($var, True); - $this->requestor_email = $var; - - return $this; - } - - /** - * Output only. The state of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLinkProposalState() - { - return $this->link_proposal_state; - } - - /** - * Output only. The state of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLinkProposalState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalState::class); - $this->link_proposal_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php deleted file mode 100644 index 93a4506ad5f4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1alpha.ListAccessBindingsRequest - */ -class ListAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * @type int $page_size - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * @type string $page_token - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php deleted file mode 100644 index d311f7612c7e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListAccessBindingsResponse - */ -class ListAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php deleted file mode 100644 index b58e30527c68..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountSummariesRequest - */ -class ListAccountSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php deleted file mode 100644 index 070ea0702270..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountSummariesResponse - */ -class ListAccountSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - private $account_summaries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $account_summaries - * Account summaries of all accounts the caller has access to. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccountSummaries() - { - return $this->account_summaries; - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccountSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccountSummary::class); - $this->account_summaries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php deleted file mode 100644 index 83b851ab5536..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountsRequest - */ -class ListAccountsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php deleted file mode 100644 index 3796927d5fc4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountsResponse - */ -class ListAccountsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - private $accounts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\Account>|\Google\Protobuf\Internal\RepeatedField $accounts - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccounts() - { - return $this->accounts; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; - * @param array<\Google\Analytics\Admin\V1alpha\Account>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Account::class); - $this->accounts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php deleted file mode 100644 index ff8dcdc85729..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.analytics.admin.v1alpha.ListAdSenseLinksRequest - */ -class ListAdSenseLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php deleted file mode 100644 index be6c763e5625..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAdSenseLinksResponse - */ -class ListAdSenseLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of AdSenseLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - private $adsense_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AdSenseLink>|\Google\Protobuf\Internal\RepeatedField $adsense_links - * List of AdSenseLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of AdSenseLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdsenseLinks() - { - return $this->adsense_links; - } - - /** - * List of AdSenseLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AdSenseLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdsenseLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); - $this->adsense_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php deleted file mode 100644 index 1b4bb4d90416..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListAudiencesRequest - */ -class ListAudiencesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php deleted file mode 100644 index d20f7ee05b42..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAudiencesResponse - */ -class ListAudiencesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Audiences. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - private $audiences; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\Audience>|\Google\Protobuf\Internal\RepeatedField $audiences - * List of Audiences. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of Audiences. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * List of Audiences. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - * @param array<\Google\Analytics\Admin\V1alpha\Audience>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudiences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->audiences = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php deleted file mode 100644 index d2fea9ff8381..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1alpha.ListBigQueryLinksRequest - */ -class ListBigQueryLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php deleted file mode 100644 index cf3486ac78cd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListBigQueryLinksResponse - */ -class ListBigQueryLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of BigQueryLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - private $bigquery_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\BigQueryLink>|\Google\Protobuf\Internal\RepeatedField $bigquery_links - * List of BigQueryLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of BigQueryLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBigqueryLinks() - { - return $this->bigquery_links; - } - - /** - * List of BigQueryLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\BigQueryLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBigqueryLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); - $this->bigquery_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php deleted file mode 100644 index 1185469f616c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ListChannelGroupsRequest - */ -class ListChannelGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php deleted file mode 100644 index b92ffc9b5ad8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListChannelGroupsResponse - */ -class ListChannelGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - private $channel_groups; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ChannelGroup>|\Google\Protobuf\Internal\RepeatedField $channel_groups - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannelGroups() - { - return $this->channel_groups; - } - - /** - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ChannelGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannelGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->channel_groups = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php deleted file mode 100644 index e86202e1d53e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest - */ -class ListConnectedSiteTagsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php deleted file mode 100644 index 3d0778010cbe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse - */ -class ListConnectedSiteTagsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - private $connected_site_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ConnectedSiteTag>|\Google\Protobuf\Internal\RepeatedField $connected_site_tags - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnectedSiteTags() - { - return $this->connected_site_tags; - } - - /** - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ConnectedSiteTag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnectedSiteTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class); - $this->connected_site_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php deleted file mode 100644 index 7660700c06df..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ListConversionEventsRequest - */ -class ListConversionEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent property. - * Example: 'properties/123' - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php deleted file mode 100644 index 4965a76b1303..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListConversionEventsResponse - */ -class ListConversionEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - private $conversion_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $conversion_events - * The requested conversion events - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversionEvents() - { - return $this->conversion_events; - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversionEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->conversion_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php deleted file mode 100644 index 141e6b2d43a4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListCustomDimensionsRequest - */ -class ListCustomDimensionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php deleted file mode 100644 index a7f3bf197e86..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListCustomDimensionsResponse - */ -class ListCustomDimensionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - private $custom_dimensions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $custom_dimensions - * List of CustomDimensions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomDimensions() - { - return $this->custom_dimensions; - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CustomDimension::class); - $this->custom_dimensions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php deleted file mode 100644 index f26524645eac..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListCustomMetricsRequest - */ -class ListCustomMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php deleted file mode 100644 index ecaaa9829a28..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListCustomMetricsResponse - */ -class ListCustomMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - private $custom_metrics; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $custom_metrics - * List of CustomMetrics. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomMetrics() - { - return $this->custom_metrics; - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - * @param array<\Google\Analytics\Admin\V1alpha\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->custom_metrics = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php deleted file mode 100644 index 9501e1d1624a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListDataStreamsRequest - */ -class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php deleted file mode 100644 index c3e6f6522afb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListDataStreamsResponse - */ -class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - private $data_streams; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\DataStream>|\Google\Protobuf\Internal\RepeatedField $data_streams - * List of DataStreams. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStreams() - { - return $this->data_streams; - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - * @param array<\Google\Analytics\Admin\V1alpha\DataStream>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->data_streams = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php deleted file mode 100644 index 8be2c4f60c6e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest - */ -class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php deleted file mode 100644 index 8d9711d2a2c3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse - */ -class ListDisplayVideo360AdvertiserLinkProposalsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DisplayVideo360AdvertiserLinkProposals. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - private $display_video_360_advertiser_link_proposals; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal>|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_link_proposals - * List of DisplayVideo360AdvertiserLinkProposals. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DisplayVideo360AdvertiserLinkProposals. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayVideo360AdvertiserLinkProposals() - { - return $this->display_video_360_advertiser_link_proposals; - } - - /** - * List of DisplayVideo360AdvertiserLinkProposals. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - * @param array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinkProposals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); - $this->display_video_360_advertiser_link_proposals = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php deleted file mode 100644 index 305fc4ddff31..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest - */ -class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php deleted file mode 100644 index 2bfab58804dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse - */ -class ListDisplayVideo360AdvertiserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DisplayVideo360AdvertiserLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - private $display_video_360_advertiser_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink>|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_links - * List of DisplayVideo360AdvertiserLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DisplayVideo360AdvertiserLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayVideo360AdvertiserLinks() - { - return $this->display_video_360_advertiser_links; - } - - /** - * List of DisplayVideo360AdvertiserLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php deleted file mode 100644 index 45844cabd6fd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListEventCreateRulesRequest - */ -class ListEventCreateRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php deleted file mode 100644 index ede402275d7b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListEventCreateRulesResponse - */ -class ListEventCreateRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - private $event_create_rules; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\EventCreateRule>|\Google\Protobuf\Internal\RepeatedField $event_create_rules - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventCreateRules() - { - return $this->event_create_rules; - } - - /** - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - * @param array<\Google\Analytics\Admin\V1alpha\EventCreateRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventCreateRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->event_create_rules = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php deleted file mode 100644 index 987f9360041e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListExpandedDataSetsRequest - */ -class ListExpandedDataSetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php deleted file mode 100644 index 08667102b0c4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListExpandedDataSetsResponse - */ -class ListExpandedDataSetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - private $expanded_data_sets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ExpandedDataSet>|\Google\Protobuf\Internal\RepeatedField $expanded_data_sets - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpandedDataSets() - { - return $this->expanded_data_sets; - } - - /** - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ExpandedDataSet>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpandedDataSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->expanded_data_sets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php deleted file mode 100644 index 4cfda39dd469..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.analytics.admin.v1alpha.ListFirebaseLinksRequest - */ -class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php deleted file mode 100644 index 3a0d33be83fb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1alpha.ListFirebaseLinksResponse - */ -class ListFirebaseLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - private $firebase_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $firebase_links - * List of FirebaseLinks. This will have at most one value. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFirebaseLinks() - { - return $this->firebase_links; - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFirebaseLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); - $this->firebase_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php deleted file mode 100644 index cdac9a7c04ad..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest - */ -class ListGoogleAdsLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php deleted file mode 100644 index c3d31c7fdb0c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse - */ -class ListGoogleAdsLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - private $google_ads_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $google_ads_links - * List of GoogleAdsLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGoogleAdsLinks() - { - return $this->google_ads_links; - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGoogleAdsLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); - $this->google_ads_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php deleted file mode 100644 index 7528d43a4af4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest - */ -class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * @type string $page_token - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php deleted file mode 100644 index 5cc554ad270c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse - */ -class ListMeasurementProtocolSecretsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - private $measurement_protocol_secrets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $measurement_protocol_secrets - * A list of secrets for the parent stream specified in the request. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMeasurementProtocolSecrets() - { - return $this->measurement_protocol_secrets; - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @param array<\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMeasurementProtocolSecrets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->measurement_protocol_secrets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php deleted file mode 100644 index 4b1b37feb740..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1alpha.ListPropertiesRequest - */ -class ListPropertiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php deleted file mode 100644 index ecfb989f75b6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListPropertiesResponse - */ -class ListPropertiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - private $properties; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\Property>|\Google\Protobuf\Internal\RepeatedField $properties - * Results that matched the filter criteria and were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; - * @param array<\Google\Analytics\Admin\V1alpha\Property>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Property::class); - $this->properties = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php deleted file mode 100644 index 737d15caca11..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest - */ -class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php deleted file mode 100644 index f5b74fde223e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse - */ -class ListSKAdNetworkConversionValueSchemasResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - private $skadnetwork_conversion_value_schemas; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema>|\Google\Protobuf\Internal\RepeatedField $skadnetwork_conversion_value_schemas - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkadnetworkConversionValueSchemas() - { - return $this->skadnetwork_conversion_value_schemas; - } - - /** - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - * @param array<\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkadnetworkConversionValueSchemas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->skadnetwork_conversion_value_schemas = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php deleted file mode 100644 index 422fa45ae1d4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ListSearchAds360LinksRequest - */ -class ListSearchAds360LinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php deleted file mode 100644 index 7a95c6bd2faa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListSearchAds360LinksResponse - */ -class ListSearchAds360LinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of SearchAds360Links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - private $search_ads_360_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\SearchAds360Link>|\Google\Protobuf\Internal\RepeatedField $search_ads_360_links - * List of SearchAds360Links. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of SearchAds360Links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchAds360Links() - { - return $this->search_ads_360_links; - } - - /** - * List of SearchAds360Links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\SearchAds360Link>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchAds360Links($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->search_ads_360_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php deleted file mode 100644 index 03a1db1ac1e2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php +++ /dev/null @@ -1,202 +0,0 @@ -google.analytics.admin.v1alpha.MatchingCondition - */ -class MatchingCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = ''; - /** - * Required. The type of comparison to be applied to the value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $comparison_type = 0; - /** - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * - * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * - * Generated from protobuf field bool negated = 4; - */ - protected $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * @type int $comparison_type - * Required. The type of comparison to be applied to the value. - * @type string $value - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * @type bool $negated - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Required. The type of comparison to be applied to the value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getComparisonType() - { - return $this->comparison_type; - } - - /** - * Required. The type of comparison to be applied to the value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setComparisonType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\MatchingCondition\ComparisonType::class); - $this->comparison_type = $var; - - return $this; - } - - /** - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * - * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * - * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * - * Generated from protobuf field bool negated = 4; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * - * Generated from protobuf field bool negated = 4; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php deleted file mode 100644 index 98caa42ead0a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1alpha.MatchingCondition.ComparisonType - */ -class ComparisonType -{ - /** - * Unknown - * - * Generated from protobuf enum COMPARISON_TYPE_UNSPECIFIED = 0; - */ - const COMPARISON_TYPE_UNSPECIFIED = 0; - /** - * Equals, case sensitive - * - * Generated from protobuf enum EQUALS = 1; - */ - const EQUALS = 1; - /** - * Equals, case insensitive - * - * Generated from protobuf enum EQUALS_CASE_INSENSITIVE = 2; - */ - const EQUALS_CASE_INSENSITIVE = 2; - /** - * Contains, case sensitive - * - * Generated from protobuf enum CONTAINS = 3; - */ - const CONTAINS = 3; - /** - * Contains, case insensitive - * - * Generated from protobuf enum CONTAINS_CASE_INSENSITIVE = 4; - */ - const CONTAINS_CASE_INSENSITIVE = 4; - /** - * Starts with, case sensitive - * - * Generated from protobuf enum STARTS_WITH = 5; - */ - const STARTS_WITH = 5; - /** - * Starts with, case insensitive - * - * Generated from protobuf enum STARTS_WITH_CASE_INSENSITIVE = 6; - */ - const STARTS_WITH_CASE_INSENSITIVE = 6; - /** - * Ends with, case sensitive - * - * Generated from protobuf enum ENDS_WITH = 7; - */ - const ENDS_WITH = 7; - /** - * Ends with, case insensitive - * - * Generated from protobuf enum ENDS_WITH_CASE_INSENSITIVE = 8; - */ - const ENDS_WITH_CASE_INSENSITIVE = 8; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 9; - */ - const GREATER_THAN = 9; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 10; - */ - const GREATER_THAN_OR_EQUAL = 10; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 11; - */ - const LESS_THAN = 11; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 12; - */ - const LESS_THAN_OR_EQUAL = 12; - /** - * regular expression. Only supported for web streams. - * - * Generated from protobuf enum REGULAR_EXPRESSION = 13; - */ - const REGULAR_EXPRESSION = 13; - /** - * regular expression, case insensitive. Only supported for web streams. - * - * Generated from protobuf enum REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; - */ - const REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; - - private static $valueToName = [ - self::COMPARISON_TYPE_UNSPECIFIED => 'COMPARISON_TYPE_UNSPECIFIED', - self::EQUALS => 'EQUALS', - self::EQUALS_CASE_INSENSITIVE => 'EQUALS_CASE_INSENSITIVE', - self::CONTAINS => 'CONTAINS', - self::CONTAINS_CASE_INSENSITIVE => 'CONTAINS_CASE_INSENSITIVE', - self::STARTS_WITH => 'STARTS_WITH', - self::STARTS_WITH_CASE_INSENSITIVE => 'STARTS_WITH_CASE_INSENSITIVE', - self::ENDS_WITH => 'ENDS_WITH', - self::ENDS_WITH_CASE_INSENSITIVE => 'ENDS_WITH_CASE_INSENSITIVE', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::REGULAR_EXPRESSION => 'REGULAR_EXPRESSION', - self::REGULAR_EXPRESSION_CASE_INSENSITIVE => 'REGULAR_EXPRESSION_CASE_INSENSITIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ComparisonType::class, \Google\Analytics\Admin\V1alpha\MatchingCondition_ComparisonType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php deleted file mode 100644 index 8c2a728f23d4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1alpha.MeasurementProtocolSecret - */ -class MeasurementProtocolSecret extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $secret_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @type string $display_name - * Required. Human-readable display name for this secret. - * @type string $secret_value - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSecretValue() - { - return $this->secret_value; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSecretValue($var) - { - GPBUtil::checkString($var, True); - $this->secret_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php deleted file mode 100644 index b6c9c747fd14..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.admin.v1alpha.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php deleted file mode 100644 index 3cdcaa9dcc3f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php +++ /dev/null @@ -1,145 +0,0 @@ -google.analytics.admin.v1alpha.ParameterMutation - */ -class ParameterMutation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * - * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parameter = ''; - /** - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * - * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parameter_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parameter - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * @type string $parameter_value - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * - * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParameter() - { - return $this->parameter; - } - - /** - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * - * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParameter($var) - { - GPBUtil::checkString($var, True); - $this->parameter = $var; - - return $this; - } - - /** - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * - * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParameterValue() - { - return $this->parameter_value; - } - - /** - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * - * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParameterValue($var) - { - GPBUtil::checkString($var, True); - $this->parameter_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php deleted file mode 100644 index 2dabbb8fd24d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.PostbackWindow - */ -class PostbackWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; - */ - private $conversion_values; - /** - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * - * Generated from protobuf field bool postback_window_settings_enabled = 2; - */ - protected $postback_window_settings_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ConversionValues>|\Google\Protobuf\Internal\RepeatedField $conversion_values - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * @type bool $postback_window_settings_enabled - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversionValues() - { - return $this->conversion_values; - } - - /** - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ConversionValues>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConversionValues::class); - $this->conversion_values = $arr; - - return $this; - } - - /** - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * - * Generated from protobuf field bool postback_window_settings_enabled = 2; - * @return bool - */ - public function getPostbackWindowSettingsEnabled() - { - return $this->postback_window_settings_enabled; - } - - /** - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * - * Generated from protobuf field bool postback_window_settings_enabled = 2; - * @param bool $var - * @return $this - */ - public function setPostbackWindowSettingsEnabled($var) - { - GPBUtil::checkBool($var); - $this->postback_window_settings_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php deleted file mode 100644 index f1d7004f0129..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php +++ /dev/null @@ -1,607 +0,0 @@ -google.analytics.admin.v1alpha.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $property_type = 0; - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parent = ''; - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - */ - protected $industry_category = 0; - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - */ - protected $currency_code = ''; - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_level = 0; - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $account = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * @type int $property_type - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the entity was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when entity payload fields were last updated. - * @type string $parent - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * @type string $display_name - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * @type int $industry_category - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * @type string $time_zone - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * @type string $currency_code - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * @type int $service_level - * Output only. The Google Analytics service level that applies to this - * property. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * @type string $account - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return int - */ - public function getIndustryCategory() - { - return $this->industry_category; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @param int $var - * @return $this - */ - public function setIndustryCategory($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\IndustryCategory::class); - $this->industry_category = $var; - - return $this; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getServiceLevel() - { - return $this->service_level; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setServiceLevel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ServiceLevel::class); - $this->service_level = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php deleted file mode 100644 index 05311403f27a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php +++ /dev/null @@ -1,189 +0,0 @@ -google.analytics.admin.v1alpha.PropertySummary - */ -class PropertySummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; - */ - protected $property_type = 0; - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * @type string $display_name - * Display name for the property referred to in this property summary. - * @type int $property_type - * The property's property type. - * @type string $parent - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php deleted file mode 100644 index 0b02428ed369..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.PropertyType - */ -class PropertyType -{ - /** - * Unknown or unspecified property type - * - * Generated from protobuf enum PROPERTY_TYPE_UNSPECIFIED = 0; - */ - const PROPERTY_TYPE_UNSPECIFIED = 0; - /** - * Ordinary GA4 property - * - * Generated from protobuf enum PROPERTY_TYPE_ORDINARY = 1; - */ - const PROPERTY_TYPE_ORDINARY = 1; - /** - * GA4 subproperty - * - * Generated from protobuf enum PROPERTY_TYPE_SUBPROPERTY = 2; - */ - const PROPERTY_TYPE_SUBPROPERTY = 2; - /** - * GA4 rollup property - * - * Generated from protobuf enum PROPERTY_TYPE_ROLLUP = 3; - */ - const PROPERTY_TYPE_ROLLUP = 3; - - private static $valueToName = [ - self::PROPERTY_TYPE_UNSPECIFIED => 'PROPERTY_TYPE_UNSPECIFIED', - self::PROPERTY_TYPE_ORDINARY => 'PROPERTY_TYPE_ORDINARY', - self::PROPERTY_TYPE_SUBPROPERTY => 'PROPERTY_TYPE_SUBPROPERTY', - self::PROPERTY_TYPE_ROLLUP => 'PROPERTY_TYPE_ROLLUP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php deleted file mode 100644 index f1741f8e243e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - */ -class ProvisionAccountTicketRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - */ - protected $account = null; - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - */ - protected $redirect_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Account $account - * The account to create. - * @type string $redirect_uri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @return \Google\Analytics\Admin\V1alpha\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @param \Google\Analytics\Admin\V1alpha\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @param string $var - * @return $this - */ - public function setRedirectUri($var) - { - GPBUtil::checkString($var, True); - $this->redirect_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php deleted file mode 100644 index 22408ea9bcb1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - */ -class ProvisionAccountTicketResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - */ - protected $account_ticket_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_ticket_id - * The param to be passed in the ToS link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @return string - */ - public function getAccountTicketId() - { - return $this->account_ticket_id; - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @param string $var - * @return $this - */ - public function setAccountTicketId($var) - { - GPBUtil::checkString($var, True); - $this->account_ticket_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php deleted file mode 100644 index 63807d0a47dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php +++ /dev/null @@ -1,679 +0,0 @@ -google.analytics.admin.v1alpha.RunAccessReportRequest - */ -class RunAccessReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - */ - protected $entity = ''; - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - private $metrics; - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - protected $dimension_filter = null; - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - protected $metric_filter = null; - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - */ - protected $offset = 0; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - */ - protected $limit = 0; - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - */ - protected $time_zone = ''; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - private $order_bys; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - */ - protected $return_entity_quota = false; - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_all_users = false; - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expand_groups = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type array<\Google\Analytics\Admin\V1alpha\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type array<\Google\Analytics\Admin\V1alpha\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type array<\Google\Analytics\Admin\V1alpha\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $dimension_filter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $metric_filter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $time_zone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type array<\Google\Analytics\Admin\V1alpha\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type bool $return_entity_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type bool $include_all_users - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * @type bool $expand_groups - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - * @param array<\Google\Analytics\Admin\V1alpha\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - * @param array<\Google\Analytics\Admin\V1alpha\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessOrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @return bool - */ - public function getReturnEntityQuota() - { - return $this->return_entity_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @param bool $var - * @return $this - */ - public function setReturnEntityQuota($var) - { - GPBUtil::checkBool($var); - $this->return_entity_quota = $var; - - return $this; - } - - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIncludeAllUsers() - { - return $this->include_all_users; - } - - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIncludeAllUsers($var) - { - GPBUtil::checkBool($var); - $this->include_all_users = $var; - - return $this; - } - - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExpandGroups() - { - return $this->expand_groups; - } - - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExpandGroups($var) - { - GPBUtil::checkBool($var); - $this->expand_groups = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php deleted file mode 100644 index 1817890154d9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1alpha.RunAccessReportResponse - */ -class RunAccessReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - private $rows; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - */ - protected $row_count = 0; - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - protected $quota = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * @type array<\Google\Analytics\Admin\V1alpha\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * @type array<\Google\Analytics\Admin\V1alpha\AccessRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Admin\V1alpha\AccessQuota $quota - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - * @param array<\Google\Analytics\Admin\V1alpha\AccessRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessRow::class); - $this->rows = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessQuota|null - */ - public function getQuota() - { - return $this->quota; - } - - public function hasQuota() - { - return isset($this->quota); - } - - public function clearQuota() - { - unset($this->quota); - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessQuota $var - * @return $this - */ - public function setQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuota::class); - $this->quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php deleted file mode 100644 index 23b7b418dd4d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php +++ /dev/null @@ -1,309 +0,0 @@ -google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema - */ -class SKAdNetworkConversionValueSchema extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $postback_window_one = null; - /** - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - protected $postback_window_two = null; - /** - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - protected $postback_window_three = null; - /** - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * - * Generated from protobuf field bool apply_conversion_values = 5; - */ - protected $apply_conversion_values = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_one - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_two - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_three - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * @type bool $apply_conversion_values - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null - */ - public function getPostbackWindowOne() - { - return $this->postback_window_one; - } - - public function hasPostbackWindowOne() - { - return isset($this->postback_window_one); - } - - public function clearPostbackWindowOne() - { - unset($this->postback_window_one); - } - - /** - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var - * @return $this - */ - public function setPostbackWindowOne($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); - $this->postback_window_one = $var; - - return $this; - } - - /** - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null - */ - public function getPostbackWindowTwo() - { - return $this->postback_window_two; - } - - public function hasPostbackWindowTwo() - { - return isset($this->postback_window_two); - } - - public function clearPostbackWindowTwo() - { - unset($this->postback_window_two); - } - - /** - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var - * @return $this - */ - public function setPostbackWindowTwo($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); - $this->postback_window_two = $var; - - return $this; - } - - /** - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null - */ - public function getPostbackWindowThree() - { - return $this->postback_window_three; - } - - public function hasPostbackWindowThree() - { - return isset($this->postback_window_three); - } - - public function clearPostbackWindowThree() - { - unset($this->postback_window_three); - } - - /** - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var - * @return $this - */ - public function setPostbackWindowThree($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); - $this->postback_window_three = $var; - - return $this; - } - - /** - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * - * Generated from protobuf field bool apply_conversion_values = 5; - * @return bool - */ - public function getApplyConversionValues() - { - return $this->apply_conversion_values; - } - - /** - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * - * Generated from protobuf field bool apply_conversion_values = 5; - * @param bool $var - * @return $this - */ - public function setApplyConversionValues($var) - { - GPBUtil::checkBool($var); - $this->apply_conversion_values = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php deleted file mode 100644 index 3861de1b8129..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php +++ /dev/null @@ -1,489 +0,0 @@ -google.analytics.admin.v1alpha.SearchAds360Link - */ -class SearchAds360Link extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $advertiser_id = ''; - /** - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $campaign_data_sharing_enabled = null; - /** - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cost_data_sharing_enabled = null; - /** - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * - * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $advertiser_display_name = ''; - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - protected $ads_personalization_enabled = null; - /** - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - protected $site_stats_sharing_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * @type string $advertiser_id - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * @type string $advertiser_display_name - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $site_stats_sharing_enabled - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdvertiserId() - { - return $this->advertiser_id; - } - - /** - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdvertiserId($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_id = $var; - - return $this; - } - - /** - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCampaignDataSharingEnabled() - { - return $this->campaign_data_sharing_enabled; - } - - public function hasCampaignDataSharingEnabled() - { - return isset($this->campaign_data_sharing_enabled); - } - - public function clearCampaignDataSharingEnabled() - { - unset($this->campaign_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCampaignDataSharingEnabled() - - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCampaignDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("campaign_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCampaignDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->campaign_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCampaignDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("campaign_data_sharing_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCostDataSharingEnabled() - { - return $this->cost_data_sharing_enabled; - } - - public function hasCostDataSharingEnabled() - { - return isset($this->cost_data_sharing_enabled); - } - - public function clearCostDataSharingEnabled() - { - unset($this->cost_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCostDataSharingEnabled() - - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCostDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("cost_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCostDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cost_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCostDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("cost_data_sharing_enabled", $var); - return $this;} - - /** - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * - * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdvertiserDisplayName() - { - return $this->advertiser_display_name; - } - - /** - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * - * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdvertiserDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_display_name = $var; - - return $this; - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return \Google\Protobuf\BoolValue|null - */ - public function getSiteStatsSharingEnabled() - { - return $this->site_stats_sharing_enabled; - } - - public function hasSiteStatsSharingEnabled() - { - return isset($this->site_stats_sharing_enabled); - } - - public function clearSiteStatsSharingEnabled() - { - unset($this->site_stats_sharing_enabled); - } - - /** - * Returns the unboxed value from getSiteStatsSharingEnabled() - - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return bool|null - */ - public function getSiteStatsSharingEnabledUnwrapped() - { - return $this->readWrapperValue("site_stats_sharing_enabled"); - } - - /** - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setSiteStatsSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->site_stats_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @param bool|null $var - * @return $this - */ - public function setSiteStatsSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("site_stats_sharing_enabled", $var); - return $this;} - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php deleted file mode 100644 index 0d04937b597d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php +++ /dev/null @@ -1,407 +0,0 @@ -google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest - */ -class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account resource for which to return change history - * resources. - * - * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $account = ''; - /** - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_type; - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $action; - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $actor_email; - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $earliest_change_time = null; - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latest_change_time = null; - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account - * Required. The account resource for which to return change history - * resources. - * @type string $property - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_type - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @type array|\Google\Protobuf\Internal\RepeatedField $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @type array|\Google\Protobuf\Internal\RepeatedField $actor_email - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type \Google\Protobuf\Timestamp $earliest_change_time - * Optional. If set, only return changes made after this time (inclusive). - * @type \Google\Protobuf\Timestamp $latest_change_time - * Optional. If set, only return changes made before this time (inclusive). - * @type int $page_size - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account resource for which to return change history - * resources. - * - * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Required. The account resource for which to return change history - * resources. - * - * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - - /** - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\ChangeHistoryResourceType::class); - $this->resource_type = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAction() - { - return $this->action; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAction($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\ActionType::class); - $this->action = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActorEmail() - { - return $this->actor_email; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActorEmail($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actor_email = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestChangeTime() - { - return $this->earliest_change_time; - } - - public function hasEarliestChangeTime() - { - return isset($this->earliest_change_time); - } - - public function clearEarliestChangeTime() - { - unset($this->earliest_change_time); - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_change_time = $var; - - return $this; - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestChangeTime() - { - return $this->latest_change_time; - } - - public function hasLatestChangeTime() - { - return isset($this->latest_change_time); - } - - public function clearLatestChangeTime() - { - unset($this->latest_change_time); - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_change_time = $var; - - return $this; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php deleted file mode 100644 index d26a3e0bd325..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse - */ -class SearchChangeHistoryEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - private $change_history_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $change_history_events - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChangeHistoryEvents() - { - return $this->change_history_events; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChangeHistoryEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChangeHistoryEvent::class); - $this->change_history_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php deleted file mode 100644 index d7e00a48d589..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php +++ /dev/null @@ -1,61 +0,0 @@ -google.analytics.admin.v1alpha.ServiceLevel - */ -class ServiceLevel -{ - /** - * Service level not specified or invalid. - * - * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0; - */ - const SERVICE_LEVEL_UNSPECIFIED = 0; - /** - * The standard version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1; - */ - const GOOGLE_ANALYTICS_STANDARD = 1; - /** - * The paid, premium version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2; - */ - const GOOGLE_ANALYTICS_360 = 2; - - private static $valueToName = [ - self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED', - self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD', - self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php deleted file mode 100644 index 0dd8afa71817..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest - */ -class SetAutomatedGa4ConfigurationOptOutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = ''; - /** - * The status to set. - * - * Generated from protobuf field bool opt_out = 2; - */ - protected $opt_out = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * @type bool $opt_out - * The status to set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The status to set. - * - * Generated from protobuf field bool opt_out = 2; - * @return bool - */ - public function getOptOut() - { - return $this->opt_out; - } - - /** - * The status to set. - * - * Generated from protobuf field bool opt_out = 2; - * @param bool $var - * @return $this - */ - public function setOptOut($var) - { - GPBUtil::checkBool($var); - $this->opt_out = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php deleted file mode 100644 index 481c502c84c4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse - */ -class SetAutomatedGa4ConfigurationOptOutResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php deleted file mode 100644 index 4d5a86a8df7e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php +++ /dev/null @@ -1,77 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAccessBindingRequest - */ -class UpdateAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The access binding to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_binding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessBinding $access_binding - * Required. The access binding to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The access binding to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AccessBinding|null - */ - public function getAccessBinding() - { - return $this->access_binding; - } - - public function hasAccessBinding() - { - return isset($this->access_binding); - } - - public function clearAccessBinding() - { - unset($this->access_binding); - } - - /** - * Required. The access binding to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AccessBinding $var - * @return $this - */ - public function setAccessBinding($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_binding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php deleted file mode 100644 index 6319af654b8f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAccountRequest - */ -class UpdateAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $account = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Account $account - * Required. The account to update. - * The account's `name` field is used to identify the account. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php deleted file mode 100644 index 762702551212..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest - */ -class UpdateAttributionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attribution_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AttributionSettings $attribution_settings - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings|null - */ - public function getAttributionSettings() - { - return $this->attribution_settings; - } - - public function hasAttributionSettings() - { - return isset($this->attribution_settings); - } - - public function clearAttributionSettings() - { - unset($this->attribution_settings); - } - - /** - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $var - * @return $this - */ - public function setAttributionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AttributionSettings::class); - $this->attribution_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php deleted file mode 100644 index 3a8b02265922..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAudienceRequest - */ -class UpdateAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Audience $audience - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Audience|null - */ - public function getAudience() - { - return $this->audience; - } - - public function hasAudience() - { - return isset($this->audience); - } - - public function clearAudience() - { - unset($this->audience); - } - - /** - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Audience $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->audience = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php deleted file mode 100644 index 549cfc6cdb67..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.UpdateChannelGroupRequest - */ -class UpdateChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_group = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null - */ - public function getChannelGroup() - { - return $this->channel_group; - } - - public function hasChannelGroup() - { - return isset($this->channel_group); - } - - public function clearChannelGroup() - { - unset($this->channel_group); - } - - /** - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var - * @return $this - */ - public function setChannelGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->channel_group = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php deleted file mode 100644 index 14134e4d749b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateConversionEventRequest - */ -class UpdateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php deleted file mode 100644 index f99cea1216e2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.analytics.admin.v1alpha.UpdateCustomDimensionRequest - */ -class UpdateCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - protected $custom_dimension = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension - * The CustomDimension to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->custom_dimension; - } - - public function hasCustomDimension() - { - return isset($this->custom_dimension); - } - - public function clearCustomDimension() - { - unset($this->custom_dimension); - } - - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); - $this->custom_dimension = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php deleted file mode 100644 index fbb81b0f87d7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.analytics.admin.v1alpha.UpdateCustomMetricRequest - */ -class UpdateCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - protected $custom_metric = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric - * The CustomMetric to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php deleted file mode 100644 index 4eabea94e7f2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - */ -class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_retention_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->data_retention_settings; - } - - public function hasDataRetentionSettings() - { - return isset($this->data_retention_settings); - } - - public function clearDataRetentionSettings() - { - unset($this->data_retention_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class); - $this->data_retention_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php deleted file mode 100644 index dc0c0f8c4baa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDataStreamRequest - */ -class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - protected $data_stream = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream - * The DataStream to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return \Google\Analytics\Admin\V1alpha\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @param \Google\Analytics\Admin\V1alpha\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->data_stream = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 339205765211..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest - */ -class UpdateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The DisplayVideo360AdvertiserLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - protected $display_video_360_advertiser_link = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * The DisplayVideo360AdvertiserLink to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DisplayVideo360AdvertiserLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->display_video_360_advertiser_link; - } - - public function hasDisplayVideo360AdvertiserLink() - { - return isset($this->display_video_360_advertiser_link); - } - - public function clearDisplayVideo360AdvertiserLink() - { - unset($this->display_video_360_advertiser_link); - } - - /** - * The DisplayVideo360AdvertiserLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php deleted file mode 100644 index cb8df4193013..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - */ -class UpdateEnhancedMeasurementSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enhanced_measurement_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings|null - */ - public function getEnhancedMeasurementSettings() - { - return $this->enhanced_measurement_settings; - } - - public function hasEnhancedMeasurementSettings() - { - return isset($this->enhanced_measurement_settings); - } - - public function clearEnhancedMeasurementSettings() - { - unset($this->enhanced_measurement_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $var - * @return $this - */ - public function setEnhancedMeasurementSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings::class); - $this->enhanced_measurement_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php deleted file mode 100644 index af24f12bf422..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest - */ -class UpdateEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_create_rule = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null - */ - public function getEventCreateRule() - { - return $this->event_create_rule; - } - - public function hasEventCreateRule() - { - return isset($this->event_create_rule); - } - - public function clearEventCreateRule() - { - unset($this->event_create_rule); - } - - /** - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var - * @return $this - */ - public function setEventCreateRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->event_create_rule = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php deleted file mode 100644 index de021a0e5ccf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest - */ -class UpdateExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expanded_data_set = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null - */ - public function getExpandedDataSet() - { - return $this->expanded_data_set; - } - - public function hasExpandedDataSet() - { - return isset($this->expanded_data_set); - } - - public function clearExpandedDataSet() - { - unset($this->expanded_data_set); - } - - /** - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var - * @return $this - */ - public function setExpandedDataSet($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->expanded_data_set = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php deleted file mode 100644 index 764994684bf5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest - */ -class UpdateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - protected $google_ads_link = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link - * The GoogleAdsLink to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->google_ads_link; - } - - public function hasGoogleAdsLink() - { - return isset($this->google_ads_link); - } - - public function clearGoogleAdsLink() - { - unset($this->google_ads_link); - } - - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); - $this->google_ads_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php deleted file mode 100644 index 76755c2b21c6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest - */ -class UpdateGoogleSignalsSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_signals_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $google_signals_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings|null - */ - public function getGoogleSignalsSettings() - { - return $this->google_signals_settings; - } - - public function hasGoogleSignalsSettings() - { - return isset($this->google_signals_settings); - } - - public function clearGoogleSignalsSettings() - { - unset($this->google_signals_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $var - * @return $this - */ - public function setGoogleSignalsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings::class); - $this->google_signals_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php deleted file mode 100644 index 06a18771fbf0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest - */ -class UpdateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php deleted file mode 100644 index 739b15b82e93..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.UpdatePropertyRequest - */ -class UpdatePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $property - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->property = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 5af1575bba01..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest - */ -class UpdateSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. SKAdNetwork conversion value schema to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $skadnetwork_conversion_value_schema = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema - * Required. SKAdNetwork conversion value schema to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. SKAdNetwork conversion value schema to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null - */ - public function getSkadnetworkConversionValueSchema() - { - return $this->skadnetwork_conversion_value_schema; - } - - public function hasSkadnetworkConversionValueSchema() - { - return isset($this->skadnetwork_conversion_value_schema); - } - - public function clearSkadnetworkConversionValueSchema() - { - unset($this->skadnetwork_conversion_value_schema); - } - - /** - * Required. SKAdNetwork conversion value schema to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var - * @return $this - */ - public function setSkadnetworkConversionValueSchema($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->skadnetwork_conversion_value_schema = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php deleted file mode 100644 index ddf8d427d80f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest - */ -class UpdateSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The SearchAds360Link to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - protected $search_ads_360_link = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link - * The SearchAds360Link to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The SearchAds360Link to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null - */ - public function getSearchAds360Link() - { - return $this->search_ads_360_link; - } - - public function hasSearchAds360Link() - { - return isset($this->search_ads_360_link); - } - - public function clearSearchAds360Link() - { - unset($this->search_ads_360_link); - } - - /** - * The SearchAds360Link to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var - * @return $this - */ - public function setSearchAds360Link($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->search_ads_360_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php deleted file mode 100644 index ebe379ea6db7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php +++ /dev/null @@ -1,84 +0,0 @@ -acknowledgeUserDataCollection( - $formattedProperty, - $acknowledgement - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $acknowledgement = '[ACKNOWLEDGEMENT]'; - - acknowledge_user_data_collection_sample($formattedProperty, $acknowledgement); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 9e270c4ebe14..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,74 +0,0 @@ -approveDisplayVideo360AdvertiserLinkProposal( - $formattedName - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - approve_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php deleted file mode 100644 index 7f81814a2af0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php +++ /dev/null @@ -1,64 +0,0 @@ -archiveAudience($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - archive_audience_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php deleted file mode 100644 index 33ef2e5a7067..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php +++ /dev/null @@ -1,68 +0,0 @@ -archiveCustomDimension($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - archive_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php deleted file mode 100644 index 5f3915c57404..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php +++ /dev/null @@ -1,65 +0,0 @@ -archiveCustomMetric($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - archive_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php deleted file mode 100644 index 514f75f69356..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedRequestsParent) - ->setAccessBinding($requestsAccessBinding); - $requests = [$createAccessBindingRequest,]; - - // Call the API and handle any network failures. - try { - /** @var BatchCreateAccessBindingsResponse $response */ - $response = $analyticsAdminServiceClient->batchCreateAccessBindings($formattedParent, $requests); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - $formattedRequestsParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - batch_create_access_bindings_sample($formattedParent, $formattedRequestsParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php deleted file mode 100644 index e2872ee76c95..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedRequestsName); - $requests = [$deleteAccessBindingRequest,]; - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->batchDeleteAccessBindings($formattedParent, $requests); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - $formattedRequestsName = AnalyticsAdminServiceClient::accessBindingName( - '[ACCOUNT]', - '[ACCESS_BINDING]' - ); - - batch_delete_access_bindings_sample($formattedParent, $formattedRequestsName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php deleted file mode 100644 index 2a8518c549ff..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php +++ /dev/null @@ -1,85 +0,0 @@ -batchGetAccessBindings($formattedParent, $formattedNames); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - $formattedNamesElement = AnalyticsAdminServiceClient::accessBindingName( - '[ACCOUNT]', - '[ACCESS_BINDING]' - ); - - batch_get_access_bindings_sample($formattedParent, $formattedNamesElement); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php deleted file mode 100644 index dec3209e83ba..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php +++ /dev/null @@ -1,80 +0,0 @@ -setAccessBinding($requestsAccessBinding); - $requests = [$updateAccessBindingRequest,]; - - // Call the API and handle any network failures. - try { - /** @var BatchUpdateAccessBindingsResponse $response */ - $response = $analyticsAdminServiceClient->batchUpdateAccessBindings($formattedParent, $requests); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - batch_update_access_bindings_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 39bab4f1b1a3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,76 +0,0 @@ -cancelDisplayVideo360AdvertiserLinkProposal( - $formattedName - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - cancel_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php deleted file mode 100644 index 91cb663734ce..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php +++ /dev/null @@ -1,71 +0,0 @@ -createAccessBinding($formattedParent, $accessBinding); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - create_access_binding_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php deleted file mode 100644 index 936cd5e8e779..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php +++ /dev/null @@ -1,71 +0,0 @@ -createAdSenseLink($formattedParent, $adsenseLink); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_ad_sense_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php deleted file mode 100644 index 40951483aec7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php +++ /dev/null @@ -1,98 +0,0 @@ -setClauseType($audienceFilterClausesClauseType); - $audienceFilterClauses = [$audienceFilterClause,]; - $audience = (new Audience()) - ->setDisplayName($audienceDisplayName) - ->setDescription($audienceDescription) - ->setMembershipDurationDays($audienceMembershipDurationDays) - ->setFilterClauses($audienceFilterClauses); - - // Call the API and handle any network failures. - try { - /** @var Audience $response */ - $response = $analyticsAdminServiceClient->createAudience($formattedParent, $audience); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $audienceDisplayName = '[DISPLAY_NAME]'; - $audienceDescription = '[DESCRIPTION]'; - $audienceMembershipDurationDays = 0; - $audienceFilterClausesClauseType = AudienceClauseType::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; - - create_audience_sample( - $formattedParent, - $audienceDisplayName, - $audienceDescription, - $audienceMembershipDurationDays, - $audienceFilterClausesClauseType - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php deleted file mode 100644 index 8af13f006f18..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php +++ /dev/null @@ -1,91 +0,0 @@ -setDisplayName($channelGroupGroupingRuleDisplayName) - ->setExpression($channelGroupGroupingRuleExpression); - $channelGroupGroupingRule = [$groupingRule,]; - $channelGroup = (new ChannelGroup()) - ->setDisplayName($channelGroupDisplayName) - ->setGroupingRule($channelGroupGroupingRule); - - // Call the API and handle any network failures. - try { - /** @var ChannelGroup $response */ - $response = $analyticsAdminServiceClient->createChannelGroup($formattedParent, $channelGroup); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $channelGroupDisplayName = '[DISPLAY_NAME]'; - $channelGroupGroupingRuleDisplayName = '[DISPLAY_NAME]'; - - create_channel_group_sample( - $formattedParent, - $channelGroupDisplayName, - $channelGroupGroupingRuleDisplayName - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php deleted file mode 100644 index b5dc77041933..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php +++ /dev/null @@ -1,79 +0,0 @@ -setDisplayName($connectedSiteTagDisplayName) - ->setTagId($connectedSiteTagTagId); - - // Call the API and handle any network failures. - try { - /** @var CreateConnectedSiteTagResponse $response */ - $response = $analyticsAdminServiceClient->createConnectedSiteTag($connectedSiteTag); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $connectedSiteTagDisplayName = '[DISPLAY_NAME]'; - $connectedSiteTagTagId = '[TAG_ID]'; - - create_connected_site_tag_sample($connectedSiteTagDisplayName, $connectedSiteTagTagId); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConnectedSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php deleted file mode 100644 index 56ba72b61317..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php +++ /dev/null @@ -1,70 +0,0 @@ -createConversionEvent($conversionEvent, $formattedParent); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_conversion_event_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php deleted file mode 100644 index 2c5cf11f4e09..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php +++ /dev/null @@ -1,103 +0,0 @@ -setParameterName($customDimensionParameterName) - ->setDisplayName($customDimensionDisplayName) - ->setScope($customDimensionScope); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customDimensionParameterName = '[PARAMETER_NAME]'; - $customDimensionDisplayName = '[DISPLAY_NAME]'; - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - - create_custom_dimension_sample( - $formattedParent, - $customDimensionParameterName, - $customDimensionDisplayName, - $customDimensionScope - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php deleted file mode 100644 index 9febbc664e84..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php +++ /dev/null @@ -1,104 +0,0 @@ -setParameterName($customMetricParameterName) - ->setDisplayName($customMetricDisplayName) - ->setMeasurementUnit($customMetricMeasurementUnit) - ->setScope($customMetricScope); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customMetricParameterName = '[PARAMETER_NAME]'; - $customMetricDisplayName = '[DISPLAY_NAME]'; - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - - create_custom_metric_sample( - $formattedParent, - $customMetricParameterName, - $customMetricDisplayName, - $customMetricMeasurementUnit, - $customMetricScope - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php deleted file mode 100644 index f4227170fe1d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php +++ /dev/null @@ -1,73 +0,0 @@ -setType($dataStreamType); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - - create_data_stream_sample($formattedParent, $dataStreamType); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php deleted file mode 100644 index e974dc8d12fa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php +++ /dev/null @@ -1,76 +0,0 @@ -createDisplayVideo360AdvertiserLink( - $formattedParent, - $displayVideo360AdvertiserLink - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_display_video360_advertiser_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php deleted file mode 100644 index c79fd3d30d67..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,72 +0,0 @@ -createDisplayVideo360AdvertiserLinkProposal( - $formattedParent, - $displayVideo360AdvertiserLinkProposal - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_display_video360_advertiser_link_proposal_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php deleted file mode 100644 index 03c4c534a1fa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php +++ /dev/null @@ -1,109 +0,0 @@ -setField($eventCreateRuleEventConditionsField) - ->setComparisonType($eventCreateRuleEventConditionsComparisonType) - ->setValue($eventCreateRuleEventConditionsValue); - $eventCreateRuleEventConditions = [$matchingCondition,]; - $eventCreateRule = (new EventCreateRule()) - ->setDestinationEvent($eventCreateRuleDestinationEvent) - ->setEventConditions($eventCreateRuleEventConditions); - - // Call the API and handle any network failures. - try { - /** @var EventCreateRule $response */ - $response = $analyticsAdminServiceClient->createEventCreateRule($formattedParent, $eventCreateRule); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRuleDestinationEvent = '[DESTINATION_EVENT]'; - $eventCreateRuleEventConditionsField = '[FIELD]'; - $eventCreateRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; - $eventCreateRuleEventConditionsValue = '[VALUE]'; - - create_event_create_rule_sample( - $formattedParent, - $eventCreateRuleDestinationEvent, - $eventCreateRuleEventConditionsField, - $eventCreateRuleEventConditionsComparisonType, - $eventCreateRuleEventConditionsValue - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php deleted file mode 100644 index 3fbca5d1d341..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($expandedDataSetDisplayName); - - // Call the API and handle any network failures. - try { - /** @var ExpandedDataSet $response */ - $response = $analyticsAdminServiceClient->createExpandedDataSet($formattedParent, $expandedDataSet); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $expandedDataSetDisplayName = '[DISPLAY_NAME]'; - - create_expanded_data_set_sample($formattedParent, $expandedDataSetDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php deleted file mode 100644 index a07834e1e52d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php +++ /dev/null @@ -1,72 +0,0 @@ -createFirebaseLink($formattedParent, $firebaseLink); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_firebase_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php deleted file mode 100644 index 31848b199c74..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php +++ /dev/null @@ -1,69 +0,0 @@ -createGoogleAdsLink($formattedParent, $googleAdsLink); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_google_ads_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php deleted file mode 100644 index 2ea353b5e600..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php +++ /dev/null @@ -1,78 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret( - $formattedParent, - $measurementProtocolSecret - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - create_measurement_protocol_secret_sample($formattedParent, $measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php deleted file mode 100644 index 17136f819709..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php +++ /dev/null @@ -1,82 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->createProperty($property); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - create_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php deleted file mode 100644 index 6c10b8c37c1c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php +++ /dev/null @@ -1,72 +0,0 @@ -createSearchAds360Link( - $formattedParent, - $searchAds360Link - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_search_ads360_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index badedf8676c5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,76 +0,0 @@ -setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - - // Call the API and handle any network failures. - try { - /** @var SKAdNetworkConversionValueSchema $response */ - $response = $analyticsAdminServiceClient->createSKAdNetworkConversionValueSchema( - $formattedParent, - $skadnetworkConversionValueSchema - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - create_sk_ad_network_conversion_value_schema_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php deleted file mode 100644 index 1c4b3511a86c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php +++ /dev/null @@ -1,66 +0,0 @@ -deleteAccessBinding($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - - delete_access_binding_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php deleted file mode 100644 index 7589ba6b3b1a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php +++ /dev/null @@ -1,76 +0,0 @@ -deleteAccount($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - delete_account_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php deleted file mode 100644 index 92428c2174d3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php +++ /dev/null @@ -1,66 +0,0 @@ -deleteAdSenseLink($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - - delete_ad_sense_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php deleted file mode 100644 index 3b7e70b49763..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php +++ /dev/null @@ -1,65 +0,0 @@ -deleteChannelGroup($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - - delete_channel_group_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php deleted file mode 100644 index 26b2ab4ce47a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php +++ /dev/null @@ -1,52 +0,0 @@ -deleteConnectedSiteTag(); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConnectedSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php deleted file mode 100644 index f63a971778ca..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php +++ /dev/null @@ -1,69 +0,0 @@ -deleteConversionEvent($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - delete_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php deleted file mode 100644 index 5336ec1d2c2b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php +++ /dev/null @@ -1,65 +0,0 @@ -deleteDataStream($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - delete_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php deleted file mode 100644 index be04f330f343..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php +++ /dev/null @@ -1,68 +0,0 @@ -deleteDisplayVideo360AdvertiserLink($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK]' - ); - - delete_display_video360_advertiser_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php deleted file mode 100644 index c32a1fc8ab62..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,69 +0,0 @@ -deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - delete_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php deleted file mode 100644 index f4a9155fb269..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php +++ /dev/null @@ -1,69 +0,0 @@ -deleteEventCreateRule($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::eventCreateRuleName( - '[PROPERTY]', - '[DATA_STREAM]', - '[EVENT_CREATE_RULE]' - ); - - delete_event_create_rule_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php deleted file mode 100644 index 2c32ff745415..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php +++ /dev/null @@ -1,67 +0,0 @@ -deleteExpandedDataSet($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::expandedDataSetName( - '[PROPERTY]', - '[EXPANDED_DATA_SET]' - ); - - delete_expanded_data_set_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php deleted file mode 100644 index fbf301adbaf4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php +++ /dev/null @@ -1,65 +0,0 @@ -deleteFirebaseLink($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - - delete_firebase_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php deleted file mode 100644 index 1d37f9b8698a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php +++ /dev/null @@ -1,64 +0,0 @@ -deleteGoogleAdsLink($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - - delete_google_ads_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php deleted file mode 100644 index 82981ce0fee2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php +++ /dev/null @@ -1,70 +0,0 @@ -deleteMeasurementProtocolSecret($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - delete_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php deleted file mode 100644 index 874e07869f82..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php +++ /dev/null @@ -1,78 +0,0 @@ -deleteProperty($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - delete_property_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php deleted file mode 100644 index 5245fbff5904..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php +++ /dev/null @@ -1,68 +0,0 @@ -deleteSearchAds360Link($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::searchAds360LinkName( - '[PROPERTY]', - '[SEARCH_ADS_360_LINK]' - ); - - delete_search_ads360_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index f9898a116864..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,70 +0,0 @@ -deleteSKAdNetworkConversionValueSchema($formattedName); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName( - '[PROPERTY]', - '[DATA_STREAM]', - '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]' - ); - - delete_sk_ad_network_conversion_value_schema_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php deleted file mode 100644 index 22cd74500ba7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php +++ /dev/null @@ -1,70 +0,0 @@ -fetchAutomatedGa4ConfigurationOptOut($property); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $property = '[PROPERTY]'; - - fetch_automated_ga4_configuration_opt_out_sample($property); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php deleted file mode 100644 index 30fb78ba6e59..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php +++ /dev/null @@ -1,71 +0,0 @@ -fetchConnectedGa4Property($formattedProperty); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - fetch_connected_ga4_property_sample($formattedProperty); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchConnectedGa4Property_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php deleted file mode 100644 index 25b04f497edc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php +++ /dev/null @@ -1,69 +0,0 @@ -getAccessBinding($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - - get_access_binding_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php deleted file mode 100644 index 4ddea55f038a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php +++ /dev/null @@ -1,68 +0,0 @@ -getAccount($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - get_account_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php deleted file mode 100644 index ffcbbcfffe32..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php +++ /dev/null @@ -1,68 +0,0 @@ -getAdSenseLink($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - - get_ad_sense_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php deleted file mode 100644 index 1a9983379e78..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php +++ /dev/null @@ -1,67 +0,0 @@ -getAttributionSettings($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::attributionSettingsName('[PROPERTY]'); - - get_attribution_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php deleted file mode 100644 index 2d2de136a5d4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php +++ /dev/null @@ -1,69 +0,0 @@ -getAudience($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::audienceName('[PROPERTY]', '[AUDIENCE]'); - - get_audience_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php deleted file mode 100644 index 031c9d53d222..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php +++ /dev/null @@ -1,68 +0,0 @@ -getBigQueryLink($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - - get_big_query_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php deleted file mode 100644 index 03eb16b4ca62..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php +++ /dev/null @@ -1,67 +0,0 @@ -getChannelGroup($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - - get_channel_group_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php deleted file mode 100644 index d1d5580979ee..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php +++ /dev/null @@ -1,71 +0,0 @@ -getConversionEvent($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - get_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php deleted file mode 100644 index 0b4d6f00a9d3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php +++ /dev/null @@ -1,70 +0,0 @@ -getCustomDimension($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - get_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php deleted file mode 100644 index 2f908e731e92..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php +++ /dev/null @@ -1,67 +0,0 @@ -getCustomMetric($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - get_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php deleted file mode 100644 index b65573bb6775..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php +++ /dev/null @@ -1,69 +0,0 @@ -getDataRetentionSettings($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataRetentionSettingsName('[PROPERTY]'); - - get_data_retention_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php deleted file mode 100644 index 6678115fbc1a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php +++ /dev/null @@ -1,69 +0,0 @@ -getDataSharingSettings($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataSharingSettingsName('[ACCOUNT]'); - - get_data_sharing_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php deleted file mode 100644 index 525b5120b071..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php +++ /dev/null @@ -1,67 +0,0 @@ -getDataStream($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - get_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php deleted file mode 100644 index 17c763d80ff5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php +++ /dev/null @@ -1,70 +0,0 @@ -getDisplayVideo360AdvertiserLink($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK]' - ); - - get_display_video360_advertiser_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 0fd541c74f7d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,70 +0,0 @@ -getDisplayVideo360AdvertiserLinkProposal($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - get_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php deleted file mode 100644 index 4a03648889f5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php +++ /dev/null @@ -1,74 +0,0 @@ -getEnhancedMeasurementSettings($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::enhancedMeasurementSettingsName( - '[PROPERTY]', - '[DATA_STREAM]' - ); - - get_enhanced_measurement_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php deleted file mode 100644 index ee44e600d258..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php +++ /dev/null @@ -1,71 +0,0 @@ -getEventCreateRule($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::eventCreateRuleName( - '[PROPERTY]', - '[DATA_STREAM]', - '[EVENT_CREATE_RULE]' - ); - - get_event_create_rule_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php deleted file mode 100644 index 3bfc959fcb0a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php +++ /dev/null @@ -1,70 +0,0 @@ -getExpandedDataSet($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::expandedDataSetName( - '[PROPERTY]', - '[EXPANDED_DATA_SET]' - ); - - get_expanded_data_set_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php deleted file mode 100644 index c6f0ec329d47..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php +++ /dev/null @@ -1,70 +0,0 @@ -getGlobalSiteTag($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - - get_global_site_tag_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php deleted file mode 100644 index e14ea7525808..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php +++ /dev/null @@ -1,67 +0,0 @@ -getGoogleSignalsSettings($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::googleSignalsSettingsName('[PROPERTY]'); - - get_google_signals_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php deleted file mode 100644 index 19b82e0dc7d6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php +++ /dev/null @@ -1,72 +0,0 @@ -getMeasurementProtocolSecret($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - get_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php deleted file mode 100644 index 39fffe4f51d7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php +++ /dev/null @@ -1,68 +0,0 @@ -getProperty($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - get_property_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php deleted file mode 100644 index 65b2954f0137..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php +++ /dev/null @@ -1,70 +0,0 @@ -getSearchAds360Link($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::searchAds360LinkName( - '[PROPERTY]', - '[SEARCH_ADS_360_LINK]' - ); - - get_search_ads360_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index c8aaaea73de6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,72 +0,0 @@ -getSKAdNetworkConversionValueSchema($formattedName); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName( - '[PROPERTY]', - '[DATA_STREAM]', - '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]' - ); - - get_sk_ad_network_conversion_value_schema_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php deleted file mode 100644 index a57f709525d1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php +++ /dev/null @@ -1,73 +0,0 @@ -listAccessBindings($formattedParent); - - /** @var AccessBinding $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - list_access_bindings_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php deleted file mode 100644 index 8341fe0b72b5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php +++ /dev/null @@ -1,58 +0,0 @@ -listAccountSummaries(); - - /** @var AccountSummary $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php deleted file mode 100644 index f8bc51dd8d7a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php +++ /dev/null @@ -1,62 +0,0 @@ -listAccounts(); - - /** @var Account $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php deleted file mode 100644 index 817e91fb7265..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php +++ /dev/null @@ -1,73 +0,0 @@ -listAdSenseLinks($formattedParent); - - /** @var AdSenseLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_ad_sense_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php deleted file mode 100644 index d99f209cdd29..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php +++ /dev/null @@ -1,73 +0,0 @@ -listAudiences($formattedParent); - - /** @var Audience $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_audiences_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php deleted file mode 100644 index 39ca3b2bae39..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php +++ /dev/null @@ -1,73 +0,0 @@ -listBigQueryLinks($formattedParent); - - /** @var BigQueryLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_big_query_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php deleted file mode 100644 index 3ba78dd7ddcd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php +++ /dev/null @@ -1,72 +0,0 @@ -listChannelGroups($formattedParent); - - /** @var ChannelGroup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_channel_groups_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php deleted file mode 100644 index 05523c46073c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php +++ /dev/null @@ -1,55 +0,0 @@ -listConnectedSiteTags(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConnectedSiteTags_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php deleted file mode 100644 index af035004c593..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php +++ /dev/null @@ -1,74 +0,0 @@ -listConversionEvents($formattedParent); - - /** @var ConversionEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_conversion_events_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php deleted file mode 100644 index 054ba7247dfa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php +++ /dev/null @@ -1,71 +0,0 @@ -listCustomDimensions($formattedParent); - - /** @var CustomDimension $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_dimensions_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php deleted file mode 100644 index 4339adc7c552..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php +++ /dev/null @@ -1,71 +0,0 @@ -listCustomMetrics($formattedParent); - - /** @var CustomMetric $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_metrics_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php deleted file mode 100644 index 0ed8a9236839..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php +++ /dev/null @@ -1,71 +0,0 @@ -listDataStreams($formattedParent); - - /** @var DataStream $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_data_streams_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php deleted file mode 100644 index 76e5e010a515..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php +++ /dev/null @@ -1,73 +0,0 @@ -listDisplayVideo360AdvertiserLinkProposals( - $formattedParent - ); - - /** @var DisplayVideo360AdvertiserLinkProposal $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_display_video360_advertiser_link_proposals_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php deleted file mode 100644 index ee4ad24918f1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php +++ /dev/null @@ -1,71 +0,0 @@ -listDisplayVideo360AdvertiserLinks($formattedParent); - - /** @var DisplayVideo360AdvertiserLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_display_video360_advertiser_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php deleted file mode 100644 index 6ef629c82357..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php +++ /dev/null @@ -1,71 +0,0 @@ -listEventCreateRules($formattedParent); - - /** @var EventCreateRule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_event_create_rules_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php deleted file mode 100644 index 34017fdbd675..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php +++ /dev/null @@ -1,71 +0,0 @@ -listExpandedDataSets($formattedParent); - - /** @var ExpandedDataSet $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_expanded_data_sets_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php deleted file mode 100644 index 2ba1aea8db2b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php +++ /dev/null @@ -1,73 +0,0 @@ -listFirebaseLinks($formattedParent); - - /** @var FirebaseLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_firebase_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php deleted file mode 100644 index 2250ebf87ec5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php +++ /dev/null @@ -1,71 +0,0 @@ -listGoogleAdsLinks($formattedParent); - - /** @var GoogleAdsLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_google_ads_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php deleted file mode 100644 index 94675f325b59..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php +++ /dev/null @@ -1,74 +0,0 @@ -listMeasurementProtocolSecrets($formattedParent); - - /** @var MeasurementProtocolSecret $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_measurement_protocol_secrets_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php deleted file mode 100644 index 7a6861ccd6c6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php +++ /dev/null @@ -1,90 +0,0 @@ -listProperties($filter); - - /** @var Property $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $filter = '[FILTER]'; - - list_properties_sample($filter); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php deleted file mode 100644 index f311ba57a28a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php +++ /dev/null @@ -1,71 +0,0 @@ -listSearchAds360Links($formattedParent); - - /** @var SearchAds360Link $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_search_ads360_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php deleted file mode 100644 index c8a408e95f44..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php +++ /dev/null @@ -1,75 +0,0 @@ -listSKAdNetworkConversionValueSchemas($formattedParent); - - /** @var SKAdNetworkConversionValueSchema $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_sk_ad_network_conversion_value_schemas_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php deleted file mode 100644 index 1b5253e8ab73..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php +++ /dev/null @@ -1,53 +0,0 @@ -provisionAccountTicket(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php deleted file mode 100644 index e51b5ba41a99..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php +++ /dev/null @@ -1,65 +0,0 @@ -runAccessReport(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php deleted file mode 100644 index 4e11203d3a8b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php +++ /dev/null @@ -1,73 +0,0 @@ -searchChangeHistoryEvents($formattedAccount); - - /** @var ChangeHistoryEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedAccount = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - search_change_history_events_sample($formattedAccount); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php deleted file mode 100644 index fbd436346af7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php +++ /dev/null @@ -1,70 +0,0 @@ -setAutomatedGa4ConfigurationOptOut($property); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $property = '[PROPERTY]'; - - set_automated_ga4_configuration_opt_out_sample($property); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php deleted file mode 100644 index 4d7af7cf0580..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php +++ /dev/null @@ -1,56 +0,0 @@ -updateAccessBinding($accessBinding); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php deleted file mode 100644 index 91a3187c8f92..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php +++ /dev/null @@ -1,71 +0,0 @@ -setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $accountDisplayName = '[DISPLAY_NAME]'; - - update_account_sample($accountDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php deleted file mode 100644 index aded85949d31..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php +++ /dev/null @@ -1,106 +0,0 @@ -setAcquisitionConversionEventLookbackWindow( - $attributionSettingsAcquisitionConversionEventLookbackWindow - ) - ->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow) - ->setReportingAttributionModel($attributionSettingsReportingAttributionModel) - ->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var AttributionSettings $response */ - $response = $analyticsAdminServiceClient->updateAttributionSettings( - $attributionSettings, - $updateMask - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - - update_attribution_settings_sample( - $attributionSettingsAcquisitionConversionEventLookbackWindow, - $attributionSettingsOtherConversionEventLookbackWindow, - $attributionSettingsReportingAttributionModel, - $attributionSettingsAdsWebConversionDataExportScope - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php deleted file mode 100644 index 8d3c396a13c1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php +++ /dev/null @@ -1,95 +0,0 @@ -setClauseType($audienceFilterClausesClauseType); - $audienceFilterClauses = [$audienceFilterClause,]; - $audience = (new Audience()) - ->setDisplayName($audienceDisplayName) - ->setDescription($audienceDescription) - ->setMembershipDurationDays($audienceMembershipDurationDays) - ->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var Audience $response */ - $response = $analyticsAdminServiceClient->updateAudience($audience, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $audienceDisplayName = '[DISPLAY_NAME]'; - $audienceDescription = '[DESCRIPTION]'; - $audienceMembershipDurationDays = 0; - $audienceFilterClausesClauseType = AudienceClauseType::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; - - update_audience_sample( - $audienceDisplayName, - $audienceDescription, - $audienceMembershipDurationDays, - $audienceFilterClausesClauseType - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php deleted file mode 100644 index 5563889541ea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php +++ /dev/null @@ -1,84 +0,0 @@ -setDisplayName($channelGroupGroupingRuleDisplayName) - ->setExpression($channelGroupGroupingRuleExpression); - $channelGroupGroupingRule = [$groupingRule,]; - $channelGroup = (new ChannelGroup()) - ->setDisplayName($channelGroupDisplayName) - ->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var ChannelGroup $response */ - $response = $analyticsAdminServiceClient->updateChannelGroup($channelGroup, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $channelGroupDisplayName = '[DISPLAY_NAME]'; - $channelGroupGroupingRuleDisplayName = '[DISPLAY_NAME]'; - - update_channel_group_sample($channelGroupDisplayName, $channelGroupGroupingRuleDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php deleted file mode 100644 index 9f4cd8257263..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php +++ /dev/null @@ -1,58 +0,0 @@ -updateConversionEvent($conversionEvent, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php deleted file mode 100644 index c107805de780..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php +++ /dev/null @@ -1,57 +0,0 @@ -updateCustomDimension($updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php deleted file mode 100644 index 6ef2d2f32155..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php +++ /dev/null @@ -1,57 +0,0 @@ -updateCustomMetric($updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php deleted file mode 100644 index dc3b922f6d52..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php +++ /dev/null @@ -1,61 +0,0 @@ -updateDataRetentionSettings( - $dataRetentionSettings, - $updateMask - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php deleted file mode 100644 index 72ce16ea312e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php +++ /dev/null @@ -1,57 +0,0 @@ -updateDataStream($updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php deleted file mode 100644 index 1e80dddd7ce1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php +++ /dev/null @@ -1,57 +0,0 @@ -updateDisplayVideo360AdvertiserLink($updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php deleted file mode 100644 index 6ff580b6b50a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php +++ /dev/null @@ -1,78 +0,0 @@ -setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var EnhancedMeasurementSettings $response */ - $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings( - $enhancedMeasurementSettings, - $updateMask - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $enhancedMeasurementSettingsSearchQueryParameter = '[SEARCH_QUERY_PARAMETER]'; - - update_enhanced_measurement_settings_sample($enhancedMeasurementSettingsSearchQueryParameter); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php deleted file mode 100644 index 52355eb87566..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php +++ /dev/null @@ -1,106 +0,0 @@ -setField($eventCreateRuleEventConditionsField) - ->setComparisonType($eventCreateRuleEventConditionsComparisonType) - ->setValue($eventCreateRuleEventConditionsValue); - $eventCreateRuleEventConditions = [$matchingCondition,]; - $eventCreateRule = (new EventCreateRule()) - ->setDestinationEvent($eventCreateRuleDestinationEvent) - ->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var EventCreateRule $response */ - $response = $analyticsAdminServiceClient->updateEventCreateRule($eventCreateRule, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $eventCreateRuleDestinationEvent = '[DESTINATION_EVENT]'; - $eventCreateRuleEventConditionsField = '[FIELD]'; - $eventCreateRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; - $eventCreateRuleEventConditionsValue = '[VALUE]'; - - update_event_create_rule_sample( - $eventCreateRuleDestinationEvent, - $eventCreateRuleEventConditionsField, - $eventCreateRuleEventConditionsComparisonType, - $eventCreateRuleEventConditionsValue - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php deleted file mode 100644 index 121f568e4558..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php +++ /dev/null @@ -1,72 +0,0 @@ -setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var ExpandedDataSet $response */ - $response = $analyticsAdminServiceClient->updateExpandedDataSet($expandedDataSet, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $expandedDataSetDisplayName = '[DISPLAY_NAME]'; - - update_expanded_data_set_sample($expandedDataSetDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php deleted file mode 100644 index bd94ad4e2fc1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php +++ /dev/null @@ -1,57 +0,0 @@ -updateGoogleAdsLink($updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php deleted file mode 100644 index 21fd1a8d31fc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php +++ /dev/null @@ -1,61 +0,0 @@ -updateGoogleSignalsSettings( - $googleSignalsSettings, - $updateMask - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php deleted file mode 100644 index f65926bea784..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret( - $measurementProtocolSecret, - $updateMask - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - update_measurement_protocol_secret_sample($measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php deleted file mode 100644 index 656ec640b61e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php +++ /dev/null @@ -1,84 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - update_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php deleted file mode 100644 index 6216e6973279..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php +++ /dev/null @@ -1,57 +0,0 @@ -updateSearchAds360Link($updateMask); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index 146716e0bfe6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,64 +0,0 @@ -setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - - // Call the API and handle any network failures. - try { - /** @var SKAdNetworkConversionValueSchema $response */ - $response = $analyticsAdminServiceClient->updateSKAdNetworkConversionValueSchema( - $skadnetworkConversionValueSchema, - $updateMask - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php deleted file mode 100644 index b971a59cb2c3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ -propertyName('[PROPERTY]'); - * $acknowledgement = 'acknowledgement'; - * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @experimental - */ -class AnalyticsAdminServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.admin.v1alpha.AnalyticsAdminService'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics.edit', - 'https://www.googleapis.com/auth/analytics.manage.users', - 'https://www.googleapis.com/auth/analytics.manage.users.readonly', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static $accessBindingNameTemplate; - - private static $accountNameTemplate; - - private static $accountAccessBindingNameTemplate; - - private static $adSenseLinkNameTemplate; - - private static $attributionSettingsNameTemplate; - - private static $audienceNameTemplate; - - private static $bigQueryLinkNameTemplate; - - private static $channelGroupNameTemplate; - - private static $conversionEventNameTemplate; - - private static $customDimensionNameTemplate; - - private static $customMetricNameTemplate; - - private static $dataRedactionSettingsNameTemplate; - - private static $dataRetentionSettingsNameTemplate; - - private static $dataSharingSettingsNameTemplate; - - private static $dataStreamNameTemplate; - - private static $displayVideo360AdvertiserLinkNameTemplate; - - private static $displayVideo360AdvertiserLinkProposalNameTemplate; - - private static $enhancedMeasurementSettingsNameTemplate; - - private static $eventCreateRuleNameTemplate; - - private static $expandedDataSetNameTemplate; - - private static $firebaseLinkNameTemplate; - - private static $globalSiteTagNameTemplate; - - private static $googleAdsLinkNameTemplate; - - private static $googleSignalsSettingsNameTemplate; - - private static $measurementProtocolSecretNameTemplate; - - private static $propertyNameTemplate; - - private static $propertyAccessBindingNameTemplate; - - private static $rollupPropertySourceLinkNameTemplate; - - private static $sKAdNetworkConversionValueSchemaNameTemplate; - - private static $searchAds360LinkNameTemplate; - - private static $subpropertyEventFilterNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getAccessBindingNameTemplate() - { - if (self::$accessBindingNameTemplate == null) { - self::$accessBindingNameTemplate = new PathTemplate('accounts/{account}/accessBindings/{access_binding}'); - } - - return self::$accessBindingNameTemplate; - } - - private static function getAccountNameTemplate() - { - if (self::$accountNameTemplate == null) { - self::$accountNameTemplate = new PathTemplate('accounts/{account}'); - } - - return self::$accountNameTemplate; - } - - private static function getAccountAccessBindingNameTemplate() - { - if (self::$accountAccessBindingNameTemplate == null) { - self::$accountAccessBindingNameTemplate = new PathTemplate('accounts/{account}/accessBindings/{access_binding}'); - } - - return self::$accountAccessBindingNameTemplate; - } - - private static function getAdSenseLinkNameTemplate() - { - if (self::$adSenseLinkNameTemplate == null) { - self::$adSenseLinkNameTemplate = new PathTemplate('properties/{property}/adSenseLinks/{adsense_link}'); - } - - return self::$adSenseLinkNameTemplate; - } - - private static function getAttributionSettingsNameTemplate() - { - if (self::$attributionSettingsNameTemplate == null) { - self::$attributionSettingsNameTemplate = new PathTemplate('properties/{property}/attributionSettings'); - } - - return self::$attributionSettingsNameTemplate; - } - - private static function getAudienceNameTemplate() - { - if (self::$audienceNameTemplate == null) { - self::$audienceNameTemplate = new PathTemplate('properties/{property}/audiences/{audience}'); - } - - return self::$audienceNameTemplate; - } - - private static function getBigQueryLinkNameTemplate() - { - if (self::$bigQueryLinkNameTemplate == null) { - self::$bigQueryLinkNameTemplate = new PathTemplate('properties/{property}/bigQueryLinks/{bigquery_link}'); - } - - return self::$bigQueryLinkNameTemplate; - } - - private static function getChannelGroupNameTemplate() - { - if (self::$channelGroupNameTemplate == null) { - self::$channelGroupNameTemplate = new PathTemplate('properties/{property}/channelGroups/{channel_group}'); - } - - return self::$channelGroupNameTemplate; - } - - private static function getConversionEventNameTemplate() - { - if (self::$conversionEventNameTemplate == null) { - self::$conversionEventNameTemplate = new PathTemplate('properties/{property}/conversionEvents/{conversion_event}'); - } - - return self::$conversionEventNameTemplate; - } - - private static function getCustomDimensionNameTemplate() - { - if (self::$customDimensionNameTemplate == null) { - self::$customDimensionNameTemplate = new PathTemplate('properties/{property}/customDimensions/{custom_dimension}'); - } - - return self::$customDimensionNameTemplate; - } - - private static function getCustomMetricNameTemplate() - { - if (self::$customMetricNameTemplate == null) { - self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics/{custom_metric}'); - } - - return self::$customMetricNameTemplate; - } - - private static function getDataRedactionSettingsNameTemplate() - { - if (self::$dataRedactionSettingsNameTemplate == null) { - self::$dataRedactionSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/dataRedactionSettings'); - } - - return self::$dataRedactionSettingsNameTemplate; - } - - private static function getDataRetentionSettingsNameTemplate() - { - if (self::$dataRetentionSettingsNameTemplate == null) { - self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings'); - } - - return self::$dataRetentionSettingsNameTemplate; - } - - private static function getDataSharingSettingsNameTemplate() - { - if (self::$dataSharingSettingsNameTemplate == null) { - self::$dataSharingSettingsNameTemplate = new PathTemplate('accounts/{account}/dataSharingSettings'); - } - - return self::$dataSharingSettingsNameTemplate; - } - - private static function getDataStreamNameTemplate() - { - if (self::$dataStreamNameTemplate == null) { - self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}'); - } - - return self::$dataStreamNameTemplate; - } - - private static function getDisplayVideo360AdvertiserLinkNameTemplate() - { - if (self::$displayVideo360AdvertiserLinkNameTemplate == null) { - self::$displayVideo360AdvertiserLinkNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}'); - } - - return self::$displayVideo360AdvertiserLinkNameTemplate; - } - - private static function getDisplayVideo360AdvertiserLinkProposalNameTemplate() - { - if (self::$displayVideo360AdvertiserLinkProposalNameTemplate == null) { - self::$displayVideo360AdvertiserLinkProposalNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}'); - } - - return self::$displayVideo360AdvertiserLinkProposalNameTemplate; - } - - private static function getEnhancedMeasurementSettingsNameTemplate() - { - if (self::$enhancedMeasurementSettingsNameTemplate == null) { - self::$enhancedMeasurementSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings'); - } - - return self::$enhancedMeasurementSettingsNameTemplate; - } - - private static function getEventCreateRuleNameTemplate() - { - if (self::$eventCreateRuleNameTemplate == null) { - self::$eventCreateRuleNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}'); - } - - return self::$eventCreateRuleNameTemplate; - } - - private static function getExpandedDataSetNameTemplate() - { - if (self::$expandedDataSetNameTemplate == null) { - self::$expandedDataSetNameTemplate = new PathTemplate('properties/{property}/expandedDataSets/{expanded_data_set}'); - } - - return self::$expandedDataSetNameTemplate; - } - - private static function getFirebaseLinkNameTemplate() - { - if (self::$firebaseLinkNameTemplate == null) { - self::$firebaseLinkNameTemplate = new PathTemplate('properties/{property}/firebaseLinks/{firebase_link}'); - } - - return self::$firebaseLinkNameTemplate; - } - - private static function getGlobalSiteTagNameTemplate() - { - if (self::$globalSiteTagNameTemplate == null) { - self::$globalSiteTagNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/globalSiteTag'); - } - - return self::$globalSiteTagNameTemplate; - } - - private static function getGoogleAdsLinkNameTemplate() - { - if (self::$googleAdsLinkNameTemplate == null) { - self::$googleAdsLinkNameTemplate = new PathTemplate('properties/{property}/googleAdsLinks/{google_ads_link}'); - } - - return self::$googleAdsLinkNameTemplate; - } - - private static function getGoogleSignalsSettingsNameTemplate() - { - if (self::$googleSignalsSettingsNameTemplate == null) { - self::$googleSignalsSettingsNameTemplate = new PathTemplate('properties/{property}/googleSignalsSettings'); - } - - return self::$googleSignalsSettingsNameTemplate; - } - - private static function getMeasurementProtocolSecretNameTemplate() - { - if (self::$measurementProtocolSecretNameTemplate == null) { - self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}'); - } - - return self::$measurementProtocolSecretNameTemplate; - } - - private static function getPropertyNameTemplate() - { - if (self::$propertyNameTemplate == null) { - self::$propertyNameTemplate = new PathTemplate('properties/{property}'); - } - - return self::$propertyNameTemplate; - } - - private static function getPropertyAccessBindingNameTemplate() - { - if (self::$propertyAccessBindingNameTemplate == null) { - self::$propertyAccessBindingNameTemplate = new PathTemplate('properties/{property}/accessBindings/{access_binding}'); - } - - return self::$propertyAccessBindingNameTemplate; - } - - private static function getRollupPropertySourceLinkNameTemplate() - { - if (self::$rollupPropertySourceLinkNameTemplate == null) { - self::$rollupPropertySourceLinkNameTemplate = new PathTemplate('properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}'); - } - - return self::$rollupPropertySourceLinkNameTemplate; - } - - private static function getSKAdNetworkConversionValueSchemaNameTemplate() - { - if (self::$sKAdNetworkConversionValueSchemaNameTemplate == null) { - self::$sKAdNetworkConversionValueSchemaNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}'); - } - - return self::$sKAdNetworkConversionValueSchemaNameTemplate; - } - - private static function getSearchAds360LinkNameTemplate() - { - if (self::$searchAds360LinkNameTemplate == null) { - self::$searchAds360LinkNameTemplate = new PathTemplate('properties/{property}/searchAds360Links/{search_ads_360_link}'); - } - - return self::$searchAds360LinkNameTemplate; - } - - private static function getSubpropertyEventFilterNameTemplate() - { - if (self::$subpropertyEventFilterNameTemplate == null) { - self::$subpropertyEventFilterNameTemplate = new PathTemplate('properties/{property}/subpropertyEventFilters/{sub_property_event_filter}'); - } - - return self::$subpropertyEventFilterNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'accessBinding' => self::getAccessBindingNameTemplate(), - 'account' => self::getAccountNameTemplate(), - 'accountAccessBinding' => self::getAccountAccessBindingNameTemplate(), - 'adSenseLink' => self::getAdSenseLinkNameTemplate(), - 'attributionSettings' => self::getAttributionSettingsNameTemplate(), - 'audience' => self::getAudienceNameTemplate(), - 'bigQueryLink' => self::getBigQueryLinkNameTemplate(), - 'channelGroup' => self::getChannelGroupNameTemplate(), - 'conversionEvent' => self::getConversionEventNameTemplate(), - 'customDimension' => self::getCustomDimensionNameTemplate(), - 'customMetric' => self::getCustomMetricNameTemplate(), - 'dataRedactionSettings' => self::getDataRedactionSettingsNameTemplate(), - 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), - 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), - 'dataStream' => self::getDataStreamNameTemplate(), - 'displayVideo360AdvertiserLink' => self::getDisplayVideo360AdvertiserLinkNameTemplate(), - 'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(), - 'enhancedMeasurementSettings' => self::getEnhancedMeasurementSettingsNameTemplate(), - 'eventCreateRule' => self::getEventCreateRuleNameTemplate(), - 'expandedDataSet' => self::getExpandedDataSetNameTemplate(), - 'firebaseLink' => self::getFirebaseLinkNameTemplate(), - 'globalSiteTag' => self::getGlobalSiteTagNameTemplate(), - 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), - 'googleSignalsSettings' => self::getGoogleSignalsSettingsNameTemplate(), - 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - 'propertyAccessBinding' => self::getPropertyAccessBindingNameTemplate(), - 'rollupPropertySourceLink' => self::getRollupPropertySourceLinkNameTemplate(), - 'sKAdNetworkConversionValueSchema' => self::getSKAdNetworkConversionValueSchemaNameTemplate(), - 'searchAds360Link' => self::getSearchAds360LinkNameTemplate(), - 'subpropertyEventFilter' => self::getSubpropertyEventFilterNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * access_binding resource. - * - * @param string $account - * @param string $accessBinding - * - * @return string The formatted access_binding resource. - * - * @experimental - */ - public static function accessBindingName($account, $accessBinding) - { - return self::getAccessBindingNameTemplate()->render([ - 'account' => $account, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName($account) - { - return self::getAccountNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * account_access_binding resource. - * - * @param string $account - * @param string $accessBinding - * - * @return string The formatted account_access_binding resource. - * - * @experimental - */ - public static function accountAccessBindingName($account, $accessBinding) - { - return self::getAccountAccessBindingNameTemplate()->render([ - 'account' => $account, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * ad_sense_link resource. - * - * @param string $property - * @param string $adsenseLink - * - * @return string The formatted ad_sense_link resource. - * - * @experimental - */ - public static function adSenseLinkName($property, $adsenseLink) - { - return self::getAdSenseLinkNameTemplate()->render([ - 'property' => $property, - 'adsense_link' => $adsenseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * attribution_settings resource. - * - * @param string $property - * - * @return string The formatted attribution_settings resource. - * - * @experimental - */ - public static function attributionSettingsName($property) - { - return self::getAttributionSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a audience - * resource. - * - * @param string $property - * @param string $audience - * - * @return string The formatted audience resource. - * - * @experimental - */ - public static function audienceName($property, $audience) - { - return self::getAudienceNameTemplate()->render([ - 'property' => $property, - 'audience' => $audience, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * big_query_link resource. - * - * @param string $property - * @param string $bigqueryLink - * - * @return string The formatted big_query_link resource. - * - * @experimental - */ - public static function bigQueryLinkName($property, $bigqueryLink) - { - return self::getBigQueryLinkNameTemplate()->render([ - 'property' => $property, - 'bigquery_link' => $bigqueryLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * channel_group resource. - * - * @param string $property - * @param string $channelGroup - * - * @return string The formatted channel_group resource. - * - * @experimental - */ - public static function channelGroupName($property, $channelGroup) - { - return self::getChannelGroupNameTemplate()->render([ - 'property' => $property, - 'channel_group' => $channelGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName($property, $conversionEvent) - { - return self::getConversionEventNameTemplate()->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName($property, $customDimension) - { - return self::getCustomDimensionNameTemplate()->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName($property, $customMetric) - { - return self::getCustomMetricNameTemplate()->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_redaction_settings resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_redaction_settings resource. - * - * @experimental - */ - public static function dataRedactionSettingsName($property, $dataStream) - { - return self::getDataRedactionSettingsNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName($property) - { - return self::getDataRetentionSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName($account) - { - return self::getDataSharingSettingsNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName($property, $dataStream) - { - return self::getDataStreamNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * display_video360_advertiser_link resource. - * - * @param string $property - * @param string $displayVideo360AdvertiserLink - * - * @return string The formatted display_video360_advertiser_link resource. - * - * @experimental - */ - public static function displayVideo360AdvertiserLinkName($property, $displayVideo360AdvertiserLink) - { - return self::getDisplayVideo360AdvertiserLinkNameTemplate()->render([ - 'property' => $property, - 'display_video_360_advertiser_link' => $displayVideo360AdvertiserLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * display_video360_advertiser_link_proposal resource. - * - * @param string $property - * @param string $displayVideo360AdvertiserLinkProposal - * - * @return string The formatted display_video360_advertiser_link_proposal resource. - * - * @experimental - */ - public static function displayVideo360AdvertiserLinkProposalName($property, $displayVideo360AdvertiserLinkProposal) - { - return self::getDisplayVideo360AdvertiserLinkProposalNameTemplate()->render([ - 'property' => $property, - 'display_video_360_advertiser_link_proposal' => $displayVideo360AdvertiserLinkProposal, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * enhanced_measurement_settings resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted enhanced_measurement_settings resource. - * - * @experimental - */ - public static function enhancedMeasurementSettingsName($property, $dataStream) - { - return self::getEnhancedMeasurementSettingsNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * event_create_rule resource. - * - * @param string $property - * @param string $dataStream - * @param string $eventCreateRule - * - * @return string The formatted event_create_rule resource. - * - * @experimental - */ - public static function eventCreateRuleName($property, $dataStream, $eventCreateRule) - { - return self::getEventCreateRuleNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'event_create_rule' => $eventCreateRule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * expanded_data_set resource. - * - * @param string $property - * @param string $expandedDataSet - * - * @return string The formatted expanded_data_set resource. - * - * @experimental - */ - public static function expandedDataSetName($property, $expandedDataSet) - { - return self::getExpandedDataSetNameTemplate()->render([ - 'property' => $property, - 'expanded_data_set' => $expandedDataSet, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName($property, $firebaseLink) - { - return self::getFirebaseLinkNameTemplate()->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * global_site_tag resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted global_site_tag resource. - * - * @experimental - */ - public static function globalSiteTagName($property, $dataStream) - { - return self::getGlobalSiteTagNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName($property, $googleAdsLink) - { - return self::getGoogleAdsLinkNameTemplate()->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_signals_settings resource. - * - * @param string $property - * - * @return string The formatted google_signals_settings resource. - * - * @experimental - */ - public static function googleSignalsSettingsName($property) - { - return self::getGoogleSignalsSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName($property, $dataStream, $measurementProtocolSecret) - { - return self::getMeasurementProtocolSecretNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName($property) - { - return self::getPropertyNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * property_access_binding resource. - * - * @param string $property - * @param string $accessBinding - * - * @return string The formatted property_access_binding resource. - * - * @experimental - */ - public static function propertyAccessBindingName($property, $accessBinding) - { - return self::getPropertyAccessBindingNameTemplate()->render([ - 'property' => $property, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * rollup_property_source_link resource. - * - * @param string $property - * @param string $rollupPropertySourceLink - * - * @return string The formatted rollup_property_source_link resource. - * - * @experimental - */ - public static function rollupPropertySourceLinkName($property, $rollupPropertySourceLink) - { - return self::getRollupPropertySourceLinkNameTemplate()->render([ - 'property' => $property, - 'rollup_property_source_link' => $rollupPropertySourceLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * sk_ad_network_conversion_value_schema resource. - * - * @param string $property - * @param string $dataStream - * @param string $skadnetworkConversionValueSchema - * - * @return string The formatted sk_ad_network_conversion_value_schema resource. - * - * @experimental - */ - public static function sKAdNetworkConversionValueSchemaName($property, $dataStream, $skadnetworkConversionValueSchema) - { - return self::getSKAdNetworkConversionValueSchemaNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'skadnetwork_conversion_value_schema' => $skadnetworkConversionValueSchema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * search_ads360_link resource. - * - * @param string $property - * @param string $searchAds360Link - * - * @return string The formatted search_ads360_link resource. - * - * @experimental - */ - public static function searchAds360LinkName($property, $searchAds360Link) - { - return self::getSearchAds360LinkNameTemplate()->render([ - 'property' => $property, - 'search_ads_360_link' => $searchAds360Link, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * subproperty_event_filter resource. - * - * @param string $property - * @param string $subPropertyEventFilter - * - * @return string The formatted subproperty_event_filter resource. - * - * @experimental - */ - public static function subpropertyEventFilterName($property, $subPropertyEventFilter) - { - return self::getSubpropertyEventFilterNameTemplate()->render([ - 'property' => $property, - 'sub_property_event_filter' => $subPropertyEventFilter, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - accessBinding: accounts/{account}/accessBindings/{access_binding} - * - account: accounts/{account} - * - accountAccessBinding: accounts/{account}/accessBindings/{access_binding} - * - adSenseLink: properties/{property}/adSenseLinks/{adsense_link} - * - attributionSettings: properties/{property}/attributionSettings - * - audience: properties/{property}/audiences/{audience} - * - bigQueryLink: properties/{property}/bigQueryLinks/{bigquery_link} - * - channelGroup: properties/{property}/channelGroups/{channel_group} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRedactionSettings: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - displayVideo360AdvertiserLink: properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link} - * - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal} - * - enhancedMeasurementSettings: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * - eventCreateRule: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - expandedDataSet: properties/{property}/expandedDataSets/{expanded_data_set} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - globalSiteTag: properties/{property}/dataStreams/{data_stream}/globalSiteTag - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - googleSignalsSettings: properties/{property}/googleSignalsSettings - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - property: properties/{property} - * - propertyAccessBinding: properties/{property}/accessBindings/{access_binding} - * - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link} - * - sKAdNetworkConversionValueSchema: properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - searchAds360Link: properties/{property}/searchAds360Links/{search_ads_360_link} - * - subpropertyEventFilter: properties/{property}/subpropertyEventFilters/{sub_property_event_filter} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $acknowledgement = 'acknowledgement'; - * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The property for which to acknowledge user data collection. - * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = []) - { - $request = new AcknowledgeUserDataCollectionRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setAcknowledgement($acknowledgement); - $requestParamHeaders['property'] = $property; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Approves a DisplayVideo360AdvertiserLinkProposal. - * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - * DisplayVideo360AdvertiserLink will be created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $response = $analyticsAdminServiceClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function approveDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new ApproveDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ApproveDisplayVideo360AdvertiserLinkProposal', ApproveDisplayVideo360AdvertiserLinkProposalResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives an Audience on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $analyticsAdminServiceClient->archiveAudience($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/audiences/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveAudience($name, array $optionalArgs = []) - { - $request = new ArchiveAudienceRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveAudience', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomDimension($name, array $optionalArgs = []) - { - $request = new ArchiveCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomDimension', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $analyticsAdminServiceClient->archiveCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomMetric($name, array $optionalArgs = []) - { - $request = new ArchiveCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates information about multiple access bindings to an account or - * property. - * - * This method is transactional. If any AccessBinding cannot be created, none - * of the AccessBindings will be created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchCreateAccessBindings($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @param CreateAccessBindingRequest[] $requests Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchCreateAccessBindings($parent, $requests, array $optionalArgs = []) - { - $request = new BatchCreateAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchCreateAccessBindings', BatchCreateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $analyticsAdminServiceClient->batchDeleteAccessBindings($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @param DeleteAccessBindingRequest[] $requests Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchDeleteAccessBindings($parent, $requests, array $optionalArgs = []) - { - $request = new BatchDeleteAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchDeleteAccessBindings', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets information about multiple access bindings to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $formattedNames = [ - * $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - * ]; - * $response = $analyticsAdminServiceClient->batchGetAccessBindings($formattedParent, $formattedNames); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @param string[] $names Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchGetAccessBindings($parent, $names, array $optionalArgs = []) - { - $request = new BatchGetAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setNames($names); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchGetAccessBindings', BatchGetAccessBindingsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates information about multiple access bindings to an account or - * property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchUpdateAccessBindings($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @param UpdateAccessBindingRequest[] $requests Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchUpdateAccessBindings($parent, $requests, array $optionalArgs = []) - { - $request = new BatchUpdateAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchUpdateAccessBindings', BatchUpdateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Cancels a DisplayVideo360AdvertiserLinkProposal. - * Cancelling can mean either: - * - Declining a proposal initiated from Display & Video 360 - * - Withdrawing a proposal initiated from Google Analytics - * After being cancelled, a proposal will eventually be deleted automatically. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $response = $analyticsAdminServiceClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function cancelDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new CancelDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CancelDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an access binding on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $accessBinding = new AccessBinding(); - * $response = $analyticsAdminServiceClient->createAccessBinding($formattedParent, $accessBinding); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Formats: - * - accounts/{account} - * - properties/{property} - * @param AccessBinding $accessBinding Required. The access binding to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AccessBinding - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAccessBinding($parent, $accessBinding, array $optionalArgs = []) - { - $request = new CreateAccessBindingRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAccessBinding($accessBinding); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an AdSenseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $adsenseLink = new AdSenseLink(); - * $response = $analyticsAdminServiceClient->createAdSenseLink($formattedParent, $adsenseLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * @param AdSenseLink $adsenseLink Required. The AdSense Link to create - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAdSenseLink($parent, $adsenseLink, array $optionalArgs = []) - { - $request = new CreateAdSenseLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAdsenseLink($adsenseLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateAdSenseLink', AdSenseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an Audience. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $audience = new Audience(); - * $response = $analyticsAdminServiceClient->createAudience($formattedParent, $audience); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param Audience $audience Required. The audience to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Audience - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAudience($parent, $audience, array $optionalArgs = []) - { - $request = new CreateAudienceRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAudience($audience); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateAudience', Audience::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a ChannelGroup. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $channelGroup = new ChannelGroup(); - * $response = $analyticsAdminServiceClient->createChannelGroup($formattedParent, $channelGroup); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * @param ChannelGroup $channelGroup Required. The ChannelGroup to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createChannelGroup($parent, $channelGroup, array $optionalArgs = []) - { - $request = new CreateChannelGroupRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setChannelGroup($channelGroup); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a connected site tag for a Universal Analytics property. You can - * create a maximum of 20 connected site tags per property. - * Note: This API cannot be used on GA4 properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $connectedSiteTag = new ConnectedSiteTag(); - * $response = $analyticsAdminServiceClient->createConnectedSiteTag($connectedSiteTag); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConnectedSiteTag $connectedSiteTag Required. The tag to add to the Universal Analytics property - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createConnectedSiteTag($connectedSiteTag, array $optionalArgs = []) - { - $request = new CreateConnectedSiteTagRequest(); - $request->setConnectedSiteTag($connectedSiteTag); - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - return $this->startCall('CreateConnectedSiteTag', CreateConnectedSiteTagResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createConversionEvent($conversionEvent, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to create. - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = []) - { - $request = new CreateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customDimension = new CustomDimension(); - * $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomDimension $customDimension Required. The CustomDimension to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomDimension($parent, $customDimension, array $optionalArgs = []) - { - $request = new CreateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomDimension($customDimension); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customMetric = new CustomMetric(); - * $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomMetric $customMetric Required. The CustomMetric to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomMetric($parent, $customMetric, array $optionalArgs = []) - { - $request = new CreateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomMetric($customMetric); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $dataStream = new DataStream(); - * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DataStream $dataStream Required. The DataStream to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDataStream($parent, $dataStream, array $optionalArgs = []) - { - $request = new CreateDataStreamRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDataStream($dataStream); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DisplayVideo360AdvertiserLink. - * This can only be utilized by users who have proper authorization both on - * the Google Analytics property and on the Display & Video 360 advertiser. - * Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDisplayVideo360AdvertiserLink($parent, $displayVideo360AdvertiserLink, array $optionalArgs = []) - { - $request = new CreateDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal Required. The DisplayVideo360AdvertiserLinkProposal to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDisplayVideo360AdvertiserLinkProposal($parent, $displayVideo360AdvertiserLinkProposal, array $optionalArgs = []) - { - $request = new CreateDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $eventCreateRule = new EventCreateRule(); - * $response = $analyticsAdminServiceClient->createEventCreateRule($formattedParent, $eventCreateRule); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param EventCreateRule $eventCreateRule Required. The EventCreateRule to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createEventCreateRule($parent, $eventCreateRule, array $optionalArgs = []) - { - $request = new CreateEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setEventCreateRule($eventCreateRule); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a ExpandedDataSet. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $expandedDataSet = new ExpandedDataSet(); - * $response = $analyticsAdminServiceClient->createExpandedDataSet($formattedParent, $expandedDataSet); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createExpandedDataSet($parent, $expandedDataSet, array $optionalArgs = []) - { - $request = new CreateExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setExpandedDataSet($expandedDataSet); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $firebaseLink = new FirebaseLink(); - * $response = $analyticsAdminServiceClient->createFirebaseLink($formattedParent, $firebaseLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param FirebaseLink $firebaseLink Required. The Firebase link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\FirebaseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createFirebaseLink($parent, $firebaseLink, array $optionalArgs = []) - { - $request = new CreateFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setFirebaseLink($firebaseLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $googleAdsLink = new GoogleAdsLink(); - * $response = $analyticsAdminServiceClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs = []) - { - $request = new CreateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setGoogleAdsLink($googleAdsLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createMeasurementProtocolSecret($parent, $measurementProtocolSecret, array $optionalArgs = []) - { - $request = new CreateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $response = $analyticsAdminServiceClient->createProperty($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createProperty($property, array $optionalArgs = []) - { - $request = new CreatePropertyRequest(); - $request->setProperty($property); - return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Create a roll-up property and all roll-up property source links. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $rollupProperty = new Property(); - * $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $rollupProperty Required. The roll-up property to create. - * @param array $optionalArgs { - * Optional. - * - * @type string[] $sourceProperties - * Optional. The resource names of properties that will be sources to the - * created roll-up property. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createRollupProperty($rollupProperty, array $optionalArgs = []) - { - $request = new CreateRollupPropertyRequest(); - $request->setRollupProperty($rollupProperty); - if (isset($optionalArgs['sourceProperties'])) { - $request->setSourceProperties($optionalArgs['sourceProperties']); - } - - return $this->startCall('CreateRollupProperty', CreateRollupPropertyResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a roll-up property source link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $rollupPropertySourceLink = new RollupPropertySourceLink(); - * $response = $analyticsAdminServiceClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param RollupPropertySourceLink $rollupPropertySourceLink Required. The roll-up property source link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createRollupPropertySourceLink($parent, $rollupPropertySourceLink, array $optionalArgs = []) - { - $request = new CreateRollupPropertySourceLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRollupPropertySourceLink($rollupPropertySourceLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - * $response = $analyticsAdminServiceClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @param SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSKAdNetworkConversionValueSchema($parent, $skadnetworkConversionValueSchema, array $optionalArgs = []) - { - $request = new CreateSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a SearchAds360Link. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $searchAds360Link = new SearchAds360Link(); - * $response = $analyticsAdminServiceClient->createSearchAds360Link($formattedParent, $searchAds360Link); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param SearchAds360Link $searchAds360Link Required. The SearchAds360Link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSearchAds360Link($parent, $searchAds360Link, array $optionalArgs = []) - { - $request = new CreateSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setSearchAds360Link($searchAds360Link); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); - } - - /** - * Create a subproperty and a subproperty event filter that applies to the - * created subproperty. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $subproperty = new Property(); - * $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The ordinary property for which to create a subproperty. - * Format: properties/property_id - * Example: properties/123 - * @param Property $subproperty Required. The subproperty to create. - * @param array $optionalArgs { - * Optional. - * - * @type SubpropertyEventFilter $subpropertyEventFilter - * Optional. The subproperty event filter to create on an ordinary property. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSubproperty($parent, $subproperty, array $optionalArgs = []) - { - $request = new CreateSubpropertyRequest(); - $request->setParent($parent); - $request->setSubproperty($subproperty); - if (isset($optionalArgs['subpropertyEventFilter'])) { - $request->setSubpropertyEventFilter($optionalArgs['subpropertyEventFilter']); - } - - return $this->startCall('CreateSubproperty', CreateSubpropertyResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a subproperty Event Filter. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $subpropertyEventFilter = new SubpropertyEventFilter(); - * $response = $analyticsAdminServiceClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * @param SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSubpropertyEventFilter($parent, $subpropertyEventFilter, array $optionalArgs = []) - { - $request = new CreateSubpropertyEventFilterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setSubpropertyEventFilter($subpropertyEventFilter); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateSubpropertyEventFilter', SubpropertyEventFilter::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an access binding on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - * $analyticsAdminServiceClient->deleteAccessBinding($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAccessBinding($name, array $optionalArgs = []) - { - $request = new DeleteAccessBindingRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAccessBinding', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * AccessBindings) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $analyticsAdminServiceClient->deleteAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAccount($name, array $optionalArgs = []) - { - $request = new DeleteAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAccount', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an AdSenseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - * $analyticsAdminServiceClient->deleteAdSenseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAdSenseLink($name, array $optionalArgs = []) - { - $request = new DeleteAdSenseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAdSenseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a ChannelGroup on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - * $analyticsAdminServiceClient->deleteChannelGroup($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteChannelGroup($name, array $optionalArgs = []) - { - $request = new DeleteChannelGroupRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteChannelGroup', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a connected site tag for a Universal Analytics property. - * Note: this has no effect on GA4 properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $analyticsAdminServiceClient->deleteConnectedSiteTag(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type string $tagId - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteConnectedSiteTag(array $optionalArgs = []) - { - $request = new DeleteConnectedSiteTagRequest(); - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - if (isset($optionalArgs['tagId'])) { - $request->setTagId($optionalArgs['tagId']); - } - - return $this->startCall('DeleteConnectedSiteTag', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a conversion event in a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $analyticsAdminServiceClient->deleteConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteConversionEvent($name, array $optionalArgs = []) - { - $request = new DeleteConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDataStream($name, array $optionalArgs = []) - { - $request = new DeleteDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) - { - $request = new DeleteDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDisplayVideo360AdvertiserLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - * This can only be used on cancelled proposals. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new DeleteDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDisplayVideo360AdvertiserLinkProposal', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - * $analyticsAdminServiceClient->deleteEventCreateRule($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteEventCreateRule($name, array $optionalArgs = []) - { - $request = new DeleteEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteEventCreateRule', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a ExpandedDataSet on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - * $analyticsAdminServiceClient->deleteExpandedDataSet($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/expandedDataSets/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteExpandedDataSet($name, array $optionalArgs = []) - { - $request = new DeleteExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteExpandedDataSet', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteFirebaseLink($name, array $optionalArgs = []) - { - $request = new DeleteFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteFirebaseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - * $analyticsAdminServiceClient->deleteGoogleAdsLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteGoogleAdsLink($name, array $optionalArgs = []) - { - $request = new DeleteGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new DeleteMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteMeasurementProtocolSecret', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->deleteProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteProperty($name, array $optionalArgs = []) - { - $request = new DeletePropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a roll-up property source link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - * $analyticsAdminServiceClient->deleteRollupPropertySourceLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteRollupPropertySourceLink($name, array $optionalArgs = []) - { - $request = new DeleteRollupPropertySourceLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteRollupPropertySourceLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - * $analyticsAdminServiceClient->deleteSKAdNetworkConversionValueSchema($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) - { - $request = new DeleteSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSKAdNetworkConversionValueSchema', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a SearchAds360Link on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - * $analyticsAdminServiceClient->deleteSearchAds360Link($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSearchAds360Link($name, array $optionalArgs = []) - { - $request = new DeleteSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSearchAds360Link', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a subproperty event filter. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - * $analyticsAdminServiceClient->deleteSubpropertyEventFilter($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSubpropertyEventFilter($name, array $optionalArgs = []) - { - $request = new DeleteSubpropertyEventFilterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSubpropertyEventFilter', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Fetches the opt out status for the automated GA4 setup process for a UA - * property. - * Note: this has no effect on GA4 property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = 'property'; - * $response = $analyticsAdminServiceClient->fetchAutomatedGa4ConfigurationOptOut($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function fetchAutomatedGa4ConfigurationOptOut($property, array $optionalArgs = []) - { - $request = new FetchAutomatedGa4ConfigurationOptOutRequest(); - $request->setProperty($property); - return $this->startCall('FetchAutomatedGa4ConfigurationOptOut', FetchAutomatedGa4ConfigurationOptOutResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Given a specified UA property, looks up the GA4 property connected to it. - * Note: this cannot be used with GA4 properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->fetchConnectedGa4Property($formattedProperty); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\FetchConnectedGa4PropertyResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function fetchConnectedGa4Property($property, array $optionalArgs = []) - { - $request = new FetchConnectedGa4PropertyRequest(); - $request->setProperty($property); - return $this->startCall('FetchConnectedGa4Property', FetchConnectedGa4PropertyResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets information about an access binding. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - * $response = $analyticsAdminServiceClient->getAccessBinding($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AccessBinding - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAccessBinding($name, array $optionalArgs = []) - { - $request = new GetAccessBindingRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single Account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAccount($name, array $optionalArgs = []) - { - $request = new GetAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Looks up a single AdSenseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - * $response = $analyticsAdminServiceClient->getAdSenseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAdSenseLink($name, array $optionalArgs = []) - { - $request = new GetAdSenseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAdSenseLink', AdSenseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a AttributionSettings singleton. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->attributionSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getAttributionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAttributionSettings($name, array $optionalArgs = []) - { - $request = new GetAttributionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAttributionSettings', AttributionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single Audience. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - * $response = $analyticsAdminServiceClient->getAudience($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Audience - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAudience($name, array $optionalArgs = []) - { - $request = new GetAudienceRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAudience', Audience::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single BigQuery Link. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - * $response = $analyticsAdminServiceClient->getBigQueryLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getBigQueryLink($name, array $optionalArgs = []) - { - $request = new GetBigQueryLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single ChannelGroup. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - * $response = $analyticsAdminServiceClient->getChannelGroup($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getChannelGroup($name, array $optionalArgs = []) - { - $request = new GetChannelGroupRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieve a single conversion event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $response = $analyticsAdminServiceClient->getConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getConversionEvent($name, array $optionalArgs = []) - { - $request = new GetConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $response = $analyticsAdminServiceClient->getCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomDimension($name, array $optionalArgs = []) - { - $request = new GetCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $response = $analyticsAdminServiceClient->getCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomMetric($name, array $optionalArgs = []) - { - $request = new GetCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DataRedactionSettings. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getDataRedactionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataRedactionSettings($name, array $optionalArgs = []) - { - $request = new GetDataRedactionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataRetentionSettings($name, array $optionalArgs = []) - { - $request = new GetDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataSharingSettingsName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getDataSharingSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataSharingSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataSharingSettings($name, array $optionalArgs = []) - { - $request = new GetDataSharingSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataStream($name, array $optionalArgs = []) - { - $request = new GetDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Look up a single DisplayVideo360AdvertiserLink - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) - { - $request = new GetDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new GetDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the enhanced measurement settings for this data stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getEnhancedMeasurementSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getEnhancedMeasurementSettings($name, array $optionalArgs = []) - { - $request = new GetEnhancedMeasurementSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - * $response = $analyticsAdminServiceClient->getEventCreateRule($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getEventCreateRule($name, array $optionalArgs = []) - { - $request = new GetEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single ExpandedDataSet. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - * $response = $analyticsAdminServiceClient->getExpandedDataSet($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getExpandedDataSet($name, array $optionalArgs = []) - { - $request = new GetExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the Site Tag for the specified web stream. - * Site Tags are immutable singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getGlobalSiteTag($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GlobalSiteTag - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getGlobalSiteTag($name, array $optionalArgs = []) - { - $request = new GetGlobalSiteTagRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetGlobalSiteTag', GlobalSiteTag::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for Google Signals settings for a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->googleSignalsSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getGoogleSignalsSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getGoogleSignalsSettings($name, array $optionalArgs = []) - { - $request = new GetGoogleSignalsSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new GetMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getProperty($name, array $optionalArgs = []) - { - $request = new GetPropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single roll-up property source Link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - * $response = $analyticsAdminServiceClient->getRollupPropertySourceLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getRollupPropertySourceLink($name, array $optionalArgs = []) - { - $request = new GetRollupPropertySourceLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Looks up a single SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) - { - $request = new GetSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); - } - - /** - * Look up a single SearchAds360Link - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getSearchAds360Link($name, array $optionalArgs = []) - { - $request = new GetSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all access bindings on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccessBindings($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccessBindings($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Formats: - * - accounts/{account} - * - properties/{property} - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccessBindings($parent, array $optionalArgs = []) - { - $request = new ListAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAccessBindings', $optionalArgs, ListAccessBindingsResponse::class, $request); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccountSummaries(array $optionalArgs = []) - { - $request = new ListAccountSummariesRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - return $this->getPagedListResponse('ListAccountSummaries', $optionalArgs, ListAccountSummariesResponse::class, $request); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccounts(array $optionalArgs = []) - { - $request = new ListAccountsRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListAccounts', $optionalArgs, ListAccountsResponse::class, $request); - } - - /** - * Lists AdSenseLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAdSenseLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAdSenseLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAdSenseLinks($parent, array $optionalArgs = []) - { - $request = new ListAdSenseLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAdSenseLinks', $optionalArgs, ListAdSenseLinksResponse::class, $request); - } - - /** - * Lists Audiences on a property. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAudiences($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAudiences($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAudiences($parent, array $optionalArgs = []) - { - $request = new ListAudiencesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAudiences', $optionalArgs, ListAudiencesResponse::class, $request); - } - - /** - * Lists BigQuery Links on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listBigQueryLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listBigQueryLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listBigQueryLinks($parent, array $optionalArgs = []) - { - $request = new ListBigQueryLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListBigQueryLinks', $optionalArgs, ListBigQueryLinksResponse::class, $request); - } - - /** - * Lists ChannelGroups on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listChannelGroups($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listChannelGroups($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listChannelGroups($parent, array $optionalArgs = []) - { - $request = new ListChannelGroupsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListChannelGroups', $optionalArgs, ListChannelGroupsResponse::class, $request); - } - - /** - * Lists the connected site tags for a Universal Analytics property. A maximum - * of 20 connected site tags will be returned. Note: this has no effect on GA4 - * property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->listConnectedSiteTags(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ListConnectedSiteTagsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listConnectedSiteTags(array $optionalArgs = []) - { - $request = new ListConnectedSiteTagsRequest(); - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - return $this->startCall('ListConnectedSiteTags', ListConnectedSiteTagsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listConversionEvents($parent, array $optionalArgs = []) - { - $request = new ListConversionEventsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListConversionEvents', $optionalArgs, ListConversionEventsResponse::class, $request); - } - - /** - * Lists CustomDimensions on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomDimensions($parent, array $optionalArgs = []) - { - $request = new ListCustomDimensionsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomDimensions', $optionalArgs, ListCustomDimensionsResponse::class, $request); - } - - /** - * Lists CustomMetrics on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomMetrics($parent, array $optionalArgs = []) - { - $request = new ListCustomMetricsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request); - } - - /** - * Lists DataStreams on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDataStreams($parent, array $optionalArgs = []) - { - $request = new ListDataStreamsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request); - } - - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDisplayVideo360AdvertiserLinkProposals($parent, array $optionalArgs = []) - { - $request = new ListDisplayVideo360AdvertiserLinkProposalsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinkProposals', $optionalArgs, ListDisplayVideo360AdvertiserLinkProposalsResponse::class, $request); - } - - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDisplayVideo360AdvertiserLinks($parent, array $optionalArgs = []) - { - $request = new ListDisplayVideo360AdvertiserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinks', $optionalArgs, ListDisplayVideo360AdvertiserLinksResponse::class, $request); - } - - /** - * Lists EventCreateRules on a web data stream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listEventCreateRules($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listEventCreateRules($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listEventCreateRules($parent, array $optionalArgs = []) - { - $request = new ListEventCreateRulesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListEventCreateRules', $optionalArgs, ListEventCreateRulesResponse::class, $request); - } - - /** - * Lists ExpandedDataSets on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listExpandedDataSets($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listExpandedDataSets($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listExpandedDataSets($parent, array $optionalArgs = []) - { - $request = new ListExpandedDataSetsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListExpandedDataSets', $optionalArgs, ListExpandedDataSetsResponse::class, $request); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listFirebaseLinks($parent, array $optionalArgs = []) - { - $request = new ListFirebaseLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListFirebaseLinks', $optionalArgs, ListFirebaseLinksResponse::class, $request); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listGoogleAdsLinks($parent, array $optionalArgs = []) - { - $request = new ListGoogleAdsLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listMeasurementProtocolSecrets($parent, array $optionalArgs = []) - { - $request = new ListMeasurementProtocolSecretsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListMeasurementProtocolSecrets', $optionalArgs, ListMeasurementProtocolSecretsResponse::class, $request); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $filter = 'filter'; - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $filter Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listProperties($filter, array $optionalArgs = []) - { - $request = new ListPropertiesRequest(); - $request->setFilter($filter); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListProperties', $optionalArgs, ListPropertiesResponse::class, $request); - } - - /** - * Lists roll-up property source Links on a property. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listRollupPropertySourceLinks($parent, array $optionalArgs = []) - { - $request = new ListRollupPropertySourceLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListRollupPropertySourceLinks', $optionalArgs, ListRollupPropertySourceLinksResponse::class, $request); - } - - /** - * Lists SKAdNetworkConversionValueSchema on a stream. - * Properties can have at most one SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) - { - $request = new ListSKAdNetworkConversionValueSchemasRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); - } - - /** - * Lists all SearchAds360Links on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listSearchAds360Links($parent, array $optionalArgs = []) - { - $request = new ListSearchAds360LinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); - } - - /** - * Requests a ticket for creating an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->provisionAccountTicket(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type Account $account - * The account to create. - * @type string $redirectUri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function provisionAccountTicket(array $optionalArgs = []) - { - $request = new ProvisionAccountTicketRequest(); - if (isset($optionalArgs['account'])) { - $request->setAccount($optionalArgs['account']); - } - - if (isset($optionalArgs['redirectUri'])) { - $request->setRedirectUri($optionalArgs['redirectUri']); - } - - return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->runAccessReport(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type AccessDimension[] $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type AccessMetric[] $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type AccessDateRange[] $dateRanges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type AccessFilterExpression $dimensionFilter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type AccessFilterExpression $metricFilter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $timeZone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type AccessOrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type bool $returnEntityQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type bool $includeAllUsers - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * @type bool $expandGroups - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\RunAccessReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runAccessReport(array $optionalArgs = []) - { - $request = new RunAccessReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['entity'])) { - $request->setEntity($optionalArgs['entity']); - $requestParamHeaders['entity'] = $optionalArgs['entity']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['timeZone'])) { - $request->setTimeZone($optionalArgs['timeZone']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['returnEntityQuota'])) { - $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); - } - - if (isset($optionalArgs['includeAllUsers'])) { - $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); - } - - if (isset($optionalArgs['expandGroups'])) { - $request->setExpandGroups($optionalArgs['expandGroups']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedAccount = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $account Required. The account resource for which to return change history - * resources. - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @type int[] $resourceType - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1alpha\ChangeHistoryResourceType} - * @type int[] $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1alpha\ActionType} - * @type string[] $actorEmail - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type Timestamp $earliestChangeTime - * Optional. If set, only return changes made after this time (inclusive). - * @type Timestamp $latestChangeTime - * Optional. If set, only return changes made before this time (inclusive). - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function searchChangeHistoryEvents($account, array $optionalArgs = []) - { - $request = new SearchChangeHistoryEventsRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $requestParamHeaders['account'] = $account; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - if (isset($optionalArgs['resourceType'])) { - $request->setResourceType($optionalArgs['resourceType']); - } - - if (isset($optionalArgs['action'])) { - $request->setAction($optionalArgs['action']); - } - - if (isset($optionalArgs['actorEmail'])) { - $request->setActorEmail($optionalArgs['actorEmail']); - } - - if (isset($optionalArgs['earliestChangeTime'])) { - $request->setEarliestChangeTime($optionalArgs['earliestChangeTime']); - } - - if (isset($optionalArgs['latestChangeTime'])) { - $request->setLatestChangeTime($optionalArgs['latestChangeTime']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('SearchChangeHistoryEvents', $optionalArgs, SearchChangeHistoryEventsResponse::class, $request); - } - - /** - * Sets the opt out status for the automated GA4 setup process for a UA - * property. - * Note: this has no effect on GA4 property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = 'property'; - * $response = $analyticsAdminServiceClient->setAutomatedGa4ConfigurationOptOut($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type bool $optOut - * The status to set. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function setAutomatedGa4ConfigurationOptOut($property, array $optionalArgs = []) - { - $request = new SetAutomatedGa4ConfigurationOptOutRequest(); - $request->setProperty($property); - if (isset($optionalArgs['optOut'])) { - $request->setOptOut($optionalArgs['optOut']); - } - - return $this->startCall('SetAutomatedGa4ConfigurationOptOut', SetAutomatedGa4ConfigurationOptOutResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an access binding on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $accessBinding = new AccessBinding(); - * $response = $analyticsAdminServiceClient->updateAccessBinding($accessBinding); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param AccessBinding $accessBinding Required. The access binding to update. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AccessBinding - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAccessBinding($accessBinding, array $optionalArgs = []) - { - $request = new UpdateAccessBindingRequest(); - $requestParamHeaders = []; - $request->setAccessBinding($accessBinding); - $requestParamHeaders['access_binding.name'] = $accessBinding->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $account = new Account(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAccount($account, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAccountRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $request->setUpdateMask($updateMask); - $requestParamHeaders['account.name'] = $account->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates attribution settings on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $attributionSettings = new AttributionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAttributionSettings($attributionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param AttributionSettings $attributionSettings Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAttributionSettings($attributionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAttributionSettingsRequest(); - $requestParamHeaders = []; - $request->setAttributionSettings($attributionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['attribution_settings.name'] = $attributionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAttributionSettings', AttributionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an Audience on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $audience = new Audience(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAudience($audience, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Audience $audience Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Audience - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAudience($audience, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAudienceRequest(); - $requestParamHeaders = []; - $request->setAudience($audience); - $request->setUpdateMask($updateMask); - $requestParamHeaders['audience.name'] = $audience->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAudience', Audience::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a ChannelGroup. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $channelGroup = new ChannelGroup(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateChannelGroup($channelGroup, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ChannelGroup $channelGroup Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateChannelGroup($channelGroup, $updateMask, array $optionalArgs = []) - { - $request = new UpdateChannelGroupRequest(); - $requestParamHeaders = []; - $request->setChannelGroup($channelGroup); - $request->setUpdateMask($updateMask); - $requestParamHeaders['channel_group.name'] = $channelGroup->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateConversionEvent($conversionEvent, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = []) - { - $request = new UpdateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setUpdateMask($updateMask); - $requestParamHeaders['conversion_event.name'] = $conversionEvent->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomDimension($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomDimension $customDimension - * The CustomDimension to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomDimension($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customDimension'])) { - $request->setCustomDimension($optionalArgs['customDimension']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomMetric($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomMetric $customMetric - * The CustomMetric to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomMetric($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customMetric'])) { - $request->setCustomMetric($optionalArgs['customMetric']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DataRedactionSettings on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $dataRedactionSettings = new DataRedactionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param DataRedactionSettings $dataRedactionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataRedactionSettings($dataRedactionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateDataRedactionSettingsRequest(); - $requestParamHeaders = []; - $request->setDataRedactionSettings($dataRedactionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['data_redaction_settings.name'] = $dataRedactionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $dataRetentionSettings = new DataRetentionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setDataRetentionSettings($dataRetentionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type DataStream $dataStream - * The DataStream to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataStream($updateMask, array $optionalArgs = []) - { - $request = new UpdateDataStreamRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['dataStream'])) { - $request->setDataStream($optionalArgs['dataStream']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDisplayVideo360AdvertiserLink($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink - * The DisplayVideo360AdvertiserLink to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDisplayVideo360AdvertiserLink($updateMask, array $optionalArgs = []) - { - $request = new UpdateDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['displayVideo360AdvertiserLink'])) { - $request->setDisplayVideo360AdvertiserLink($optionalArgs['displayVideo360AdvertiserLink']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the enhanced measurement settings for this data stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param EnhancedMeasurementSettings $enhancedMeasurementSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateEnhancedMeasurementSettingsRequest(); - $requestParamHeaders = []; - $request->setEnhancedMeasurementSettings($enhancedMeasurementSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['enhanced_measurement_settings.name'] = $enhancedMeasurementSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $eventCreateRule = new EventCreateRule(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateEventCreateRule($eventCreateRule, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param EventCreateRule $eventCreateRule Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateEventCreateRule($eventCreateRule, $updateMask, array $optionalArgs = []) - { - $request = new UpdateEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setEventCreateRule($eventCreateRule); - $request->setUpdateMask($updateMask); - $requestParamHeaders['event_create_rule.name'] = $eventCreateRule->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a ExpandedDataSet on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $expandedDataSet = new ExpandedDataSet(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateExpandedDataSet($expandedDataSet, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateExpandedDataSet($expandedDataSet, $updateMask, array $optionalArgs = []) - { - $request = new UpdateExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setExpandedDataSet($expandedDataSet); - $request->setUpdateMask($updateMask); - $requestParamHeaders['expanded_data_set.name'] = $expandedDataSet->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateGoogleAdsLink($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type GoogleAdsLink $googleAdsLink - * The GoogleAdsLink to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGoogleAdsLink($updateMask, array $optionalArgs = []) - { - $request = new UpdateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['googleAdsLink'])) { - $request->setGoogleAdsLink($optionalArgs['googleAdsLink']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates Google Signals settings for a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $googleSignalsSettings = new GoogleSignalsSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param GoogleSignalsSettings $googleSignalsSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGoogleSignalsSettings($googleSignalsSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateGoogleSignalsSettingsRequest(); - $requestParamHeaders = []; - $request->setGoogleSignalsSettings($googleSignalsSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['google_signals_settings.name'] = $googleSignalsSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask, array $optionalArgs = []) - { - $request = new UpdateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $request->setUpdateMask($updateMask); - $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateProperty($property, $updateMask, array $optionalArgs = []) - { - $request = new UpdatePropertyRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setUpdateMask($updateMask); - $requestParamHeaders['property.name'] = $property->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to update. - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask, array $optionalArgs = []) - { - $request = new UpdateSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - $request->setUpdateMask($updateMask); - $requestParamHeaders['skadnetwork_conversion_value_schema.name'] = $skadnetworkConversionValueSchema->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a SearchAds360Link on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateSearchAds360Link($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type SearchAds360Link $searchAds360Link - * The SearchAds360Link to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateSearchAds360Link($updateMask, array $optionalArgs = []) - { - $request = new UpdateSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['searchAds360Link'])) { - $request->setSearchAds360Link($optionalArgs['searchAds360Link']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json deleted file mode 100644 index 9c36224be4b8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json +++ /dev/null @@ -1,658 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.admin.v1alpha", - "libraryPackage": "Google\\Analytics\\Admin\\V1alpha", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "AnalyticsAdminServiceGapicClient", - "rpcs": { - "AcknowledgeUserDataCollection": { - "methods": [ - "acknowledgeUserDataCollection" - ] - }, - "ApproveDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "approveDisplayVideo360AdvertiserLinkProposal" - ] - }, - "ArchiveAudience": { - "methods": [ - "archiveAudience" - ] - }, - "ArchiveCustomDimension": { - "methods": [ - "archiveCustomDimension" - ] - }, - "ArchiveCustomMetric": { - "methods": [ - "archiveCustomMetric" - ] - }, - "BatchCreateAccessBindings": { - "methods": [ - "batchCreateAccessBindings" - ] - }, - "BatchDeleteAccessBindings": { - "methods": [ - "batchDeleteAccessBindings" - ] - }, - "BatchGetAccessBindings": { - "methods": [ - "batchGetAccessBindings" - ] - }, - "BatchUpdateAccessBindings": { - "methods": [ - "batchUpdateAccessBindings" - ] - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "cancelDisplayVideo360AdvertiserLinkProposal" - ] - }, - "CreateAccessBinding": { - "methods": [ - "createAccessBinding" - ] - }, - "CreateAdSenseLink": { - "methods": [ - "createAdSenseLink" - ] - }, - "CreateAudience": { - "methods": [ - "createAudience" - ] - }, - "CreateChannelGroup": { - "methods": [ - "createChannelGroup" - ] - }, - "CreateConnectedSiteTag": { - "methods": [ - "createConnectedSiteTag" - ] - }, - "CreateConversionEvent": { - "methods": [ - "createConversionEvent" - ] - }, - "CreateCustomDimension": { - "methods": [ - "createCustomDimension" - ] - }, - "CreateCustomMetric": { - "methods": [ - "createCustomMetric" - ] - }, - "CreateDataStream": { - "methods": [ - "createDataStream" - ] - }, - "CreateDisplayVideo360AdvertiserLink": { - "methods": [ - "createDisplayVideo360AdvertiserLink" - ] - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "createDisplayVideo360AdvertiserLinkProposal" - ] - }, - "CreateEventCreateRule": { - "methods": [ - "createEventCreateRule" - ] - }, - "CreateExpandedDataSet": { - "methods": [ - "createExpandedDataSet" - ] - }, - "CreateFirebaseLink": { - "methods": [ - "createFirebaseLink" - ] - }, - "CreateGoogleAdsLink": { - "methods": [ - "createGoogleAdsLink" - ] - }, - "CreateMeasurementProtocolSecret": { - "methods": [ - "createMeasurementProtocolSecret" - ] - }, - "CreateProperty": { - "methods": [ - "createProperty" - ] - }, - "CreateRollupProperty": { - "methods": [ - "createRollupProperty" - ] - }, - "CreateRollupPropertySourceLink": { - "methods": [ - "createRollupPropertySourceLink" - ] - }, - "CreateSKAdNetworkConversionValueSchema": { - "methods": [ - "createSKAdNetworkConversionValueSchema" - ] - }, - "CreateSearchAds360Link": { - "methods": [ - "createSearchAds360Link" - ] - }, - "CreateSubproperty": { - "methods": [ - "createSubproperty" - ] - }, - "CreateSubpropertyEventFilter": { - "methods": [ - "createSubpropertyEventFilter" - ] - }, - "DeleteAccessBinding": { - "methods": [ - "deleteAccessBinding" - ] - }, - "DeleteAccount": { - "methods": [ - "deleteAccount" - ] - }, - "DeleteAdSenseLink": { - "methods": [ - "deleteAdSenseLink" - ] - }, - "DeleteChannelGroup": { - "methods": [ - "deleteChannelGroup" - ] - }, - "DeleteConnectedSiteTag": { - "methods": [ - "deleteConnectedSiteTag" - ] - }, - "DeleteConversionEvent": { - "methods": [ - "deleteConversionEvent" - ] - }, - "DeleteDataStream": { - "methods": [ - "deleteDataStream" - ] - }, - "DeleteDisplayVideo360AdvertiserLink": { - "methods": [ - "deleteDisplayVideo360AdvertiserLink" - ] - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "deleteDisplayVideo360AdvertiserLinkProposal" - ] - }, - "DeleteEventCreateRule": { - "methods": [ - "deleteEventCreateRule" - ] - }, - "DeleteExpandedDataSet": { - "methods": [ - "deleteExpandedDataSet" - ] - }, - "DeleteFirebaseLink": { - "methods": [ - "deleteFirebaseLink" - ] - }, - "DeleteGoogleAdsLink": { - "methods": [ - "deleteGoogleAdsLink" - ] - }, - "DeleteMeasurementProtocolSecret": { - "methods": [ - "deleteMeasurementProtocolSecret" - ] - }, - "DeleteProperty": { - "methods": [ - "deleteProperty" - ] - }, - "DeleteRollupPropertySourceLink": { - "methods": [ - "deleteRollupPropertySourceLink" - ] - }, - "DeleteSKAdNetworkConversionValueSchema": { - "methods": [ - "deleteSKAdNetworkConversionValueSchema" - ] - }, - "DeleteSearchAds360Link": { - "methods": [ - "deleteSearchAds360Link" - ] - }, - "DeleteSubpropertyEventFilter": { - "methods": [ - "deleteSubpropertyEventFilter" - ] - }, - "FetchAutomatedGa4ConfigurationOptOut": { - "methods": [ - "fetchAutomatedGa4ConfigurationOptOut" - ] - }, - "FetchConnectedGa4Property": { - "methods": [ - "fetchConnectedGa4Property" - ] - }, - "GetAccessBinding": { - "methods": [ - "getAccessBinding" - ] - }, - "GetAccount": { - "methods": [ - "getAccount" - ] - }, - "GetAdSenseLink": { - "methods": [ - "getAdSenseLink" - ] - }, - "GetAttributionSettings": { - "methods": [ - "getAttributionSettings" - ] - }, - "GetAudience": { - "methods": [ - "getAudience" - ] - }, - "GetBigQueryLink": { - "methods": [ - "getBigQueryLink" - ] - }, - "GetChannelGroup": { - "methods": [ - "getChannelGroup" - ] - }, - "GetConversionEvent": { - "methods": [ - "getConversionEvent" - ] - }, - "GetCustomDimension": { - "methods": [ - "getCustomDimension" - ] - }, - "GetCustomMetric": { - "methods": [ - "getCustomMetric" - ] - }, - "GetDataRedactionSettings": { - "methods": [ - "getDataRedactionSettings" - ] - }, - "GetDataRetentionSettings": { - "methods": [ - "getDataRetentionSettings" - ] - }, - "GetDataSharingSettings": { - "methods": [ - "getDataSharingSettings" - ] - }, - "GetDataStream": { - "methods": [ - "getDataStream" - ] - }, - "GetDisplayVideo360AdvertiserLink": { - "methods": [ - "getDisplayVideo360AdvertiserLink" - ] - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "getDisplayVideo360AdvertiserLinkProposal" - ] - }, - "GetEnhancedMeasurementSettings": { - "methods": [ - "getEnhancedMeasurementSettings" - ] - }, - "GetEventCreateRule": { - "methods": [ - "getEventCreateRule" - ] - }, - "GetExpandedDataSet": { - "methods": [ - "getExpandedDataSet" - ] - }, - "GetGlobalSiteTag": { - "methods": [ - "getGlobalSiteTag" - ] - }, - "GetGoogleSignalsSettings": { - "methods": [ - "getGoogleSignalsSettings" - ] - }, - "GetMeasurementProtocolSecret": { - "methods": [ - "getMeasurementProtocolSecret" - ] - }, - "GetProperty": { - "methods": [ - "getProperty" - ] - }, - "GetRollupPropertySourceLink": { - "methods": [ - "getRollupPropertySourceLink" - ] - }, - "GetSKAdNetworkConversionValueSchema": { - "methods": [ - "getSKAdNetworkConversionValueSchema" - ] - }, - "GetSearchAds360Link": { - "methods": [ - "getSearchAds360Link" - ] - }, - "ListAccessBindings": { - "methods": [ - "listAccessBindings" - ] - }, - "ListAccountSummaries": { - "methods": [ - "listAccountSummaries" - ] - }, - "ListAccounts": { - "methods": [ - "listAccounts" - ] - }, - "ListAdSenseLinks": { - "methods": [ - "listAdSenseLinks" - ] - }, - "ListAudiences": { - "methods": [ - "listAudiences" - ] - }, - "ListBigQueryLinks": { - "methods": [ - "listBigQueryLinks" - ] - }, - "ListChannelGroups": { - "methods": [ - "listChannelGroups" - ] - }, - "ListConnectedSiteTags": { - "methods": [ - "listConnectedSiteTags" - ] - }, - "ListConversionEvents": { - "methods": [ - "listConversionEvents" - ] - }, - "ListCustomDimensions": { - "methods": [ - "listCustomDimensions" - ] - }, - "ListCustomMetrics": { - "methods": [ - "listCustomMetrics" - ] - }, - "ListDataStreams": { - "methods": [ - "listDataStreams" - ] - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "methods": [ - "listDisplayVideo360AdvertiserLinkProposals" - ] - }, - "ListDisplayVideo360AdvertiserLinks": { - "methods": [ - "listDisplayVideo360AdvertiserLinks" - ] - }, - "ListEventCreateRules": { - "methods": [ - "listEventCreateRules" - ] - }, - "ListExpandedDataSets": { - "methods": [ - "listExpandedDataSets" - ] - }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, - "ListGoogleAdsLinks": { - "methods": [ - "listGoogleAdsLinks" - ] - }, - "ListMeasurementProtocolSecrets": { - "methods": [ - "listMeasurementProtocolSecrets" - ] - }, - "ListProperties": { - "methods": [ - "listProperties" - ] - }, - "ListRollupPropertySourceLinks": { - "methods": [ - "listRollupPropertySourceLinks" - ] - }, - "ListSKAdNetworkConversionValueSchemas": { - "methods": [ - "listSKAdNetworkConversionValueSchemas" - ] - }, - "ListSearchAds360Links": { - "methods": [ - "listSearchAds360Links" - ] - }, - "ProvisionAccountTicket": { - "methods": [ - "provisionAccountTicket" - ] - }, - "RunAccessReport": { - "methods": [ - "runAccessReport" - ] - }, - "SearchChangeHistoryEvents": { - "methods": [ - "searchChangeHistoryEvents" - ] - }, - "SetAutomatedGa4ConfigurationOptOut": { - "methods": [ - "setAutomatedGa4ConfigurationOptOut" - ] - }, - "UpdateAccessBinding": { - "methods": [ - "updateAccessBinding" - ] - }, - "UpdateAccount": { - "methods": [ - "updateAccount" - ] - }, - "UpdateAttributionSettings": { - "methods": [ - "updateAttributionSettings" - ] - }, - "UpdateAudience": { - "methods": [ - "updateAudience" - ] - }, - "UpdateChannelGroup": { - "methods": [ - "updateChannelGroup" - ] - }, - "UpdateConversionEvent": { - "methods": [ - "updateConversionEvent" - ] - }, - "UpdateCustomDimension": { - "methods": [ - "updateCustomDimension" - ] - }, - "UpdateCustomMetric": { - "methods": [ - "updateCustomMetric" - ] - }, - "UpdateDataRedactionSettings": { - "methods": [ - "updateDataRedactionSettings" - ] - }, - "UpdateDataRetentionSettings": { - "methods": [ - "updateDataRetentionSettings" - ] - }, - "UpdateDataStream": { - "methods": [ - "updateDataStream" - ] - }, - "UpdateDisplayVideo360AdvertiserLink": { - "methods": [ - "updateDisplayVideo360AdvertiserLink" - ] - }, - "UpdateEnhancedMeasurementSettings": { - "methods": [ - "updateEnhancedMeasurementSettings" - ] - }, - "UpdateEventCreateRule": { - "methods": [ - "updateEventCreateRule" - ] - }, - "UpdateExpandedDataSet": { - "methods": [ - "updateExpandedDataSet" - ] - }, - "UpdateGoogleAdsLink": { - "methods": [ - "updateGoogleAdsLink" - ] - }, - "UpdateGoogleSignalsSettings": { - "methods": [ - "updateGoogleSignalsSettings" - ] - }, - "UpdateMeasurementProtocolSecret": { - "methods": [ - "updateMeasurementProtocolSecret" - ] - }, - "UpdateProperty": { - "methods": [ - "updateProperty" - ] - }, - "UpdateSKAdNetworkConversionValueSchema": { - "methods": [ - "updateSKAdNetworkConversionValueSchema" - ] - }, - "UpdateSearchAds360Link": { - "methods": [ - "updateSearchAds360Link" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json deleted file mode 100644 index 3355e5091af3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "interfaces": { - "google.analytics.admin.v1alpha.AnalyticsAdminService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AcknowledgeUserDataCollection": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ApproveDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchCreateAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchDeleteAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchGetAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchUpdateAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateAdSenseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateConnectedSiteTag": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRollupProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateRollupPropertySourceLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSubproperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSubpropertyEventFilter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAdSenseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConnectedSiteTag": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRollupPropertySourceLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSubpropertyEventFilter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchAutomatedGa4ConfigurationOptOut": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchConnectedGa4Property": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAdSenseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttributionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetBigQueryLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataRedactionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataSharingSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetEnhancedMeasurementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetGlobalSiteTag": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetGoogleSignalsSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetRollupPropertySourceLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccountSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccounts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAdSenseLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAudiences": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBigQueryLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListChannelGroups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConnectedSiteTags": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConversionEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomDimensions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomMetrics": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDisplayVideo360AdvertiserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListEventCreateRules": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListExpandedDataSets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFirebaseLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListGoogleAdsLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListMeasurementProtocolSecrets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProperties": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListRollupPropertySourceLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSKAdNetworkConversionValueSchemas": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSearchAds360Links": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ProvisionAccountTicket": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunAccessReport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchChangeHistoryEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetAutomatedGa4ConfigurationOptOut": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAttributionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataRedactionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateEnhancedMeasurementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateGoogleSignalsSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php deleted file mode 100644 index 5d77d02ca3fc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php +++ /dev/null @@ -1,238 +0,0 @@ - [ - 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'ListAccessBindings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccessBindings', - ], - ], - 'ListAccountSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccountSummaries', - ], - ], - 'ListAccounts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccounts', - ], - ], - 'ListAdSenseLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdsenseLinks', - ], - ], - 'ListAudiences' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAudiences', - ], - ], - 'ListBigQueryLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBigqueryLinks', - ], - ], - 'ListChannelGroups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChannelGroups', - ], - ], - 'ListConversionEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversionEvents', - ], - ], - 'ListCustomDimensions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomDimensions', - ], - ], - 'ListCustomMetrics' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomMetrics', - ], - ], - 'ListDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataStreams', - ], - ], - 'ListDisplayVideo360AdvertiserLinkProposals' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinkProposals', - ], - ], - 'ListDisplayVideo360AdvertiserLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinks', - ], - ], - 'ListEventCreateRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEventCreateRules', - ], - ], - 'ListExpandedDataSets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getExpandedDataSets', - ], - ], - 'ListFirebaseLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFirebaseLinks', - ], - ], - 'ListGoogleAdsLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGoogleAdsLinks', - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMeasurementProtocolSecrets', - ], - ], - 'ListProperties' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProperties', - ], - ], - 'ListRollupPropertySourceLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRollupPropertySourceLinks', - ], - ], - 'ListSKAdNetworkConversionValueSchemas' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', - ], - ], - 'ListSearchAds360Links' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchAds360Links', - ], - ], - 'SearchChangeHistoryEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChangeHistoryEvents', - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php deleted file mode 100644 index 14a5a77eb4e0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php +++ /dev/null @@ -1,1536 +0,0 @@ - [ - 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{property=properties/*}:acknowledgeUserDataCollection', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'ApproveDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveAudience' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/audiences/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/customMetrics/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'BatchCreateAccessBindings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeleteAccessBindings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchDelete', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchDelete', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetAccessBindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchGet', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchGet', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateAccessBindings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchUpdate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CancelDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateAccessBinding' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings', - 'body' => 'access_binding', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings', - 'body' => 'access_binding', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAdSenseLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/adSenseLinks', - 'body' => 'adsense_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAudience' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/audiences', - 'body' => 'audience', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateChannelGroup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/channelGroups', - 'body' => 'channel_group', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConnectedSiteTag' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:createConnectedSiteTag', - 'body' => '*', - ], - 'CreateConversionEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', - 'body' => 'conversion_event', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customDimensions', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customMetrics', - 'body' => 'custom_metric', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams', - 'body' => 'data_stream', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDisplayVideo360AdvertiserLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks', - 'body' => 'display_video_360_advertiser_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals', - 'body' => 'display_video_360_advertiser_link_proposal', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEventCreateRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules', - 'body' => 'event_create_rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateExpandedDataSet' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets', - 'body' => 'expanded_data_set', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', - 'body' => 'firebase_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties', - 'body' => 'property', - ], - 'CreateRollupProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:createRollupProperty', - 'body' => '*', - ], - 'CreateRollupPropertySourceLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', - 'body' => 'rollup_property_source_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSKAdNetworkConversionValueSchema' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', - 'body' => 'skadnetwork_conversion_value_schema', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSearchAds360Link' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', - 'body' => 'search_ads_360_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSubproperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:createSubproperty', - 'body' => '*', - ], - 'CreateSubpropertyEventFilter' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters', - 'body' => 'subproperty_event_filter', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAccessBinding' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*/accessBindings/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/accessBindings/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccount' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAdSenseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/adSenseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteChannelGroup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/channelGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConnectedSiteTag' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:deleteConnectedSiteTag', - 'body' => '*', - ], - 'DeleteConversionEvent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDisplayVideo360AdvertiserLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEventCreateRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteExpandedDataSet' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/firebaseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/googleAdsLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRollupPropertySourceLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSKAdNetworkConversionValueSchema' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSearchAds360Link' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSubpropertyEventFilter' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/subpropertyEventFilters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchAutomatedGa4ConfigurationOptOut' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut', - 'body' => '*', - ], - 'FetchConnectedGa4Property' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/properties:fetchConnectedGa4Property', - ], - 'GetAccessBinding' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/accessBindings/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/accessBindings/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAdSenseLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/adSenseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAttributionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/attributionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAudience' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/audiences/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetBigQueryLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/bigQueryLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetChannelGroup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/channelGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/customMetrics/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRedactionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/dataSharingSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDisplayVideo360AdvertiserLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEnhancedMeasurementSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEventCreateRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetExpandedDataSet' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGlobalSiteTag' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleSignalsSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/googleSignalsSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRollupPropertySourceLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSKAdNetworkConversionValueSchema' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSearchAds360Link' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessBindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/accountSummaries', - ], - 'ListAccounts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/accounts', - ], - 'ListAdSenseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/adSenseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAudiences' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/audiences', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListBigQueryLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/bigQueryLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListChannelGroups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/channelGroups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnectedSiteTags' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:listConnectedSiteTags', - 'body' => '*', - ], - 'ListConversionEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customDimensions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customMetrics', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDisplayVideo360AdvertiserLinkProposals' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDisplayVideo360AdvertiserLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEventCreateRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListExpandedDataSets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/properties', - 'queryParams' => [ - 'filter', - ], - ], - 'ListRollupPropertySourceLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSKAdNetworkConversionValueSchemas' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSearchAds360Links' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ProvisionAccountTicket' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/accounts:provisionAccountTicket', - 'body' => '*', - ], - 'RunAccessReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{entity=properties/*}:runAccessReport', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{entity=accounts/*}:runAccessReport', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'entity' => [ - 'getters' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{account=accounts/*}:searchChangeHistoryEvents', - 'body' => '*', - 'placeholders' => [ - 'account' => [ - 'getters' => [ - 'getAccount', - ], - ], - ], - ], - 'SetAutomatedGa4ConfigurationOptOut' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:setAutomatedGa4ConfigurationOptOut', - 'body' => '*', - ], - 'UpdateAccessBinding' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{access_binding.name=accounts/*/accessBindings/*}', - 'body' => 'access_binding', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{access_binding.name=properties/*/accessBindings/*}', - 'body' => 'access_binding', - ], - ], - 'placeholders' => [ - 'access_binding.name' => [ - 'getters' => [ - 'getAccessBinding', - 'getName', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{account.name=accounts/*}', - 'body' => 'account', - 'placeholders' => [ - 'account.name' => [ - 'getters' => [ - 'getAccount', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAttributionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{attribution_settings.name=properties/*/attributionSettings}', - 'body' => 'attribution_settings', - 'placeholders' => [ - 'attribution_settings.name' => [ - 'getters' => [ - 'getAttributionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAudience' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{audience.name=properties/*/audiences/*}', - 'body' => 'audience', - 'placeholders' => [ - 'audience.name' => [ - 'getters' => [ - 'getAudience', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateChannelGroup' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{channel_group.name=properties/*/channelGroups/*}', - 'body' => 'channel_group', - 'placeholders' => [ - 'channel_group.name' => [ - 'getters' => [ - 'getChannelGroup', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateConversionEvent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}', - 'body' => 'conversion_event', - 'placeholders' => [ - 'conversion_event.name' => [ - 'getters' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomDimension' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'custom_dimension.name' => [ - 'getters' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomMetric' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{custom_metric.name=properties/*/customMetrics/*}', - 'body' => 'custom_metric', - 'placeholders' => [ - 'custom_metric.name' => [ - 'getters' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataRedactionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}', - 'body' => 'data_redaction_settings', - 'placeholders' => [ - 'data_redaction_settings.name' => [ - 'getters' => [ - 'getDataRedactionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataRetentionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}', - 'body' => 'data_retention_settings', - 'placeholders' => [ - 'data_retention_settings.name' => [ - 'getters' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{data_stream.name=properties/*/dataStreams/*}', - 'body' => 'data_stream', - 'placeholders' => [ - 'data_stream.name' => [ - 'getters' => [ - 'getDataStream', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDisplayVideo360AdvertiserLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}', - 'body' => 'display_video_360_advertiser_link', - 'placeholders' => [ - 'display_video_360_advertiser_link.name' => [ - 'getters' => [ - 'getDisplayVideo360AdvertiserLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEnhancedMeasurementSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}', - 'body' => 'enhanced_measurement_settings', - 'placeholders' => [ - 'enhanced_measurement_settings.name' => [ - 'getters' => [ - 'getEnhancedMeasurementSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEventCreateRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}', - 'body' => 'event_create_rule', - 'placeholders' => [ - 'event_create_rule.name' => [ - 'getters' => [ - 'getEventCreateRule', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateExpandedDataSet' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}', - 'body' => 'expanded_data_set', - 'placeholders' => [ - 'expanded_data_set.name' => [ - 'getters' => [ - 'getExpandedDataSet', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGoogleAdsLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'google_ads_link.name' => [ - 'getters' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGoogleSignalsSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}', - 'body' => 'google_signals_settings', - 'placeholders' => [ - 'google_signals_settings.name' => [ - 'getters' => [ - 'getGoogleSignalsSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'measurement_protocol_secret.name' => [ - 'getters' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateProperty' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{property.name=properties/*}', - 'body' => 'property', - 'placeholders' => [ - 'property.name' => [ - 'getters' => [ - 'getProperty', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSKAdNetworkConversionValueSchema' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', - 'body' => 'skadnetwork_conversion_value_schema', - 'placeholders' => [ - 'skadnetwork_conversion_value_schema.name' => [ - 'getters' => [ - 'getSkadnetworkConversionValueSchema', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSearchAds360Link' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}', - 'body' => 'search_ads_360_link', - 'placeholders' => [ - 'search_ads_360_link.name' => [ - 'getters' => [ - 'getSearchAds360Link', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index 5905bce3b087..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,8578 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $response = $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - try { - $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $gapicClient->archiveAudience($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->archiveAudience($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $gapicClient->archiveCustomDimension($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->archiveCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $gapicClient->archiveCustomMetric($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->archiveCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchCreateAccessBindings($formattedParent, $requests); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchCreateAccessBindings($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $gapicClient->batchDeleteAccessBindings($formattedParent, $requests); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchDeleteAccessBindings($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - ]; - $response = $gapicClient->batchGetAccessBindings($formattedParent, $formattedNames); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - ]; - try { - $gapicClient->batchGetAccessBindings($formattedParent, $formattedNames); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchUpdateAccessBindings($formattedParent, $requests); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchUpdateAccessBindings($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name = 'name3373707'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $accessBinding = new AccessBinding(); - $response = $gapicClient->createAccessBinding($formattedParent, $accessBinding); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAccessBinding(); - $this->assertProtobufEquals($accessBinding, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $accessBinding = new AccessBinding(); - try { - $gapicClient->createAccessBinding($formattedParent, $accessBinding); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $adClientCode = 'adClientCode-1866307643'; - $expectedResponse = new AdSenseLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdClientCode($adClientCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $adsenseLink = new AdSenseLink(); - $response = $gapicClient->createAdSenseLink($formattedParent, $adsenseLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAdsenseLink(); - $this->assertProtobufEquals($adsenseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $adsenseLink = new AdSenseLink(); - try { - $gapicClient->createAdSenseLink($formattedParent, $adsenseLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $response = $gapicClient->createAudience($formattedParent, $audience); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAudience(); - $this->assertProtobufEquals($audience, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - try { - $gapicClient->createAudience($formattedParent, $audience); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $response = $gapicClient->createChannelGroup($formattedParent, $channelGroup); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getChannelGroup(); - $this->assertProtobufEquals($channelGroup, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - try { - $gapicClient->createChannelGroup($formattedParent, $channelGroup); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectedSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateConnectedSiteTagResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $connectedSiteTag = new ConnectedSiteTag(); - $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; - $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); - $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; - $connectedSiteTag->setTagId($connectedSiteTagTagId); - $response = $gapicClient->createConnectedSiteTag($connectedSiteTag); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag', $actualFuncCall); - $actualValue = $actualRequestObject->getConnectedSiteTag(); - $this->assertProtobufEquals($connectedSiteTag, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectedSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $connectedSiteTag = new ConnectedSiteTag(); - $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; - $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); - $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; - $connectedSiteTag->setTagId($connectedSiteTagTagId); - try { - $gapicClient->createConnectedSiteTag($connectedSiteTag); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $response = $gapicClient->createCustomDimension($formattedParent, $customDimension); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - try { - $gapicClient->createCustomDimension($formattedParent, $customDimension); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $response = $gapicClient->createCustomMetric($formattedParent, $customMetric); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - try { - $gapicClient->createCustomMetric($formattedParent, $customMetric); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $response = $gapicClient->createDataStream($formattedParent, $dataStream); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - try { - $gapicClient->createDataStream($formattedParent, $dataStream); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - $response = $gapicClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLink(); - $this->assertProtobufEquals($displayVideo360AdvertiserLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - try { - $gapicClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - $response = $gapicClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLinkProposal(); - $this->assertProtobufEquals($displayVideo360AdvertiserLinkProposal, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - try { - $gapicClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $response = $gapicClient->createEventCreateRule($formattedParent, $eventCreateRule); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventCreateRule(); - $this->assertProtobufEquals($eventCreateRule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - try { - $gapicClient->createEventCreateRule($formattedParent, $eventCreateRule); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $response = $gapicClient->createExpandedDataSet($formattedParent, $expandedDataSet); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getExpandedDataSet(); - $this->assertProtobufEquals($expandedDataSet, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - try { - $gapicClient->createExpandedDataSet($formattedParent, $expandedDataSet); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $response = $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - try { - $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $response = $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - try { - $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $response = $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - try { - $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $response = $gapicClient->createProperty($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - try { - $gapicClient->createProperty($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateRollupPropertyResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $rollupProperty = new Property(); - $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; - $rollupProperty->setDisplayName($rollupPropertyDisplayName); - $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; - $rollupProperty->setTimeZone($rollupPropertyTimeZone); - $response = $gapicClient->createRollupProperty($rollupProperty); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getRollupProperty(); - $this->assertProtobufEquals($rollupProperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $rollupProperty = new Property(); - $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; - $rollupProperty->setDisplayName($rollupPropertyDisplayName); - $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; - $rollupProperty->setTimeZone($rollupPropertyTimeZone); - try { - $gapicClient->createRollupProperty($rollupProperty); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $sourceProperty = 'sourceProperty2069271929'; - $expectedResponse = new RollupPropertySourceLink(); - $expectedResponse->setName($name); - $expectedResponse->setSourceProperty($sourceProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $rollupPropertySourceLink = new RollupPropertySourceLink(); - $response = $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRollupPropertySourceLink(); - $this->assertProtobufEquals($rollupPropertySourceLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $rollupPropertySourceLink = new RollupPropertySourceLink(); - try { - $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $response = $gapicClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); - $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - try { - $gapicClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $searchAds360Link = new SearchAds360Link(); - $response = $gapicClient->createSearchAds360Link($formattedParent, $searchAds360Link); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSearchAds360Link(); - $this->assertProtobufEquals($searchAds360Link, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $searchAds360Link = new SearchAds360Link(); - try { - $gapicClient->createSearchAds360Link($formattedParent, $searchAds360Link); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateSubpropertyResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subproperty = new Property(); - $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; - $subproperty->setDisplayName($subpropertyDisplayName); - $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; - $subproperty->setTimeZone($subpropertyTimeZone); - $response = $gapicClient->createSubproperty($formattedParent, $subproperty); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSubproperty(); - $this->assertProtobufEquals($subproperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subproperty = new Property(); - $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; - $subproperty->setDisplayName($subpropertyDisplayName); - $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; - $subproperty->setTimeZone($subpropertyTimeZone); - try { - $gapicClient->createSubproperty($formattedParent, $subproperty); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $response = $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSubpropertyEventFilter(); - $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - try { - $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $gapicClient->deleteAccessBinding($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - try { - $gapicClient->deleteAccessBinding($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $gapicClient->deleteAccount($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->deleteAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $gapicClient->deleteAdSenseLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - try { - $gapicClient->deleteAdSenseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $gapicClient->deleteChannelGroup($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - try { - $gapicClient->deleteChannelGroup($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectedSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $gapicClient->deleteConnectedSiteTag(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectedSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteConnectedSiteTag(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $gapicClient->deleteConversionEvent($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->deleteConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $gapicClient->deleteDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->deleteDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $gapicClient->deleteDisplayVideo360AdvertiserLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - try { - $gapicClient->deleteDisplayVideo360AdvertiserLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $gapicClient->deleteEventCreateRule($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - try { - $gapicClient->deleteEventCreateRule($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $gapicClient->deleteExpandedDataSet($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - try { - $gapicClient->deleteExpandedDataSet($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $gapicClient->deleteFirebaseLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - try { - $gapicClient->deleteFirebaseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $gapicClient->deleteGoogleAdsLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - try { - $gapicClient->deleteGoogleAdsLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->deleteProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->deleteProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $gapicClient->deleteRollupPropertySourceLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - try { - $gapicClient->deleteRollupPropertySourceLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $gapicClient->deleteSKAdNetworkConversionValueSchema($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - try { - $gapicClient->deleteSKAdNetworkConversionValueSchema($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $gapicClient->deleteSearchAds360Link($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - try { - $gapicClient->deleteSearchAds360Link($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $gapicClient->deleteSubpropertyEventFilter($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - try { - $gapicClient->deleteSubpropertyEventFilter($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchAutomatedGa4ConfigurationOptOutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $optOut = true; - $expectedResponse = new FetchAutomatedGa4ConfigurationOptOutResponse(); - $expectedResponse->setOptOut($optOut); - $transport->addResponse($expectedResponse); - // Mock request - $property = 'property-993141291'; - $response = $gapicClient->fetchAutomatedGa4ConfigurationOptOut($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchAutomatedGa4ConfigurationOptOutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = 'property-993141291'; - try { - $gapicClient->fetchAutomatedGa4ConfigurationOptOut($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchConnectedGa4PropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $property2 = 'property2-926037944'; - $expectedResponse = new FetchConnectedGa4PropertyResponse(); - $expectedResponse->setProperty($property2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->fetchConnectedGa4Property($formattedProperty); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchConnectedGa4PropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->fetchConnectedGa4Property($formattedProperty); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name2 = 'name2-1052831874'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $response = $gapicClient->getAccessBinding($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - try { - $gapicClient->getAccessBinding($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->getAccount($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->getAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adClientCode = 'adClientCode-1866307643'; - $expectedResponse = new AdSenseLink(); - $expectedResponse->setName($name2); - $expectedResponse->setAdClientCode($adClientCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $response = $gapicClient->getAdSenseLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - try { - $gapicClient->getAdSenseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AttributionSettings(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); - $response = $gapicClient->getAttributionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); - try { - $gapicClient->getAttributionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - $response = $gapicClient->getAudience($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - try { - $gapicClient->getAudience($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name2); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $response = $gapicClient->getBigQueryLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - try { - $gapicClient->getBigQueryLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $response = $gapicClient->getChannelGroup($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - try { - $gapicClient->getChannelGroup($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $response = $gapicClient->getConversionEvent($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->getConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $response = $gapicClient->getCustomDimension($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->getCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $response = $gapicClient->getCustomMetric($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->getCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRedactionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $emailRedactionEnabled = true; - $queryParameterRedactionEnabled = true; - $expectedResponse = new DataRedactionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); - $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getDataRedactionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRedactionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getDataRedactionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $response = $gapicClient->getDataRetentionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - try { - $gapicClient->getDataRetentionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $response = $gapicClient->getDataSharingSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - try { - $gapicClient->getDataSharingSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getDataStream($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $response = $gapicClient->getDisplayVideo360AdvertiserLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - try { - $gapicClient->getDisplayVideo360AdvertiserLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $gapicClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnhancedMeasurementSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $streamEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageChangesEnabled = false; - $formInteractionsEnabled = true; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getEnhancedMeasurementSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnhancedMeasurementSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getEnhancedMeasurementSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name2); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $response = $gapicClient->getEventCreateRule($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - try { - $gapicClient->getEventCreateRule($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $response = $gapicClient->getExpandedDataSet($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - try { - $gapicClient->getExpandedDataSet($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlobalSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $snippet = 'snippet-2061635299'; - $expectedResponse = new GlobalSiteTag(); - $expectedResponse->setName($name2); - $expectedResponse->setSnippet($snippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getGlobalSiteTag($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlobalSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getGlobalSiteTag($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleSignalsSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new GoogleSignalsSettings(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); - $response = $gapicClient->getGoogleSignalsSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleSignalsSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); - try { - $gapicClient->getGoogleSignalsSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $response = $gapicClient->getMeasurementProtocolSecret($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->getMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->getProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->getProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sourceProperty = 'sourceProperty2069271929'; - $expectedResponse = new RollupPropertySourceLink(); - $expectedResponse->setName($name2); - $expectedResponse->setSourceProperty($sourceProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $response = $gapicClient->getRollupPropertySourceLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - try { - $gapicClient->getRollupPropertySourceLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name2); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $response = $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - try { - $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $response = $gapicClient->getSearchAds360Link($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - try { - $gapicClient->getSearchAds360Link($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accessBindingsElement = new AccessBinding(); - $accessBindings = [ - $accessBindingsElement, - ]; - $expectedResponse = new ListAccessBindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccessBindings($accessBindings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->listAccessBindings($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccessBindings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->listAccessBindings($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccountSummaries(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccountSummaries(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccounts(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccounts(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdSenseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $adsenseLinksElement = new AdSenseLink(); - $adsenseLinks = [ - $adsenseLinksElement, - ]; - $expectedResponse = new ListAdSenseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAdsenseLinks($adsenseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listAdSenseLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdsenseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdSenseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listAdSenseLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudiencesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audiencesElement = new Audience(); - $audiences = [ - $audiencesElement, - ]; - $expectedResponse = new ListAudiencesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudiences($audiences); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listAudiences($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudiences()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudiencesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listAudiences($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBigQueryLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $bigqueryLinksElement = new BigQueryLink(); - $bigqueryLinks = [ - $bigqueryLinksElement, - ]; - $expectedResponse = new ListBigQueryLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBigqueryLinks($bigqueryLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listBigQueryLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBigqueryLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBigQueryLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listBigQueryLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $channelGroupsElement = new ChannelGroup(); - $channelGroups = [ - $channelGroupsElement, - ]; - $expectedResponse = new ListChannelGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChannelGroups($channelGroups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listChannelGroups($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChannelGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelGroupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listChannelGroups($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectedSiteTagsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListConnectedSiteTagsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listConnectedSiteTags(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectedSiteTagsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listConnectedSiteTags(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listConversionEvents($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listConversionEvents($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomDimensions($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomDimensions($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomMetrics($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomMetrics($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDataStreams($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinkProposalsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $displayVideo360AdvertiserLinkProposalsElement = new DisplayVideo360AdvertiserLinkProposal(); - $displayVideo360AdvertiserLinkProposals = [ - $displayVideo360AdvertiserLinkProposalsElement, - ]; - $expectedResponse = new ListDisplayVideo360AdvertiserLinkProposalsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDisplayVideo360AdvertiserLinkProposals($displayVideo360AdvertiserLinkProposals); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinkProposals()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinkProposalsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $displayVideo360AdvertiserLinksElement = new DisplayVideo360AdvertiserLink(); - $displayVideo360AdvertiserLinks = [ - $displayVideo360AdvertiserLinksElement, - ]; - $expectedResponse = new ListDisplayVideo360AdvertiserLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDisplayVideo360AdvertiserLinks($displayVideo360AdvertiserLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDisplayVideo360AdvertiserLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDisplayVideo360AdvertiserLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventCreateRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $eventCreateRulesElement = new EventCreateRule(); - $eventCreateRules = [ - $eventCreateRulesElement, - ]; - $expectedResponse = new ListEventCreateRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEventCreateRules($eventCreateRules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listEventCreateRules($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEventCreateRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventCreateRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listEventCreateRules($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExpandedDataSetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $expandedDataSetsElement = new ExpandedDataSet(); - $expandedDataSets = [ - $expandedDataSetsElement, - ]; - $expectedResponse = new ListExpandedDataSetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setExpandedDataSets($expandedDataSets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listExpandedDataSets($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getExpandedDataSets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExpandedDataSetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listExpandedDataSets($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listFirebaseLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listFirebaseLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listGoogleAdsLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listGoogleAdsLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listMeasurementProtocolSecrets($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listMeasurementProtocolSecrets($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $response = $gapicClient->listProperties($filter); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - try { - $gapicClient->listProperties($filter); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRollupPropertySourceLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rollupPropertySourceLinksElement = new RollupPropertySourceLink(); - $rollupPropertySourceLinks = [ - $rollupPropertySourceLinksElement, - ]; - $expectedResponse = new ListRollupPropertySourceLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRollupPropertySourceLinks($rollupPropertySourceLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listRollupPropertySourceLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRollupPropertySourceLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRollupPropertySourceLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listRollupPropertySourceLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSKAdNetworkConversionValueSchemasTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemas = [ - $skadnetworkConversionValueSchemasElement, - ]; - $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSKAdNetworkConversionValueSchemasExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSearchAds360LinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $searchAds360LinksElement = new SearchAds360Link(); - $searchAds360Links = [ - $searchAds360LinksElement, - ]; - $expectedResponse = new ListSearchAds360LinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchAds360Links($searchAds360Links); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listSearchAds360Links($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSearchAds360LinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listSearchAds360Links($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $response = $gapicClient->provisionAccountTicket(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->provisionAccountTicket(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runAccessReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runAccessReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->searchChangeHistoryEvents($formattedAccount); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->searchChangeHistoryEvents($formattedAccount); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAutomatedGa4ConfigurationOptOutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SetAutomatedGa4ConfigurationOptOutResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $property = 'property-993141291'; - $response = $gapicClient->setAutomatedGa4ConfigurationOptOut($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAutomatedGa4ConfigurationOptOutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = 'property-993141291'; - try { - $gapicClient->setAutomatedGa4ConfigurationOptOut($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name = 'name3373707'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $accessBinding = new AccessBinding(); - $response = $gapicClient->updateAccessBinding($accessBinding); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getAccessBinding(); - $this->assertProtobufEquals($accessBinding, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $accessBinding = new AccessBinding(); - try { - $gapicClient->updateAccessBinding($accessBinding); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAccount($account, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAccount($account, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new AttributionSettings(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $attributionSettings = new AttributionSettings(); - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAttributionSettings($attributionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getAttributionSettings(); - $this->assertProtobufEquals($attributionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $attributionSettings = new AttributionSettings(); - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAttributionSettings($attributionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAudience($audience, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getAudience(); - $this->assertProtobufEquals($audience, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAudience($audience, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $transport->addResponse($expectedResponse); - // Mock request - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - $response = $gapicClient->updateChannelGroup($channelGroup, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getChannelGroup(); - $this->assertProtobufEquals($channelGroup, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - try { - $gapicClient->updateChannelGroup($channelGroup, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomDimension($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomDimension($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomMetric($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomMetric($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRedactionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $emailRedactionEnabled = true; - $queryParameterRedactionEnabled = true; - $expectedResponse = new DataRedactionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); - $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $dataRedactionSettings = new DataRedactionSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRedactionSettings(); - $this->assertProtobufEquals($dataRedactionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRedactionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRedactionSettings = new DataRedactionSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataStream($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataStream($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateDisplayVideo360AdvertiserLink($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateDisplayVideo360AdvertiserLink($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEnhancedMeasurementSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $streamEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageChangesEnabled = false; - $formInteractionsEnabled = true; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); - $expectedResponse->setName($name); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); - $transport->addResponse($expectedResponse); - // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - $response = $gapicClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getEnhancedMeasurementSettings(); - $this->assertProtobufEquals($enhancedMeasurementSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEnhancedMeasurementSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - try { - $gapicClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - $response = $gapicClient->updateEventCreateRule($eventCreateRule, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getEventCreateRule(); - $this->assertProtobufEquals($eventCreateRule, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - try { - $gapicClient->updateEventCreateRule($eventCreateRule, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateExpandedDataSet($expandedDataSet, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getExpandedDataSet(); - $this->assertProtobufEquals($expandedDataSet, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateExpandedDataSet($expandedDataSet, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateGoogleAdsLink($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateGoogleAdsLink($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleSignalsSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new GoogleSignalsSettings(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $googleSignalsSettings = new GoogleSignalsSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getGoogleSignalsSettings(); - $this->assertProtobufEquals($googleSignalsSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleSignalsSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $googleSignalsSettings = new GoogleSignalsSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $response = $gapicClient->updateProperty($property, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - try { - $gapicClient->updateProperty($property, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - $response = $gapicClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); - $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - try { - $gapicClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateSearchAds360Link($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateSearchAds360Link($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php deleted file mode 100644 index bc7f58527609d07206bda550081c5be34c976325..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3919 zcmbtXUvnB&6fY2BI1oy2Z6?O)%ywI+>8Qj||B^;$30p!XK!Mb%%sBdnWmPI|!V07#i4f4{hIzDBnX17c|i`iq}Wla<< z76;T18RcI#?*z|sIJ>WGN*#;Eb4ux#mtKVi;}(3=B14SxyE-u=`L^w4^} z@Y(z5t<6x7U%L&zZNT=zZX(y^m3-*gyzp#ZdRDyym!&Vt_J}$jvPjk-+nXK??&S5D z65C9vHz6ZM(bvqj$W=&>#ILB(MAv+@@s)ojn-zeEmT#bp5;fBY5U8jy8d z-=Lww>j?q+!At3g`juhTlnK`tRID!vytfy?+rL!GLDqF>L@o6gHlEK5c>w8|2_EvC zKw@6b2KDdwG*+ZD5q#Cdpm7F9V3Op0doGjO;-*AGdOnA&?HEJ!z;h&CW#$^jTa~Twc$scfx4nmMsNS>I(30)Vt$}5CrdercE z#qjMDDk6SG{W%7y*`*CwJJ33N`$p%>rfwY8+f9A1dcUfdbC*a8lKNw9uak?B%aAVV zm1@0hd{OP}=i>NSO0SoLV}fL0Wv@~1Xeg0e;?nmIYc->#SMYs7ADoH)#USu`pj(MNOnk33lws3DQQqRET8&eEY zjIx?8{9k?tFpsz+1l2R7H{e>MskgLFwNbx->4%3}4Vgw_YkIqFboRA6^1KElJQ|Ib zp$oAD*5*v5rE49%B_)>#!biW%gp=y8u_;++qL+MzvCG_%A;X3@ki`rnyRhQB!F5?I z7UJgtWTJeLYmml1`{DZ$g%Vgx)*#b!aqys#mtt5v)97nVGoiiuPXbnDKr~p7veGH3 z!Ln?9K|3nW6$ioXyzHOB36*F;Dr~qS!_tM_g#g3eJ;ThvQV+)(nV1{5VD-$S7xwOr ze`An)7K&#{s9dBFk*~23aW-U);U3BsDzBtk#3w3iIX(EHkD75vXJ4PmbM(7s#|bP`Z{D{ zpPFdr^N7F+Dk#B{;XwMr;plg)j}pA)KEW|0H)A$ZnbL*3bMY7|C@KP}z^aT%8MPip z67S&e&4nd(7eMM;@cJ_h$OpnEAjd%!u1K-S-C3iMGJhl>ErlLVT;C-7koDbfv1=Gu z1abO14f1C`B?U$s_k)Q?s&F}ibc|a}kU5J(9l%w~b*u?v)bVl0`EEiz-wTGg#o@YL zP(8{{&_K$V%cQNiGkrrXU)U|Qm1D-@@Q3hb#PD;la^6@NR{ePD%_zw@r6V&Q4mmyH zs3f@pDMm*oE?Uk&5S}dk1UGQKd~uYOf>4nQpV+{fv9C(O3_oy(xG3aZHrN_a2Tk(b vE%`5VY~v<6T_w-#q&s4bIa(ItcW;Ng(mQemi)?Jq-PVMpT+E)rQ-J>f*$d)W diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php deleted file mode 100644 index bc598f5e8ab0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php +++ /dev/null @@ -1,318 +0,0 @@ -internalAddGeneratedFile( - ' -¶š -3google/analytics/admin/v1beta/analytics_admin.protogoogle.analytics.admin.v1beta-google/analytics/admin/v1beta/resources.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"ž -RunAccessReportRequest -entity ( B - -dimensions ( 2..google.analytics.admin.v1beta.AccessDimension< -metrics ( 2+.google.analytics.admin.v1beta.AccessMetricC - date_ranges ( 2..google.analytics.admin.v1beta.AccessDateRangeO -dimension_filter ( 25.google.analytics.admin.v1beta.AccessFilterExpressionL - metric_filter ( 25.google.analytics.admin.v1beta.AccessFilterExpression -offset ( -limit ( - time_zone ( ? - order_bys - ( 2,.google.analytics.admin.v1beta.AccessOrderBy -return_entity_quota ("» -RunAccessReportResponseO -dimension_headers ( 24.google.analytics.admin.v1beta.AccessDimensionHeaderI -metric_headers ( 21.google.analytics.admin.v1beta.AccessMetricHeader6 -rows ( 2(.google.analytics.admin.v1beta.AccessRow - row_count (9 -quota ( 2*.google.analytics.admin.v1beta.AccessQuota"P -GetAccountRequest; -name ( B-àAúA\' -%analyticsadmin.googleapis.com/Account"R -ListAccountsRequest - page_size ( - -page_token (  - show_deleted ("i -ListAccountsResponse8 -accounts ( 2&.google.analytics.admin.v1beta.Account -next_page_token ( "S -DeleteAccountRequest; -name ( B-àAúA\' -%analyticsadmin.googleapis.com/Account"Š -UpdateAccountRequest< -account ( 2&.google.analytics.admin.v1beta.AccountBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"n -ProvisionAccountTicketRequest7 -account ( 2&.google.analytics.admin.v1beta.Account - redirect_uri ( "; -ProvisionAccountTicketResponse -account_ticket_id ( "R -GetPropertyRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/Property"i -ListPropertiesRequest -filter ( BàA - page_size ( - -page_token (  - show_deleted ("n -ListPropertiesResponse; - -properties ( 2\'.google.analytics.admin.v1beta.Property -next_page_token ( " -UpdatePropertyRequest> -property ( 2\'.google.analytics.admin.v1beta.PropertyBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"W -CreatePropertyRequest> -property ( 2\'.google.analytics.admin.v1beta.PropertyBàA"U -DeletePropertyRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/Property"¨ -CreateFirebaseLinkRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkG - firebase_link ( 2+.google.analytics.admin.v1beta.FirebaseLinkBàA"] -DeleteFirebaseLinkRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/FirebaseLink"… -ListFirebaseLinksRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLink - page_size ( - -page_token ( "y -ListFirebaseLinksResponseC -firebase_links ( 2+.google.analytics.admin.v1beta.FirebaseLink -next_page_token ( "­ -CreateGoogleAdsLinkRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLinkJ -google_ads_link ( 2,.google.analytics.admin.v1beta.GoogleAdsLinkBàA"™ -UpdateGoogleAdsLinkRequestE -google_ads_link ( 2,.google.analytics.admin.v1beta.GoogleAdsLink4 - update_mask ( 2.google.protobuf.FieldMaskBàA"_ -DeleteGoogleAdsLinkRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/GoogleAdsLink"‡ -ListGoogleAdsLinksRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/GoogleAdsLink - page_size ( - -page_token ( "} -ListGoogleAdsLinksResponseF -google_ads_links ( 2,.google.analytics.admin.v1beta.GoogleAdsLink -next_page_token ( "h -GetDataSharingSettingsRequestG -name ( B9àAúA3 -1analyticsadmin.googleapis.com/DataSharingSettings"D -ListAccountSummariesRequest - page_size ( - -page_token ( " -ListAccountSummariesResponseH -account_summaries ( 2-.google.analytics.admin.v1beta.AccountSummary -next_page_token ( "† -$AcknowledgeUserDataCollectionRequest@ -property ( B.àAúA( -&analyticsadmin.googleapis.com/Property -acknowledgement ( BàA"\' -%AcknowledgeUserDataCollectionResponse" - SearchChangeHistoryEventsRequest> -account ( B-àAúA\' -%analyticsadmin.googleapis.com/Account@ -property ( B.àAúA( -&analyticsadmin.googleapis.com/PropertyT - resource_type (28.google.analytics.admin.v1beta.ChangeHistoryResourceTypeBàA> -action (2).google.analytics.admin.v1beta.ActionTypeBàA - actor_email ( BàA= -earliest_change_time ( 2.google.protobuf.TimestampBàA; -latest_change_time ( 2.google.protobuf.TimestampBàA - page_size (BàA - -page_token ( BàA"Ž -!SearchChangeHistoryEventsResponseP -change_history_events ( 21.google.analytics.admin.v1beta.ChangeHistoryEvent -next_page_token ( "t -#GetMeasurementProtocolSecretRequestM -name ( B?àAúA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret"Ý -&CreateMeasurementProtocolSecretRequestO -parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecretb -measurement_protocol_secret ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecretBàA"w -&DeleteMeasurementProtocolSecretRequestM -name ( B?àAúA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret" -&UpdateMeasurementProtocolSecretRequestb -measurement_protocol_secret ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecretBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"Ÿ -%ListMeasurementProtocolSecretsRequestO -parent ( B?àAúA97analyticsadmin.googleapis.com/MeasurementProtocolSecret - page_size ( - -page_token ( "¡ -&ListMeasurementProtocolSecretsResponse^ -measurement_protocol_secrets ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecret -next_page_token ( "´ -CreateConversionEventRequestM -conversion_event ( 2..google.analytics.admin.v1beta.ConversionEventBàAE -parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent"£ -UpdateConversionEventRequestM -conversion_event ( 2..google.analytics.admin.v1beta.ConversionEventBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"` -GetConversionEventRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/ConversionEvent"c -DeleteConversionEventRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/ConversionEvent"‹ -ListConversionEventsRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/ConversionEvent - page_size ( - -page_token ( "‚ -ListConversionEventsResponseI -conversion_events ( 2..google.analytics.admin.v1beta.ConversionEvent -next_page_token ( "´ -CreateCustomDimensionRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimensionM -custom_dimension ( 2..google.analytics.admin.v1beta.CustomDimensionBàA"ž -UpdateCustomDimensionRequestH -custom_dimension ( 2..google.analytics.admin.v1beta.CustomDimension4 - update_mask ( 2.google.protobuf.FieldMaskBàA"‹ -ListCustomDimensionsRequestE -parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimension - page_size ( - -page_token ( "‚ -ListCustomDimensionsResponseI -custom_dimensions ( 2..google.analytics.admin.v1beta.CustomDimension -next_page_token ( "d -ArchiveCustomDimensionRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/CustomDimension"` -GetCustomDimensionRequestC -name ( B5àAúA/ --analyticsadmin.googleapis.com/CustomDimension"¨ -CreateCustomMetricRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetricG - custom_metric ( 2+.google.analytics.admin.v1beta.CustomMetricBàA"• -UpdateCustomMetricRequestB - custom_metric ( 2+.google.analytics.admin.v1beta.CustomMetric4 - update_mask ( 2.google.protobuf.FieldMaskBàA"… -ListCustomMetricsRequestB -parent ( B2àAúA,*analyticsadmin.googleapis.com/CustomMetric - page_size ( - -page_token ( "y -ListCustomMetricsResponseC -custom_metrics ( 2+.google.analytics.admin.v1beta.CustomMetric -next_page_token ( "^ -ArchiveCustomMetricRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/CustomMetric"Z -GetCustomMetricRequest@ -name ( B2àAúA, -*analyticsadmin.googleapis.com/CustomMetric"l -GetDataRetentionSettingsRequestI -name ( B;àAúA5 -3analyticsadmin.googleapis.com/DataRetentionSettings"¶ -"UpdateDataRetentionSettingsRequestZ -data_retention_settings ( 24.google.analytics.admin.v1beta.DataRetentionSettingsBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"  -CreateDataStreamRequest@ -parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStreamC - data_stream ( 2).google.analytics.admin.v1beta.DataStreamBàA"Y -DeleteDataStreamRequest> -name ( B0àAúA* -(analyticsadmin.googleapis.com/DataStream" -UpdateDataStreamRequest> - data_stream ( 2).google.analytics.admin.v1beta.DataStream4 - update_mask ( 2.google.protobuf.FieldMaskBàA" -ListDataStreamsRequest@ -parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStream - page_size ( - -page_token ( "s -ListDataStreamsResponse? - data_streams ( 2).google.analytics.admin.v1beta.DataStream -next_page_token ( "V -GetDataStreamRequest> -name ( B0àAúA* -(analyticsadmin.googleapis.com/DataStream2ÛP -AnalyticsAdminService - -GetAccount0.google.analytics.admin.v1beta.GetAccountRequest&.google.analytics.admin.v1beta.Account"(‚Óä“/v1beta/{name=accounts/*}ÚAname‘ - ListAccounts2.google.analytics.admin.v1beta.ListAccountsRequest3.google.analytics.admin.v1beta.ListAccountsResponse"‚Óä“/v1beta/accounts† - DeleteAccount3.google.analytics.admin.v1beta.DeleteAccountRequest.google.protobuf.Empty"(‚Óä“*/v1beta/{name=accounts/*}ÚAname¶ - UpdateAccount3.google.analytics.admin.v1beta.UpdateAccountRequest&.google.analytics.admin.v1beta.Account"H‚Óä“,2!/v1beta/{account.name=accounts/*}:accountÚAaccount,update_maskÉ -ProvisionAccountTicket<.google.analytics.admin.v1beta.ProvisionAccountTicketRequest=.google.analytics.admin.v1beta.ProvisionAccountTicketResponse"2‚Óä“,"\'/v1beta/accounts:provisionAccountTicket:*± -ListAccountSummaries:.google.analytics.admin.v1beta.ListAccountSummariesRequest;.google.analytics.admin.v1beta.ListAccountSummariesResponse" ‚Óä“/v1beta/accountSummaries• - GetProperty1.google.analytics.admin.v1beta.GetPropertyRequest\'.google.analytics.admin.v1beta.Property"*‚Óä“/v1beta/{name=properties/*}ÚAname™ -ListProperties4.google.analytics.admin.v1beta.ListPropertiesRequest5.google.analytics.admin.v1beta.ListPropertiesResponse"‚Óä“/v1beta/properties  -CreateProperty4.google.analytics.admin.v1beta.CreatePropertyRequest\'.google.analytics.admin.v1beta.Property"/‚Óä“"/v1beta/properties:propertyÚAproperty› -DeleteProperty4.google.analytics.admin.v1beta.DeletePropertyRequest\'.google.analytics.admin.v1beta.Property"*‚Óä“*/v1beta/{name=properties/*}ÚAname¾ -UpdateProperty4.google.analytics.admin.v1beta.UpdatePropertyRequest\'.google.analytics.admin.v1beta.Property"M‚Óä“02$/v1beta/{property.name=properties/*}:propertyÚAproperty,update_maskÖ -CreateFirebaseLink8.google.analytics.admin.v1beta.CreateFirebaseLinkRequest+.google.analytics.admin.v1beta.FirebaseLink"Y‚Óä“<"+/v1beta/{parent=properties/*}/firebaseLinks: firebase_linkÚAparent,firebase_link¢ -DeleteFirebaseLink8.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.google.protobuf.Empty":‚Óä“-*+/v1beta/{name=properties/*/firebaseLinks/*}ÚAnameÄ -ListFirebaseLinks7.google.analytics.admin.v1beta.ListFirebaseLinksRequest8.google.analytics.admin.v1beta.ListFirebaseLinksResponse"<‚Óä“-+/v1beta/{parent=properties/*}/firebaseLinksÚAparentÞ -CreateGoogleAdsLink9.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest,.google.analytics.admin.v1beta.GoogleAdsLink"^‚Óä“?",/v1beta/{parent=properties/*}/googleAdsLinks:google_ads_linkÚAparent,google_ads_linkó -UpdateGoogleAdsLink9.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest,.google.analytics.admin.v1beta.GoogleAdsLink"s‚Óä“O2.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest4.google.analytics.admin.v1beta.DataRetentionSettings"@‚Óä“31/v1beta/{name=properties/*/dataRetentionSettings}ÚAname© -UpdateDataRetentionSettingsA.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest4.google.analytics.admin.v1beta.DataRetentionSettings"‚Óä“d2I/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settingsÚA#data_retention_settings,update_maskÊ -CreateDataStream6.google.analytics.admin.v1beta.CreateDataStreamRequest).google.analytics.admin.v1beta.DataStream"S‚Óä“8")/v1beta/{parent=properties/*}/dataStreams: data_streamÚAparent,data_streamœ -DeleteDataStream6.google.analytics.admin.v1beta.DeleteDataStreamRequest.google.protobuf.Empty"8‚Óä“+*)/v1beta/{name=properties/*/dataStreams/*}ÚAnameÛ -UpdateDataStream6.google.analytics.admin.v1beta.UpdateDataStreamRequest).google.analytics.admin.v1beta.DataStream"d‚Óä“D25/v1beta/{data_stream.name=properties/*/dataStreams/*}: data_streamÚAdata_stream,update_mask¼ -ListDataStreams5.google.analytics.admin.v1beta.ListDataStreamsRequest6.google.analytics.admin.v1beta.ListDataStreamsResponse":‚Óä“+)/v1beta/{parent=properties/*}/dataStreamsÚAparent© - GetDataStream3.google.analytics.admin.v1beta.GetDataStreamRequest).google.analytics.admin.v1beta.DataStream"8‚Óä“+)/v1beta/{name=properties/*/dataStreams/*}ÚAnameì -RunAccessReport5.google.analytics.admin.v1beta.RunAccessReportRequest6.google.analytics.admin.v1beta.RunAccessReportResponse"j‚Óä“d"-/v1beta/{entity=properties/*}:runAccessReport:*Z0"+/v1beta/{entity=accounts/*}:runAccessReport:*„ÊAanalyticsadmin.googleapis.comÒAahttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.readonlyB~ -!com.google.analytics.admin.v1betaBAnalyticsAdminProtoPZBgoogle.golang.org/genproto/googleapis/analytics/admin/v1beta;adminbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php deleted file mode 100644 index 7d44f3171098bfd170b12ed784ffcee89d8015c7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9580 zcmcgyO>^7E8IHcCl|;d?WYcmI({y6XvQ0H~CTZw82}nXDY?9yrpj4%rVjvQdkWeHC zAnhs{U3%)NryhFhrH9Vs2edQosr?D#0$69W)-K;k2v4hUxq3y=1&6Ac>x7|c6mQ`aV z)riSi#kh;9UbEv??Nscj**vP-TUNuWpSGQV07G@Q0$)t#@gqvx?htM1vDeR1qzr%`P?%|?t)P#aZy<6(@;q+{P}HG#nM zSfEy!f&xJHl}6ikq2qqm_NuPaYB$|7hNe zCYakMxZAGZ3Z%81t_yPyUcci%V*U)L*lGtT_ygV@9`M@VDt{jTxNFB07s3^K9+Zr{~f$@_rXd z4kXvtYB^p4Ibt@4_&QZ(pHP*;-wc|pmD%PM@ zou|)4;Op7$E2nCkb^DcFkCL(Q)%lzPox&V};>+EGyYAw6NMV-!vzFufuDdketWU|D z??BOIx{LG^Sok|>|G}7^m`a~ZpOO1r-wE~Fz=gy$-vJ#PjvF}RS^Qsfgk({_^fn^) zMAXR2Yx}^24RK}C!p1DPnEZHz1$#0QyY>N>M(^d{5-oDmYSi4OQ!|k;2V_&rE+#)6 zU$(>rNv+nv5_{yj)ATNgr_QmMOpPyIX?nw=L-JdROtT=Si7k@+;rQZvAhC#^g}rIu ztPbTc8r2KKp+08N4uv`m&(Wd2Zj$8ztBJQs1&wxH^t|`iWbik-SywMlk}M zUiguAmR=@{eE}W++XPwK_U%`28efGKER;#C@}*rJNd9oH{=z<9^-0yvC5vocy}bc_ zo`!EQ@Hwh8wisNRbzGmte?3K(bBu#aHSe-*MX>=CsOE|7QZHb>$qVZpB37-2c>*=z zZPmI1xA&qn=r~0XKO?uTnrBkN*93odz6N6lwXhr3K^hJ+@q@airVrHvaR%{O%FC=kZbIYo~o|`m(%EtJQSdU9@TV&WlO188#T_ zEa#|U*G$i<+g^7LHTJytguEX*r*S$ooS9yHOx_C{4j^isYP%<#ntxurM{W;{ZsI)Z z_69M+$)o*)t8ouQ>;6UF$zy&H)%dR_NkrllRqvdfSnjE~)X&kyXFcA*)8OVCkd8}= z)e9o}&H)_Rs^A$2pD9$I#E1e}_L;G-ZK`rEY2@+M01a(0?qkD6FpA^f@wGWUi~n(g ztPCwBJ}2{m+J1q1^qsUZHm4dc+zd`JJxung=e-%(7b9KnP5p3zp15umdj%Q$U_B1q zMwo}5!G?J{w>0DFc;vBp<|~?*dRcHP^}C64>9-T)0}BN>Bx zLLTXRW$s6o{bpu7%KjV5UUDV z{D{V_wlTtaB|3q!IWbCv4h|tE7s1jls~-#W30K5351l&tFMhq47c*qee*&6KVF}V>4GY{;;CeAus zbLKva$@~aWAqpl2?gdR8@rbN-SF#R)R z9pSL^tS_U`m|INlKNv9?j?X#+n4Kld1GL6Je2wZ8^s^^O$&r=3GY=NnB{v!CMM8w0 zRAJ928qpPIh!02Xo)%p#m>iH42>u)gnjW2wicHw3&|wvvoucz^rAaRm#BLuqd9N&z z%#A>BXkUrmb%yo|ArI|xh@+HyBHkj=%La&>%YAGX|Wmz-j9l2!SAht?`?mb=BsT5%{b#g9!NuFF?+#-{7XK49H9Kx((aUPkAPO_}yCi}>8+xcT*Y%kjr_)K=^BXSZ-BZgXDhtlqypIpz zyxcHwMT5+ERpb?B*GTgDD9a71ndmC4Qz7Xti!JF67s5;LiuQ7;^+7syOtzj-oU(Pd4T6!A+j)>%nPVr}}?0-4{gY&y*d!-|?;ZY%D8sbrXHLvH}s*EhfcM;1={O z5*gXm>)$^FQWypu!e+F9-bY8BCJX%H^l2V^CX)R8O*94t@Fnr3Sd)yUia&t65ABDx zXo|9=S2P(uWgsUg^iO|_W{J$}2Kq6QmPJayRi>h8aw)UN-D+Ew4PgqDaTaL>nMRlf z?Itgkg6dz-i15gwQjm3F7Hnz>KMRU3BQa%lVNP5mbHT+ty(lWBih;2UbXs1mKq85M zL>BvSLyIa3;hK^$uMU8?Nmj$)5bu+?CZj8*WDGe=^C6WL(w3}@Fx}Jr?B0dVQY7~s_jsps``Rz2Ct;266F@!U8RTC3#mDuF(-{sQ~;yh>As;@UW;L()(puEf@Gwx|&gBV^6qF zNl+P}GLceADM|%hSQS^uB6`{d6Ildi6V^ne3QgXYX=ap#8!W9s0=>9N0oKbZuoR+n znHOr>M>Si4(J8CCMH8!@SIcD(G+}-7kSytauhqnN$SoA|9R&offDBX^@)11FscMet zE*16+C8MM1-c8zo>%!xwAN@d>+6J3w znlQClCZzAEOPlx^7Sthm74DeBnRv zlb1?4*~}|C)ZR0Z(~%#5QTUQlhEZTF39!o=s1x!7*1SfRw-rrJOFGb{o;gdsELS8^rzfvL*|Wz;$%0&ddBwK)S@plq$bykb#9&8P)T#QqJ01!S_9AH8JQ zmANdwPwr+Fypge(*3HsR6vZtcl%$sh%}re z12r&RVFv4Ju)6tkyyXZ^)(mubT7X;_%5b5<$Eub^9@6#z`h}@_B^?Zg6`(|L#U*QM zp-?FcQ|VK37oQGXUAWQ_6nge0k_Ua;&GN(-X?}diygE8uiKctBb!0b?vfIrq{)m2+ paLETt&)9q5gIPBG>4WZfCXe}NI(=XDT>3>18_B=BIU{F;{1*XQy#@dP diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php deleted file mode 100644 index 3e44c7218fb7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1beta.AccessBetweenFilter - */ -class AccessBetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Admin\V1beta\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return \Google\Analytics\Admin\V1beta\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @param \Google\Analytics\Admin\V1beta\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return \Google\Analytics\Admin\V1beta\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @param \Google\Analytics\Admin\V1beta\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php deleted file mode 100644 index 2693ac3c1401..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1beta.AccessDateRange - */ -class AccessDateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php deleted file mode 100644 index ad8fa116e91b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1beta.AccessDimension - */ -class AccessDimension extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php deleted file mode 100644 index 5c89abc67615..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1beta.AccessDimensionHeader - */ -class AccessDimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The dimension's name; for example 'userEmail'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php deleted file mode 100644 index 3c878103a7ef..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1beta.AccessDimensionValue - */ -class AccessDimensionValue extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php deleted file mode 100644 index 7555f3b7e5bb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.admin.v1beta.AccessFilter - */ -class AccessFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessStringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Admin\V1beta\AccessInListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Admin\V1beta\AccessNumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Admin\V1beta\AccessBetweenFilter $between_filter - * A filter for two values. - * @type string $field_name - * The dimension name or metric name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1beta\AccessStringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1beta\AccessStringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessStringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1beta\AccessInListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1beta\AccessInListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessInListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return \Google\Analytics\Admin\V1beta\AccessNumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @param \Google\Analytics\Admin\V1beta\AccessNumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessNumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return \Google\Analytics\Admin\V1beta\AccessBetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @param \Google\Analytics\Admin\V1beta\AccessBetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessBetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php deleted file mode 100644 index 60c37583b955..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.admin.v1beta.AccessFilterExpression - */ -class AccessFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $and_group - * Each of the FilterExpressions in the and_group has an AND relationship. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $or_group - * Each of the FilterExpressions in the or_group has an OR relationship. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Admin\V1beta\AccessFilter $access_filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return \Google\Analytics\Admin\V1beta\AccessFilter|null - */ - public function getAccessFilter() - { - return $this->readOneof(4); - } - - public function hasAccessFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @param \Google\Analytics\Admin\V1beta\AccessFilter $var - * @return $this - */ - public function setAccessFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php deleted file mode 100644 index dc507c8ce069..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1beta.AccessFilterExpressionList - */ -class AccessFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php deleted file mode 100644 index 81057b5c955e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1beta.AccessInListFilter - */ -class AccessInListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php deleted file mode 100644 index fefa95685fec..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php +++ /dev/null @@ -1,80 +0,0 @@ -google.analytics.admin.v1beta.AccessMetric - */ -class AccessMetric extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php deleted file mode 100644 index 93fb29069548..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1beta.AccessMetricHeader - */ -class AccessMetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The metric's name; for example 'accessCount'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php deleted file mode 100644 index 39d8d6f9da45..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1beta.AccessMetricValue - */ -class AccessMetricValue extends \Google\Protobuf\Internal\Message -{ - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The measurement value. For example, this value may be '13'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php deleted file mode 100644 index 0e21c7cada03..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1beta.AccessNumericFilter - */ -class AccessNumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Admin\V1beta\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessNumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; - * @return \Google\Analytics\Admin\V1beta\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; - * @param \Google\Analytics\Admin\V1beta\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php deleted file mode 100644 index bb570ffb41cd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.admin.v1beta.AccessNumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Admin\V1beta\AccessNumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php deleted file mode 100644 index 6170de42bfbb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy - */ -class AccessOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type bool $desc - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php deleted file mode 100644 index fbaf660231cc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index b0fbddbb0c0f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php deleted file mode 100644 index 3129518dec2d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php deleted file mode 100644 index 6da0417338d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php +++ /dev/null @@ -1,283 +0,0 @@ -google.analytics.admin.v1beta.AccessQuota - */ -class AccessQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_day - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_hour - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $concurrent_requests - * Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $server_errors_per_project_per_hour - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_project_per_hour - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php deleted file mode 100644 index 7b4a1d173763..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1beta.AccessQuotaStatus - */ -class AccessQuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - */ - protected $consumed = 0; - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - */ - protected $remaining = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return $this->consumed; - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return $this->remaining; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php deleted file mode 100644 index 2f6666df4c04..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1beta.AccessRow - */ -class AccessRow extends \Google\Protobuf\Internal\Message -{ - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of dimension values. These values are in the same order as specified - * in the request. - * @type array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of metric values. These values are in the same order as specified - * in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - * @param array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php deleted file mode 100644 index 0ccae2352c66..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.admin.v1beta.AccessStringFilter - */ -class AccessStringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessStringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php deleted file mode 100644 index 1160ce4dab8a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1beta.AccessStringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1beta\AccessStringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php deleted file mode 100644 index b3498cd2931c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php +++ /dev/null @@ -1,269 +0,0 @@ -google.analytics.admin.v1beta.Account - */ -class Account extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - */ - protected $region_code = ''; - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this account was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when account payload fields were last updated. - * @type string $display_name - * Required. Human-readable display name for this account. - * @type string $region_code - * Country of business. Must be a Unicode CLDR region code. - * @type bool $deleted - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeleted() - { - return $this->deleted; - } - - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeleted($var) - { - GPBUtil::checkBool($var); - $this->deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php deleted file mode 100644 index 39f4d4f56c00..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php +++ /dev/null @@ -1,186 +0,0 @@ -google.analytics.admin.v1beta.AccountSummary - */ -class AccountSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - */ - protected $account = ''; - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - private $property_summaries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * @type string $account - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * @type string $display_name - * Display name for the account referred to in this account summary. - * @type array<\Google\Analytics\Admin\V1beta\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $property_summaries - * List of summaries for child accounts of this account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPropertySummaries() - { - return $this->property_summaries; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - * @param array<\Google\Analytics\Admin\V1beta\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPropertySummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\PropertySummary::class); - $this->property_summaries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php deleted file mode 100644 index 0b2c9d56ae7f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest - */ -class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $acknowledgement = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The property for which to acknowledge user data collection. - * @type string $acknowledgement - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAcknowledgement() - { - return $this->acknowledgement; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAcknowledgement($var) - { - GPBUtil::checkString($var, True); - $this->acknowledgement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php deleted file mode 100644 index b8ff0399f227..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse - */ -class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php deleted file mode 100644 index 5001ae077d5e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1beta.ActionType - */ -class ActionType -{ - /** - * Action type unknown or not specified. - * - * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; - */ - const ACTION_TYPE_UNSPECIFIED = 0; - /** - * Resource was created in this change. - * - * Generated from protobuf enum CREATED = 1; - */ - const CREATED = 1; - /** - * Resource was updated in this change. - * - * Generated from protobuf enum UPDATED = 2; - */ - const UPDATED = 2; - /** - * Resource was deleted in this change. - * - * Generated from protobuf enum DELETED = 3; - */ - const DELETED = 3; - - private static $valueToName = [ - self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', - self::CREATED => 'CREATED', - self::UPDATED => 'UPDATED', - self::DELETED => 'DELETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php deleted file mode 100644 index 0e897307b8c9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.analytics.admin.v1beta.ActorType - */ -class ActorType -{ - /** - * Unknown or unspecified actor type. - * - * Generated from protobuf enum ACTOR_TYPE_UNSPECIFIED = 0; - */ - const ACTOR_TYPE_UNSPECIFIED = 0; - /** - * Changes made by the user specified in actor_email. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * Changes made by the Google Analytics system. - * - * Generated from protobuf enum SYSTEM = 2; - */ - const SYSTEM = 2; - /** - * Changes made by Google Analytics support team staff. - * - * Generated from protobuf enum SUPPORT = 3; - */ - const SUPPORT = 3; - - private static $valueToName = [ - self::ACTOR_TYPE_UNSPECIFIED => 'ACTOR_TYPE_UNSPECIFIED', - self::USER => 'USER', - self::SYSTEM => 'SYSTEM', - self::SUPPORT => 'SUPPORT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php deleted file mode 100644 index 2384859824e2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.ArchiveCustomDimensionRequest - */ -class ArchiveCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ArchiveCustomDimensionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php deleted file mode 100644 index 00ad8f6cbc3a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.ArchiveCustomMetricRequest - */ -class ArchiveCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ArchiveCustomMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php deleted file mode 100644 index 980584249c8c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php +++ /dev/null @@ -1,197 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryChange - */ -class ChangeHistoryChange extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - */ - protected $resource = ''; - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; - */ - protected $action = 0; - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - protected $resource_before_change = null; - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - protected $resource_after_change = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Resource name of the resource whose changes are described by this entry. - * @type int $action - * The type of action that changed this resource. - * @type \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $resource_before_change - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * @type \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $resource_after_change - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ActionType::class); - $this->action = $var; - - return $this; - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceBeforeChange() - { - return $this->resource_before_change; - } - - public function hasResourceBeforeChange() - { - return isset($this->resource_before_change); - } - - public function clearResourceBeforeChange() - { - unset($this->resource_before_change); - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @param \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceBeforeChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_before_change = $var; - - return $this; - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceAfterChange() - { - return $this->resource_after_change; - } - - public function hasResourceAfterChange() - { - return isset($this->resource_after_change); - } - - public function clearResourceAfterChange() - { - unset($this->resource_after_change); - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @param \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceAfterChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_after_change = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php deleted file mode 100644 index 19765fee14c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php +++ /dev/null @@ -1,310 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource - */ -class ChangeHistoryResource extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Account $account - * A snapshot of an Account resource in change history. - * @type \Google\Analytics\Admin\V1beta\Property $property - * A snapshot of a Property resource in change history. - * @type \Google\Analytics\Admin\V1beta\FirebaseLink $firebase_link - * A snapshot of a FirebaseLink resource in change history. - * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link - * A snapshot of a GoogleAdsLink resource in change history. - * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event - * A snapshot of a ConversionEvent resource in change history. - * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret - * A snapshot of a MeasurementProtocolSecret resource in change history. - * @type \Google\Analytics\Admin\V1beta\DataRetentionSettings $data_retention_settings - * A snapshot of a data retention settings resource in change history. - * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream - * A snapshot of a DataStream resource in change history. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @return \Google\Analytics\Admin\V1beta\Account|null - */ - public function getAccount() - { - return $this->readOneof(1); - } - - public function hasAccount() - { - return $this->hasOneof(1); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @param \Google\Analytics\Admin\V1beta\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 2; - * @return \Google\Analytics\Admin\V1beta\Property|null - */ - public function getProperty() - { - return $this->readOneof(2); - } - - public function hasProperty() - { - return $this->hasOneof(2); - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 2; - * @param \Google\Analytics\Admin\V1beta\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return \Google\Analytics\Admin\V1beta\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->readOneof(6); - } - - public function hasFirebaseLink() - { - return $this->hasOneof(6); - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @param \Google\Analytics\Admin\V1beta\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\FirebaseLink::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->readOneof(7); - } - - public function hasGoogleAdsLink() - { - return $this->hasOneof(7); - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->readOneof(11); - } - - public function hasConversionEvent() - { - return $this->hasOneof(11); - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->readOneof(12); - } - - public function hasMeasurementProtocolSecret() - { - return $this->hasOneof(12); - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->readOneof(15); - } - - public function hasDataRetentionSettings() - { - return $this->hasOneof(15); - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return \Google\Analytics\Admin\V1beta\DataStream|null - */ - public function getDataStream() - { - return $this->readOneof(18); - } - - public function hasDataStream() - { - return $this->hasOneof(18); - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @param \Google\Analytics\Admin\V1beta\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChangeHistoryResource::class, \Google\Analytics\Admin\V1beta\ChangeHistoryChange_ChangeHistoryResource::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php deleted file mode 100644 index 92d007549c95..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php +++ /dev/null @@ -1,266 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryEvent - */ -class ChangeHistoryEvent extends \Google\Protobuf\Internal\Message -{ - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - */ - protected $change_time = null; - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; - */ - protected $actor_type = 0; - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - */ - protected $user_actor_email = ''; - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - */ - protected $changes_filtered = false; - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - private $changes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of this change history event. This ID is unique across Google Analytics. - * @type \Google\Protobuf\Timestamp $change_time - * Time when change was made. - * @type int $actor_type - * The type of actor that made this change. - * @type string $user_actor_email - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * @type bool $changes_filtered - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * @type array<\Google\Analytics\Admin\V1beta\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $changes - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getChangeTime() - { - return $this->change_time; - } - - public function hasChangeTime() - { - return isset($this->change_time); - } - - public function clearChangeTime() - { - unset($this->change_time); - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->change_time = $var; - - return $this; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return int - */ - public function getActorType() - { - return $this->actor_type; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @param int $var - * @return $this - */ - public function setActorType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ActorType::class); - $this->actor_type = $var; - - return $this; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @return string - */ - public function getUserActorEmail() - { - return $this->user_actor_email; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @param string $var - * @return $this - */ - public function setUserActorEmail($var) - { - GPBUtil::checkString($var, True); - $this->user_actor_email = $var; - - return $this; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @return bool - */ - public function getChangesFiltered() - { - return $this->changes_filtered; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @param bool $var - * @return $this - */ - public function setChangesFiltered($var) - { - GPBUtil::checkBool($var); - $this->changes_filtered = $var; - - return $this; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChanges() - { - return $this->changes; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - * @param array<\Google\Analytics\Admin\V1beta\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ChangeHistoryChange::class); - $this->changes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php deleted file mode 100644 index f592887925dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php +++ /dev/null @@ -1,131 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryResourceType - */ -class ChangeHistoryResourceType -{ - /** - * Resource type unknown or not specified. - * - * Generated from protobuf enum CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Account resource - * - * Generated from protobuf enum ACCOUNT = 1; - */ - const ACCOUNT = 1; - /** - * Property resource - * - * Generated from protobuf enum PROPERTY = 2; - */ - const PROPERTY = 2; - /** - * FirebaseLink resource - * - * Generated from protobuf enum FIREBASE_LINK = 6; - */ - const FIREBASE_LINK = 6; - /** - * GoogleAdsLink resource - * - * Generated from protobuf enum GOOGLE_ADS_LINK = 7; - */ - const GOOGLE_ADS_LINK = 7; - /** - * GoogleSignalsSettings resource - * - * Generated from protobuf enum GOOGLE_SIGNALS_SETTINGS = 8; - */ - const GOOGLE_SIGNALS_SETTINGS = 8; - /** - * ConversionEvent resource - * - * Generated from protobuf enum CONVERSION_EVENT = 9; - */ - const CONVERSION_EVENT = 9; - /** - * MeasurementProtocolSecret resource - * - * Generated from protobuf enum MEASUREMENT_PROTOCOL_SECRET = 10; - */ - const MEASUREMENT_PROTOCOL_SECRET = 10; - /** - * DataRetentionSettings resource - * - * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13; - */ - const DATA_RETENTION_SETTINGS = 13; - /** - * DisplayVideo360AdvertiserLink resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - /** - * DisplayVideo360AdvertiserLinkProposal resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - /** - * DataStream resource - * - * Generated from protobuf enum DATA_STREAM = 18; - */ - const DATA_STREAM = 18; - /** - * AttributionSettings resource - * - * Generated from protobuf enum ATTRIBUTION_SETTINGS = 20; - */ - const ATTRIBUTION_SETTINGS = 20; - - private static $valueToName = [ - self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', - self::ACCOUNT => 'ACCOUNT', - self::PROPERTY => 'PROPERTY', - self::FIREBASE_LINK => 'FIREBASE_LINK', - self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK', - self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS', - self::CONVERSION_EVENT => 'CONVERSION_EVENT', - self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET', - self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL', - self::DATA_STREAM => 'DATA_STREAM', - self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php deleted file mode 100644 index afe4529389a0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php +++ /dev/null @@ -1,287 +0,0 @@ -google.analytics.admin.v1beta.ConversionEvent - */ -class ConversionEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $event_name = ''; - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = false; - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = false; - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $counting_method = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * @type string $event_name - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this conversion event was created in the property. - * @type bool $deletable - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * @type bool $custom - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * @type int $counting_method - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeletable() - { - return $this->deletable; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeletable($var) - { - GPBUtil::checkBool($var); - $this->deletable = $var; - - return $this; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCustom() - { - return $this->custom; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkBool($var); - $this->custom = $var; - - return $this; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCountingMethod() - { - return $this->counting_method; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCountingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ConversionEvent\ConversionCountingMethod::class); - $this->counting_method = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php deleted file mode 100644 index 85ec17148b20..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod - */ -class ConversionCountingMethod -{ - /** - * Counting method not specified. - * - * Generated from protobuf enum CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - const CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - /** - * Each Event instance is considered a Conversion. - * - * Generated from protobuf enum ONCE_PER_EVENT = 1; - */ - const ONCE_PER_EVENT = 1; - /** - * An Event instance is considered a Conversion at most once per session per - * user. - * - * Generated from protobuf enum ONCE_PER_SESSION = 2; - */ - const ONCE_PER_SESSION = 2; - - private static $valueToName = [ - self::CONVERSION_COUNTING_METHOD_UNSPECIFIED => 'CONVERSION_COUNTING_METHOD_UNSPECIFIED', - self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', - self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConversionCountingMethod::class, \Google\Analytics\Admin\V1beta\ConversionEvent_ConversionCountingMethod::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php deleted file mode 100644 index 8831edba86d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1beta.CreateConversionEventRequest - */ -class CreateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent Required. The conversion event to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateConversionEventRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent): self - { - return (new self()) - ->setParent($parent) - ->setConversionEvent($conversionEvent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event - * Required. The conversion event to create. - * @type string $parent - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php deleted file mode 100644 index fa4ccec2cac8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateCustomDimensionRequest - */ -class CreateCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_dimension = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\CustomDimension $customDimension Required. The CustomDimension to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateCustomDimensionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\CustomDimension $customDimension): self - { - return (new self()) - ->setParent($parent) - ->setCustomDimension($customDimension); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\CustomDimension $custom_dimension - * Required. The CustomDimension to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->custom_dimension; - } - - public function hasCustomDimension() - { - return isset($this->custom_dimension); - } - - public function clearCustomDimension() - { - unset($this->custom_dimension); - } - - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomDimension::class); - $this->custom_dimension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php deleted file mode 100644 index 9b5fb5068313..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateCustomMetricRequest - */ -class CreateCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_metric = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\CustomMetric $customMetric Required. The CustomMetric to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateCustomMetricRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\CustomMetric $customMetric): self - { - return (new self()) - ->setParent($parent) - ->setCustomMetric($customMetric); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\CustomMetric $custom_metric - * Required. The CustomMetric to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php deleted file mode 100644 index 23be6af917a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateDataStreamRequest - */ -class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_stream = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\DataStream $dataStream Required. The DataStream to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateDataStreamRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\DataStream $dataStream): self - { - return (new self()) - ->setParent($parent) - ->setDataStream($dataStream); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream - * Required. The DataStream to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->data_stream = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php deleted file mode 100644 index 36a14c4fb5e3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1beta.CreateFirebaseLinkRequest - */ -class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $firebase_link = null; - - /** - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\FirebaseLink $firebaseLink Required. The Firebase link to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateFirebaseLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\FirebaseLink $firebaseLink): self - { - return (new self()) - ->setParent($parent) - ->setFirebaseLink($firebaseLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1beta\FirebaseLink $firebase_link - * Required. The Firebase link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->firebase_link; - } - - public function hasFirebaseLink() - { - return isset($this->firebase_link); - } - - public function clearFirebaseLink() - { - unset($this->firebase_link); - } - - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\FirebaseLink::class); - $this->firebase_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php deleted file mode 100644 index ec369830145e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest - */ -class CreateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_ads_link = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink): self - { - return (new self()) - ->setParent($parent) - ->setGoogleAdsLink($googleAdsLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link - * Required. The GoogleAdsLink to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->google_ads_link; - } - - public function hasGoogleAdsLink() - { - return isset($this->google_ads_link); - } - - public function clearGoogleAdsLink() - { - unset($this->google_ads_link); - } - - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->google_ads_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php deleted file mode 100644 index d0df248fba28..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest - */ -class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - - /** - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret): self - { - return (new self()) - ->setParent($parent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php deleted file mode 100644 index 0d7a9402770c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php +++ /dev/null @@ -1,95 +0,0 @@ -google.analytics.admin.v1beta.CreatePropertyRequest - */ -class CreatePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = null; - - /** - * @param \Google\Analytics\Admin\V1beta\Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * - * @return \Google\Analytics\Admin\V1beta\CreatePropertyRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\Property $property): self - { - return (new self()) - ->setProperty($property); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Property $property - * Required. The property to create. - * Note: the supplied property must specify its parent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php deleted file mode 100644 index 6d82579f7027..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php +++ /dev/null @@ -1,301 +0,0 @@ -google.analytics.admin.v1beta.CustomDimension - */ -class CustomDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disallow_ads_personalization = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * @type string $parameter_name - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * @type string $display_name - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * @type int $scope - * Required. Immutable. The scope of this dimension. - * @type bool $disallow_ads_personalization - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomDimension\DimensionScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisallowAdsPersonalization() - { - return $this->disallow_ads_personalization; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisallowAdsPersonalization($var) - { - GPBUtil::checkBool($var); - $this->disallow_ads_personalization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php deleted file mode 100644 index 888ee1bbef8d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1beta.CustomDimension.DimensionScope - */ -class DimensionScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - const DIMENSION_SCOPE_UNSPECIFIED = 0; - /** - * Dimension scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - /** - * Dimension scoped to a user. - * - * Generated from protobuf enum USER = 2; - */ - const USER = 2; - /** - * Dimension scoped to eCommerce items - * - * Generated from protobuf enum ITEM = 3; - */ - const ITEM = 3; - - private static $valueToName = [ - self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - self::USER => 'USER', - self::ITEM => 'ITEM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionScope::class, \Google\Analytics\Admin\V1beta\CustomDimension_DimensionScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php deleted file mode 100644 index d786eb4a8ca0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php +++ /dev/null @@ -1,319 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric - */ -class CustomMetric extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_unit = 0; - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $restricted_metric_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * @type string $parameter_name - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * @type string $display_name - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * @type int $measurement_unit - * Required. The type for the custom metric's value. - * @type int $scope - * Required. Immutable. The scope of this custom metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMeasurementUnit() - { - return $this->measurement_unit; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMeasurementUnit($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomMetric\MeasurementUnit::class); - $this->measurement_unit = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomMetric\MetricScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricType() - { - return $this->restricted_metric_type; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\CustomMetric\RestrictedMetricType::class); - $this->restricted_metric_type = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php deleted file mode 100644 index 1a36e23078f2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php +++ /dev/null @@ -1,122 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric.MeasurementUnit - */ -class MeasurementUnit -{ - /** - * MeasurementUnit unspecified or missing. - * - * Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - const MEASUREMENT_UNIT_UNSPECIFIED = 0; - /** - * This metric uses default units. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * This metric measures a currency. - * - * Generated from protobuf enum CURRENCY = 2; - */ - const CURRENCY = 2; - /** - * This metric measures feet. - * - * Generated from protobuf enum FEET = 3; - */ - const FEET = 3; - /** - * This metric measures meters. - * - * Generated from protobuf enum METERS = 4; - */ - const METERS = 4; - /** - * This metric measures kilometers. - * - * Generated from protobuf enum KILOMETERS = 5; - */ - const KILOMETERS = 5; - /** - * This metric measures miles. - * - * Generated from protobuf enum MILES = 6; - */ - const MILES = 6; - /** - * This metric measures milliseconds. - * - * Generated from protobuf enum MILLISECONDS = 7; - */ - const MILLISECONDS = 7; - /** - * This metric measures seconds. - * - * Generated from protobuf enum SECONDS = 8; - */ - const SECONDS = 8; - /** - * This metric measures minutes. - * - * Generated from protobuf enum MINUTES = 9; - */ - const MINUTES = 9; - /** - * This metric measures hours. - * - * Generated from protobuf enum HOURS = 10; - */ - const HOURS = 10; - - private static $valueToName = [ - self::MEASUREMENT_UNIT_UNSPECIFIED => 'MEASUREMENT_UNIT_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::CURRENCY => 'CURRENCY', - self::FEET => 'FEET', - self::METERS => 'METERS', - self::KILOMETERS => 'KILOMETERS', - self::MILES => 'MILES', - self::MILLISECONDS => 'MILLISECONDS', - self::SECONDS => 'SECONDS', - self::MINUTES => 'MINUTES', - self::HOURS => 'HOURS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MeasurementUnit::class, \Google\Analytics\Admin\V1beta\CustomMetric_MeasurementUnit::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php deleted file mode 100644 index 4ddabfcd63ec..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php +++ /dev/null @@ -1,57 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric.MetricScope - */ -class MetricScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum METRIC_SCOPE_UNSPECIFIED = 0; - */ - const METRIC_SCOPE_UNSPECIFIED = 0; - /** - * Metric scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - - private static $valueToName = [ - self::METRIC_SCOPE_UNSPECIFIED => 'METRIC_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricScope::class, \Google\Analytics\Admin\V1beta\CustomMetric_MetricScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php deleted file mode 100644 index 7736c4df629b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Type unknown or unspecified. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Metric reports cost data. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Metric reports revenue data. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1beta\CustomMetric_RestrictedMetricType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php deleted file mode 100644 index f159622c5654..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php +++ /dev/null @@ -1,143 +0,0 @@ -google.analytics.admin.v1beta.DataRetentionSettings - */ -class DataRetentionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - */ - protected $event_data_retention = 0; - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - */ - protected $reset_user_data_on_new_activity = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * @type int $event_data_retention - * The length of time that event-level data is retained. - * @type bool $reset_user_data_on_new_activity - * If true, reset the retention period for the user identifier with every - * event from that user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return int - */ - public function getEventDataRetention() - { - return $this->event_data_retention; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param int $var - * @return $this - */ - public function setEventDataRetention($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings\RetentionDuration::class); - $this->event_data_retention = $var; - - return $this; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @return bool - */ - public function getResetUserDataOnNewActivity() - { - return $this->reset_user_data_on_new_activity; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @param bool $var - * @return $this - */ - public function setResetUserDataOnNewActivity($var) - { - GPBUtil::checkBool($var); - $this->reset_user_data_on_new_activity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php deleted file mode 100644 index 11632b79f46a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php +++ /dev/null @@ -1,88 +0,0 @@ -google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration - */ -class RetentionDuration -{ - /** - * Data retention time duration is not specified. - * - * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0; - */ - const RETENTION_DURATION_UNSPECIFIED = 0; - /** - * The data retention time duration is 2 months. - * - * Generated from protobuf enum TWO_MONTHS = 1; - */ - const TWO_MONTHS = 1; - /** - * The data retention time duration is 14 months. - * - * Generated from protobuf enum FOURTEEN_MONTHS = 3; - */ - const FOURTEEN_MONTHS = 3; - /** - * The data retention time duration is 26 months. - * Available to 360 properties only. - * - * Generated from protobuf enum TWENTY_SIX_MONTHS = 4; - */ - const TWENTY_SIX_MONTHS = 4; - /** - * The data retention time duration is 38 months. - * Available to 360 properties only. - * - * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5; - */ - const THIRTY_EIGHT_MONTHS = 5; - /** - * The data retention time duration is 50 months. - * Available to 360 properties only. - * - * Generated from protobuf enum FIFTY_MONTHS = 6; - */ - const FIFTY_MONTHS = 6; - - private static $valueToName = [ - self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED', - self::TWO_MONTHS => 'TWO_MONTHS', - self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS', - self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS', - self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS', - self::FIFTY_MONTHS => 'FIFTY_MONTHS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1beta\DataRetentionSettings_RetentionDuration::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php deleted file mode 100644 index 10a5a4775e93..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php +++ /dev/null @@ -1,262 +0,0 @@ -google.analytics.admin.v1beta.DataSharingSettings - */ -class DataSharingSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - */ - protected $sharing_with_google_support_enabled = false; - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - */ - protected $sharing_with_google_assigned_sales_enabled = false; - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - */ - protected $sharing_with_google_any_sales_enabled = false; - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - */ - protected $sharing_with_google_products_enabled = false; - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - */ - protected $sharing_with_others_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @type bool $sharing_with_google_support_enabled - * Allows Google support to access the data in order to help troubleshoot - * issues. - * @type bool $sharing_with_google_assigned_sales_enabled - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * @type bool $sharing_with_google_any_sales_enabled - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * @type bool $sharing_with_google_products_enabled - * Allows Google to use the data to improve other Google products or services. - * @type bool $sharing_with_others_enabled - * Allows Google to share the data anonymously in aggregate form with others. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @return bool - */ - public function getSharingWithGoogleSupportEnabled() - { - return $this->sharing_with_google_support_enabled; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleSupportEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_support_enabled = $var; - - return $this; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @return bool - */ - public function getSharingWithGoogleAssignedSalesEnabled() - { - return $this->sharing_with_google_assigned_sales_enabled; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAssignedSalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_assigned_sales_enabled = $var; - - return $this; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @return bool - */ - public function getSharingWithGoogleAnySalesEnabled() - { - return $this->sharing_with_google_any_sales_enabled; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAnySalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_any_sales_enabled = $var; - - return $this; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @return bool - */ - public function getSharingWithGoogleProductsEnabled() - { - return $this->sharing_with_google_products_enabled; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleProductsEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_products_enabled = $var; - - return $this; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @return bool - */ - public function getSharingWithOthersEnabled() - { - return $this->sharing_with_others_enabled; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @param bool $var - * @return $this - */ - public function setSharingWithOthersEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_others_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php deleted file mode 100644 index eb97eb73d435..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php +++ /dev/null @@ -1,356 +0,0 @@ -google.analytics.admin.v1beta.DataStream - */ -class DataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - protected $stream_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\DataStream\WebStreamData $web_stream_data - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * @type \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData $android_app_stream_data - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * @type \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData $ios_app_stream_data - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * @type int $type - * Required. Immutable. The type of this DataStream resource. - * @type string $display_name - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this stream was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when stream payload fields were last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return \Google\Analytics\Admin\V1beta\DataStream\WebStreamData|null - */ - public function getWebStreamData() - { - return $this->readOneof(6); - } - - public function hasWebStreamData() - { - return $this->hasOneof(6); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @param \Google\Analytics\Admin\V1beta\DataStream\WebStreamData $var - * @return $this - */ - public function setWebStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\WebStreamData::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData|null - */ - public function getAndroidAppStreamData() - { - return $this->readOneof(7); - } - - public function hasAndroidAppStreamData() - { - return $this->hasOneof(7); - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @param \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData $var - * @return $this - */ - public function setAndroidAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData|null - */ - public function getIosAppStreamData() - { - return $this->readOneof(8); - } - - public function hasIosAppStreamData() - { - return $this->hasOneof(8); - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @param \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData $var - * @return $this - */ - public function setIosAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\DataStream\DataStreamType::class); - $this->type = $var; - - return $this; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getStreamData() - { - return $this->whichOneof("stream_data"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php deleted file mode 100644 index 41f363424c91..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1beta.DataStream.AndroidAppStreamData - */ -class AndroidAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $package_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * @type string $package_name - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_AndroidAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php deleted file mode 100644 index f56bdc100a42..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1beta.DataStream.DataStreamType - */ -class DataStreamType -{ - /** - * Type unknown or not specified. - * - * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - const DATA_STREAM_TYPE_UNSPECIFIED = 0; - /** - * Web data stream. - * - * Generated from protobuf enum WEB_DATA_STREAM = 1; - */ - const WEB_DATA_STREAM = 1; - /** - * Android app data stream. - * - * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2; - */ - const ANDROID_APP_DATA_STREAM = 2; - /** - * iOS app data stream. - * - * Generated from protobuf enum IOS_APP_DATA_STREAM = 3; - */ - const IOS_APP_DATA_STREAM = 3; - - private static $valueToName = [ - self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED', - self::WEB_DATA_STREAM => 'WEB_DATA_STREAM', - self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM', - self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataStreamType::class, \Google\Analytics\Admin\V1beta\DataStream_DataStreamType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php deleted file mode 100644 index 3ca74773442b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1beta.DataStream.IosAppStreamData - */ -class IosAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $bundle_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * @type string $bundle_id - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBundleId() - { - return $this->bundle_id; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBundleId($var) - { - GPBUtil::checkString($var, True); - $this->bundle_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_IosAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php deleted file mode 100644 index 26d2801d7bbd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1beta.DataStream.WebStreamData - */ -class WebStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $measurement_id = ''; - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - */ - protected $default_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $measurement_id - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * @type string $firebase_app_id - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * @type string $default_uri - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeasurementId() - { - return $this->measurement_id; - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeasurementId($var) - { - GPBUtil::checkString($var, True); - $this->measurement_id = $var; - - return $this; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @return string - */ - public function getDefaultUri() - { - return $this->default_uri; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @param string $var - * @return $this - */ - public function setDefaultUri($var) - { - GPBUtil::checkString($var, True); - $this->default_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WebStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_WebStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php deleted file mode 100644 index 4e8c387e03ed..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteAccountRequest - */ -class DeleteAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteAccountRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php deleted file mode 100644 index c10da9d7155c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteConversionEventRequest - */ -class DeleteConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteConversionEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php deleted file mode 100644 index 1743a5808221..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.DeleteDataStreamRequest - */ -class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteDataStreamRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php deleted file mode 100644 index 3637f46fdcf6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.DeleteFirebaseLinkRequest - */ -class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::firebaseLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteFirebaseLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php deleted file mode 100644 index a0e08a72a199..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest - */ -class DeleteGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::googleAdsLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/googleAdsLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php deleted file mode 100644 index 11d1855ca0c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest - */ -class DeleteMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php deleted file mode 100644 index 0f1066e9be4c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeletePropertyRequest - */ -class DeletePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeletePropertyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php deleted file mode 100644 index fb86b8060dc8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php +++ /dev/null @@ -1,165 +0,0 @@ -google.analytics.admin.v1beta.FirebaseLink - */ -class FirebaseLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project = ''; - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Example format: properties/1234/firebaseLinks/5678 - * @type string $project - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this FirebaseLink was originally created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php deleted file mode 100644 index 2d2dff0d7814..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetAccountRequest - */ -class GetAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetAccountRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php deleted file mode 100644 index d93e93e1f55a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetConversionEventRequest - */ -class GetConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetConversionEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php deleted file mode 100644 index 94a2b1021792..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.GetCustomDimensionRequest - */ -class GetCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetCustomDimensionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php deleted file mode 100644 index 6610662810be..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.GetCustomMetricRequest - */ -class GetCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetCustomMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php deleted file mode 100644 index 15828be733b6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1beta.GetDataRetentionSettingsRequest - */ -class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * Please see {@see AnalyticsAdminServiceClient::dataRetentionSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetDataRetentionSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php deleted file mode 100644 index 51536932b2a7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetDataSharingSettingsRequest - */ -class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * Please see {@see AnalyticsAdminServiceClient::dataSharingSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetDataSharingSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php deleted file mode 100644 index aab7f2686212..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.GetDataStreamRequest - */ -class GetDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetDataStreamRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php deleted file mode 100644 index 5a1c207ba97a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest - */ -class GetMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php deleted file mode 100644 index 50ce00257946..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetPropertyRequest - */ -class GetPropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetPropertyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php deleted file mode 100644 index 85e6f6f829ea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php +++ /dev/null @@ -1,358 +0,0 @@ -google.analytics.admin.v1beta.GoogleAdsLink - */ -class GoogleAdsLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $customer_id = ''; - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $can_manage_clients = false; - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - protected $ads_personalization_enabled = null; - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator_email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * @type string $customer_id - * Immutable. Google Ads customer ID. - * @type bool $can_manage_clients - * Output only. If true, this link is for a Google Ads manager account. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this link was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when this link was last updated. - * @type string $creator_email_address - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setCustomerId($var) - { - GPBUtil::checkString($var, True); - $this->customer_id = $var; - - return $this; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCanManageClients() - { - return $this->can_manage_clients; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCanManageClients($var) - { - GPBUtil::checkBool($var); - $this->can_manage_clients = $var; - - return $this; - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreatorEmailAddress() - { - return $this->creator_email_address; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreatorEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->creator_email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php deleted file mode 100644 index 887b34452f65..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php +++ /dev/null @@ -1,229 +0,0 @@ -google.analytics.admin.v1beta.IndustryCategory - */ -class IndustryCategory -{ - /** - * Industry category unspecified - * - * Generated from protobuf enum INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - const INDUSTRY_CATEGORY_UNSPECIFIED = 0; - /** - * Automotive - * - * Generated from protobuf enum AUTOMOTIVE = 1; - */ - const AUTOMOTIVE = 1; - /** - * Business and industrial markets - * - * Generated from protobuf enum BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - const BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - /** - * Finance - * - * Generated from protobuf enum FINANCE = 3; - */ - const FINANCE = 3; - /** - * Healthcare - * - * Generated from protobuf enum HEALTHCARE = 4; - */ - const HEALTHCARE = 4; - /** - * Technology - * - * Generated from protobuf enum TECHNOLOGY = 5; - */ - const TECHNOLOGY = 5; - /** - * Travel - * - * Generated from protobuf enum TRAVEL = 6; - */ - const TRAVEL = 6; - /** - * Other - * - * Generated from protobuf enum OTHER = 7; - */ - const OTHER = 7; - /** - * Arts and entertainment - * - * Generated from protobuf enum ARTS_AND_ENTERTAINMENT = 8; - */ - const ARTS_AND_ENTERTAINMENT = 8; - /** - * Beauty and fitness - * - * Generated from protobuf enum BEAUTY_AND_FITNESS = 9; - */ - const BEAUTY_AND_FITNESS = 9; - /** - * Books and literature - * - * Generated from protobuf enum BOOKS_AND_LITERATURE = 10; - */ - const BOOKS_AND_LITERATURE = 10; - /** - * Food and drink - * - * Generated from protobuf enum FOOD_AND_DRINK = 11; - */ - const FOOD_AND_DRINK = 11; - /** - * Games - * - * Generated from protobuf enum GAMES = 12; - */ - const GAMES = 12; - /** - * Hobbies and leisure - * - * Generated from protobuf enum HOBBIES_AND_LEISURE = 13; - */ - const HOBBIES_AND_LEISURE = 13; - /** - * Home and garden - * - * Generated from protobuf enum HOME_AND_GARDEN = 14; - */ - const HOME_AND_GARDEN = 14; - /** - * Internet and telecom - * - * Generated from protobuf enum INTERNET_AND_TELECOM = 15; - */ - const INTERNET_AND_TELECOM = 15; - /** - * Law and government - * - * Generated from protobuf enum LAW_AND_GOVERNMENT = 16; - */ - const LAW_AND_GOVERNMENT = 16; - /** - * News - * - * Generated from protobuf enum NEWS = 17; - */ - const NEWS = 17; - /** - * Online communities - * - * Generated from protobuf enum ONLINE_COMMUNITIES = 18; - */ - const ONLINE_COMMUNITIES = 18; - /** - * People and society - * - * Generated from protobuf enum PEOPLE_AND_SOCIETY = 19; - */ - const PEOPLE_AND_SOCIETY = 19; - /** - * Pets and animals - * - * Generated from protobuf enum PETS_AND_ANIMALS = 20; - */ - const PETS_AND_ANIMALS = 20; - /** - * Real estate - * - * Generated from protobuf enum REAL_ESTATE = 21; - */ - const REAL_ESTATE = 21; - /** - * Reference - * - * Generated from protobuf enum REFERENCE = 22; - */ - const REFERENCE = 22; - /** - * Science - * - * Generated from protobuf enum SCIENCE = 23; - */ - const SCIENCE = 23; - /** - * Sports - * - * Generated from protobuf enum SPORTS = 24; - */ - const SPORTS = 24; - /** - * Jobs and education - * - * Generated from protobuf enum JOBS_AND_EDUCATION = 25; - */ - const JOBS_AND_EDUCATION = 25; - /** - * Shopping - * - * Generated from protobuf enum SHOPPING = 26; - */ - const SHOPPING = 26; - - private static $valueToName = [ - self::INDUSTRY_CATEGORY_UNSPECIFIED => 'INDUSTRY_CATEGORY_UNSPECIFIED', - self::AUTOMOTIVE => 'AUTOMOTIVE', - self::BUSINESS_AND_INDUSTRIAL_MARKETS => 'BUSINESS_AND_INDUSTRIAL_MARKETS', - self::FINANCE => 'FINANCE', - self::HEALTHCARE => 'HEALTHCARE', - self::TECHNOLOGY => 'TECHNOLOGY', - self::TRAVEL => 'TRAVEL', - self::OTHER => 'OTHER', - self::ARTS_AND_ENTERTAINMENT => 'ARTS_AND_ENTERTAINMENT', - self::BEAUTY_AND_FITNESS => 'BEAUTY_AND_FITNESS', - self::BOOKS_AND_LITERATURE => 'BOOKS_AND_LITERATURE', - self::FOOD_AND_DRINK => 'FOOD_AND_DRINK', - self::GAMES => 'GAMES', - self::HOBBIES_AND_LEISURE => 'HOBBIES_AND_LEISURE', - self::HOME_AND_GARDEN => 'HOME_AND_GARDEN', - self::INTERNET_AND_TELECOM => 'INTERNET_AND_TELECOM', - self::LAW_AND_GOVERNMENT => 'LAW_AND_GOVERNMENT', - self::NEWS => 'NEWS', - self::ONLINE_COMMUNITIES => 'ONLINE_COMMUNITIES', - self::PEOPLE_AND_SOCIETY => 'PEOPLE_AND_SOCIETY', - self::PETS_AND_ANIMALS => 'PETS_AND_ANIMALS', - self::REAL_ESTATE => 'REAL_ESTATE', - self::REFERENCE => 'REFERENCE', - self::SCIENCE => 'SCIENCE', - self::SPORTS => 'SPORTS', - self::JOBS_AND_EDUCATION => 'JOBS_AND_EDUCATION', - self::SHOPPING => 'SHOPPING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php deleted file mode 100644 index 5a9b57747f11..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1beta.ListAccountSummariesRequest - */ -class ListAccountSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php deleted file mode 100644 index 134ce7115217..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListAccountSummariesResponse - */ -class ListAccountSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - private $account_summaries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $account_summaries - * Account summaries of all accounts the caller has access to. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccountSummaries() - { - return $this->account_summaries; - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccountSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccountSummary::class); - $this->account_summaries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php deleted file mode 100644 index ad5ace2c52d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1beta.ListAccountsRequest - */ -class ListAccountsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php deleted file mode 100644 index e6172f138b63..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListAccountsResponse - */ -class ListAccountsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - private $accounts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\Account>|\Google\Protobuf\Internal\RepeatedField $accounts - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccounts() - { - return $this->accounts; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; - * @param array<\Google\Analytics\Admin\V1beta\Account>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\Account::class); - $this->accounts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php deleted file mode 100644 index 33bf19c74838..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.analytics.admin.v1beta.ListConversionEventsRequest - */ -class ListConversionEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListConversionEventsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent property. - * Example: 'properties/123' - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php deleted file mode 100644 index 8c2c55e646f6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListConversionEventsResponse - */ -class ListConversionEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - private $conversion_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $conversion_events - * The requested conversion events - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversionEvents() - { - return $this->conversion_events; - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - * @param array<\Google\Analytics\Admin\V1beta\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversionEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->conversion_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php deleted file mode 100644 index b0a3860f8064..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListCustomDimensionsRequest - */ -class ListCustomDimensionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListCustomDimensionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php deleted file mode 100644 index 94d2a87c2a86..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListCustomDimensionsResponse - */ -class ListCustomDimensionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - private $custom_dimensions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $custom_dimensions - * List of CustomDimensions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomDimensions() - { - return $this->custom_dimensions; - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - * @param array<\Google\Analytics\Admin\V1beta\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\CustomDimension::class); - $this->custom_dimensions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php deleted file mode 100644 index 5020f949e437..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListCustomMetricsRequest - */ -class ListCustomMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListCustomMetricsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php deleted file mode 100644 index 595e81384613..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListCustomMetricsResponse - */ -class ListCustomMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - private $custom_metrics; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $custom_metrics - * List of CustomMetrics. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomMetrics() - { - return $this->custom_metrics; - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - * @param array<\Google\Analytics\Admin\V1beta\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\CustomMetric::class); - $this->custom_metrics = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php deleted file mode 100644 index a7fd9dae8a76..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListDataStreamsRequest - */ -class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListDataStreamsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php deleted file mode 100644 index 5ccce411e91d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListDataStreamsResponse - */ -class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - private $data_streams; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\DataStream>|\Google\Protobuf\Internal\RepeatedField $data_streams - * List of DataStreams. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStreams() - { - return $this->data_streams; - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - * @param array<\Google\Analytics\Admin\V1beta\DataStream>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->data_streams = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php deleted file mode 100644 index c6b89d422b86..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.admin.v1beta.ListFirebaseLinksRequest - */ -class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListFirebaseLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php deleted file mode 100644 index b320bb008f5c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1beta.ListFirebaseLinksResponse - */ -class ListFirebaseLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - private $firebase_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $firebase_links - * List of FirebaseLinks. This will have at most one value. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFirebaseLinks() - { - return $this->firebase_links; - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - * @param array<\Google\Analytics\Admin\V1beta\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFirebaseLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\FirebaseLink::class); - $this->firebase_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php deleted file mode 100644 index 5db7e835bc8e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListGoogleAdsLinksRequest - */ -class ListGoogleAdsLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListGoogleAdsLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php deleted file mode 100644 index 83af6ed59375..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListGoogleAdsLinksResponse - */ -class ListGoogleAdsLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - private $google_ads_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $google_ads_links - * List of GoogleAdsLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGoogleAdsLinks() - { - return $this->google_ads_links; - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - * @param array<\Google\Analytics\Admin\V1beta\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGoogleAdsLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->google_ads_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php deleted file mode 100644 index 7b63fb17d190..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest - */ -class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListMeasurementProtocolSecretsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * @type string $page_token - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php deleted file mode 100644 index 0a841ff0b82c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse - */ -class ListMeasurementProtocolSecretsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - private $measurement_protocol_secrets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $measurement_protocol_secrets - * A list of secrets for the parent stream specified in the request. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMeasurementProtocolSecrets() - { - return $this->measurement_protocol_secrets; - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @param array<\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMeasurementProtocolSecrets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->measurement_protocol_secrets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php deleted file mode 100644 index 66946ecd9fb9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1beta.ListPropertiesRequest - */ -class ListPropertiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php deleted file mode 100644 index f0bf255bc083..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListPropertiesResponse - */ -class ListPropertiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - private $properties; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\Property>|\Google\Protobuf\Internal\RepeatedField $properties - * Results that matched the filter criteria and were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; - * @param array<\Google\Analytics\Admin\V1beta\Property>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\Property::class); - $this->properties = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php deleted file mode 100644 index 79a409a5548e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1beta.MeasurementProtocolSecret - */ -class MeasurementProtocolSecret extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $secret_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @type string $display_name - * Required. Human-readable display name for this secret. - * @type string $secret_value - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSecretValue() - { - return $this->secret_value; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSecretValue($var) - { - GPBUtil::checkString($var, True); - $this->secret_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php deleted file mode 100644 index 0952ee5c779c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.admin.v1beta.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php deleted file mode 100644 index 39f017937c2e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php +++ /dev/null @@ -1,611 +0,0 @@ -google.analytics.admin.v1beta.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $property_type = 0; - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parent = ''; - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - */ - protected $industry_category = 0; - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - */ - protected $currency_code = ''; - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_level = 0; - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $account = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * @type int $property_type - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the entity was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when entity payload fields were last updated. - * @type string $parent - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * @type string $display_name - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * @type int $industry_category - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * @type string $time_zone - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * @type string $currency_code - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * @type int $service_level - * Output only. The Google Analytics service level that applies to this - * property. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * @type string $account - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return int - */ - public function getIndustryCategory() - { - return $this->industry_category; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @param int $var - * @return $this - */ - public function setIndustryCategory($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\IndustryCategory::class); - $this->industry_category = $var; - - return $this; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getServiceLevel() - { - return $this->service_level; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setServiceLevel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ServiceLevel::class); - $this->service_level = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php deleted file mode 100644 index 2b198f304695..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php +++ /dev/null @@ -1,189 +0,0 @@ -google.analytics.admin.v1beta.PropertySummary - */ -class PropertySummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; - */ - protected $property_type = 0; - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * @type string $display_name - * Display name for the property referred to in this property summary. - * @type int $property_type - * The property's property type. - * @type string $parent - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php deleted file mode 100644 index 746a8078f25e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1beta.PropertyType - */ -class PropertyType -{ - /** - * Unknown or unspecified property type - * - * Generated from protobuf enum PROPERTY_TYPE_UNSPECIFIED = 0; - */ - const PROPERTY_TYPE_UNSPECIFIED = 0; - /** - * Ordinary GA4 property - * - * Generated from protobuf enum PROPERTY_TYPE_ORDINARY = 1; - */ - const PROPERTY_TYPE_ORDINARY = 1; - /** - * GA4 subproperty - * - * Generated from protobuf enum PROPERTY_TYPE_SUBPROPERTY = 2; - */ - const PROPERTY_TYPE_SUBPROPERTY = 2; - /** - * GA4 rollup property - * - * Generated from protobuf enum PROPERTY_TYPE_ROLLUP = 3; - */ - const PROPERTY_TYPE_ROLLUP = 3; - - private static $valueToName = [ - self::PROPERTY_TYPE_UNSPECIFIED => 'PROPERTY_TYPE_UNSPECIFIED', - self::PROPERTY_TYPE_ORDINARY => 'PROPERTY_TYPE_ORDINARY', - self::PROPERTY_TYPE_SUBPROPERTY => 'PROPERTY_TYPE_SUBPROPERTY', - self::PROPERTY_TYPE_ROLLUP => 'PROPERTY_TYPE_ROLLUP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php deleted file mode 100644 index 0005e6b70010..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1beta.ProvisionAccountTicketRequest - */ -class ProvisionAccountTicketRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - */ - protected $account = null; - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - */ - protected $redirect_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Account $account - * The account to create. - * @type string $redirect_uri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @return \Google\Analytics\Admin\V1beta\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @param \Google\Analytics\Admin\V1beta\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @param string $var - * @return $this - */ - public function setRedirectUri($var) - { - GPBUtil::checkString($var, True); - $this->redirect_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php deleted file mode 100644 index 6a82de170909..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1beta.ProvisionAccountTicketResponse - */ -class ProvisionAccountTicketResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - */ - protected $account_ticket_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_ticket_id - * The param to be passed in the ToS link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @return string - */ - public function getAccountTicketId() - { - return $this->account_ticket_id; - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @param string $var - * @return $this - */ - public function setAccountTicketId($var) - { - GPBUtil::checkString($var, True); - $this->account_ticket_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php deleted file mode 100644 index cf8d00f072db..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php +++ /dev/null @@ -1,583 +0,0 @@ -google.analytics.admin.v1beta.RunAccessReportRequest - */ -class RunAccessReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - */ - protected $entity = ''; - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - private $metrics; - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - protected $dimension_filter = null; - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - protected $metric_filter = null; - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - */ - protected $offset = 0; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - */ - protected $limit = 0; - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - */ - protected $time_zone = ''; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - private $order_bys; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - */ - protected $return_entity_quota = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type array<\Google\Analytics\Admin\V1beta\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type array<\Google\Analytics\Admin\V1beta\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type array<\Google\Analytics\Admin\V1beta\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $dimension_filter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $metric_filter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $time_zone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type array<\Google\Analytics\Admin\V1beta\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type bool $return_entity_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - * @param array<\Google\Analytics\Admin\V1beta\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - * @param array<\Google\Analytics\Admin\V1beta\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - * @param array<\Google\Analytics\Admin\V1beta\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - * @param array<\Google\Analytics\Admin\V1beta\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessOrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @return bool - */ - public function getReturnEntityQuota() - { - return $this->return_entity_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @param bool $var - * @return $this - */ - public function setReturnEntityQuota($var) - { - GPBUtil::checkBool($var); - $this->return_entity_quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php deleted file mode 100644 index 32d64a075493..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1beta.RunAccessReportResponse - */ -class RunAccessReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - private $rows; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - */ - protected $row_count = 0; - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - protected $quota = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * @type array<\Google\Analytics\Admin\V1beta\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * @type array<\Google\Analytics\Admin\V1beta\AccessRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Admin\V1beta\AccessQuota $quota - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Admin\V1beta\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - * @param array<\Google\Analytics\Admin\V1beta\AccessRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessRow::class); - $this->rows = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return \Google\Analytics\Admin\V1beta\AccessQuota|null - */ - public function getQuota() - { - return $this->quota; - } - - public function hasQuota() - { - return isset($this->quota); - } - - public function clearQuota() - { - unset($this->quota); - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @param \Google\Analytics\Admin\V1beta\AccessQuota $var - * @return $this - */ - public function setQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuota::class); - $this->quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php deleted file mode 100644 index b40543a51b55..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php +++ /dev/null @@ -1,407 +0,0 @@ -google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest - */ -class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account resource for which to return change history - * resources. - * - * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $account = ''; - /** - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_type; - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $action; - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $actor_email; - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $earliest_change_time = null; - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latest_change_time = null; - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account - * Required. The account resource for which to return change history - * resources. - * @type string $property - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_type - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @type array|\Google\Protobuf\Internal\RepeatedField $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @type array|\Google\Protobuf\Internal\RepeatedField $actor_email - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type \Google\Protobuf\Timestamp $earliest_change_time - * Optional. If set, only return changes made after this time (inclusive). - * @type \Google\Protobuf\Timestamp $latest_change_time - * Optional. If set, only return changes made before this time (inclusive). - * @type int $page_size - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account resource for which to return change history - * resources. - * - * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Required. The account resource for which to return change history - * resources. - * - * Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - - /** - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\ChangeHistoryResourceType::class); - $this->resource_type = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAction() - { - return $this->action; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAction($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\ActionType::class); - $this->action = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActorEmail() - { - return $this->actor_email; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActorEmail($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actor_email = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestChangeTime() - { - return $this->earliest_change_time; - } - - public function hasEarliestChangeTime() - { - return isset($this->earliest_change_time); - } - - public function clearEarliestChangeTime() - { - unset($this->earliest_change_time); - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_change_time = $var; - - return $this; - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestChangeTime() - { - return $this->latest_change_time; - } - - public function hasLatestChangeTime() - { - return isset($this->latest_change_time); - } - - public function clearLatestChangeTime() - { - unset($this->latest_change_time); - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_change_time = $var; - - return $this; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php deleted file mode 100644 index 446954be0938..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse - */ -class SearchChangeHistoryEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - private $change_history_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $change_history_events - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChangeHistoryEvents() - { - return $this->change_history_events; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - * @param array<\Google\Analytics\Admin\V1beta\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChangeHistoryEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ChangeHistoryEvent::class); - $this->change_history_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php deleted file mode 100644 index 4ff6e7266ab6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php +++ /dev/null @@ -1,61 +0,0 @@ -google.analytics.admin.v1beta.ServiceLevel - */ -class ServiceLevel -{ - /** - * Service level not specified or invalid. - * - * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0; - */ - const SERVICE_LEVEL_UNSPECIFIED = 0; - /** - * The standard version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1; - */ - const GOOGLE_ANALYTICS_STANDARD = 1; - /** - * The paid, premium version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2; - */ - const GOOGLE_ANALYTICS_360 = 2; - - private static $valueToName = [ - self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED', - self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD', - self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php deleted file mode 100644 index 26003ae8efe1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateAccountRequest - */ -class UpdateAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $account = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateAccountRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\Account $account, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAccount($account) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Account $account - * Required. The account to update. - * The account's `name` field is used to identify the account. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php deleted file mode 100644 index 7446a39035e8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateConversionEventRequest - */ -class UpdateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateConversionEventRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php deleted file mode 100644 index 8f5570a83572..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1beta.UpdateCustomDimensionRequest - */ -class UpdateCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - protected $custom_dimension = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\CustomDimension $customDimension The CustomDimension to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateCustomDimensionRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\CustomDimension $customDimension, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomDimension($customDimension) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\CustomDimension $custom_dimension - * The CustomDimension to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return \Google\Analytics\Admin\V1beta\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->custom_dimension; - } - - public function hasCustomDimension() - { - return isset($this->custom_dimension); - } - - public function clearCustomDimension() - { - unset($this->custom_dimension); - } - - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @param \Google\Analytics\Admin\V1beta\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomDimension::class); - $this->custom_dimension = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php deleted file mode 100644 index 2a6a68a15fbe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1beta.UpdateCustomMetricRequest - */ -class UpdateCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - protected $custom_metric = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\CustomMetric $customMetric The CustomMetric to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateCustomMetricRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\CustomMetric $customMetric, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomMetric($customMetric) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\CustomMetric $custom_metric - * The CustomMetric to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return \Google\Analytics\Admin\V1beta\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @param \Google\Analytics\Admin\V1beta\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php deleted file mode 100644 index 62465168648e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest - */ -class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_retention_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateDataRetentionSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\DataRetentionSettings $dataRetentionSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\DataRetentionSettings $data_retention_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->data_retention_settings; - } - - public function hasDataRetentionSettings() - { - return isset($this->data_retention_settings); - } - - public function clearDataRetentionSettings() - { - unset($this->data_retention_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings::class); - $this->data_retention_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php deleted file mode 100644 index 75f89f3ac6b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1beta.UpdateDataStreamRequest - */ -class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - protected $data_stream = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\DataStream $dataStream The DataStream to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateDataStreamRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\DataStream $dataStream, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataStream($dataStream) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream - * The DataStream to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return \Google\Analytics\Admin\V1beta\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @param \Google\Analytics\Admin\V1beta\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->data_stream = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php deleted file mode 100644 index 74207c5be17f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest - */ -class UpdateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - protected $google_ads_link = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink The GoogleAdsLink to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGoogleAdsLink($googleAdsLink) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link - * The GoogleAdsLink to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->google_ads_link; - } - - public function hasGoogleAdsLink() - { - return isset($this->google_ads_link); - } - - public function clearGoogleAdsLink() - { - unset($this->google_ads_link); - } - - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->google_ads_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php deleted file mode 100644 index ea5707e1ccd1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest - */ -class UpdateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * @return \Google\Analytics\Admin\V1beta\UpdateMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php deleted file mode 100644 index f876aa7fa4c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1beta.UpdatePropertyRequest - */ -class UpdatePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\Property $property Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdatePropertyRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\Property $property, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setProperty($property) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Property $property - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); - $this->property = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php deleted file mode 100644 index f53ce9cba38d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php +++ /dev/null @@ -1,87 +0,0 @@ -setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - - // Call the API and handle any network failures. - try { - /** @var AcknowledgeUserDataCollectionResponse $response */ - $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $acknowledgement = '[ACKNOWLEDGEMENT]'; - - acknowledge_user_data_collection_sample($formattedProperty, $acknowledgement); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php deleted file mode 100644 index 5beca8a3e3cb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveCustomDimension($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - archive_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php deleted file mode 100644 index bfd3529ff92c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveCustomMetric($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - archive_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php deleted file mode 100644 index 3f815f73f010..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php +++ /dev/null @@ -1,74 +0,0 @@ -setConversionEvent($conversionEvent) - ->setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->createConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_conversion_event_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php deleted file mode 100644 index 152fadc53181..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php +++ /dev/null @@ -1,107 +0,0 @@ -setParameterName($customDimensionParameterName) - ->setDisplayName($customDimensionDisplayName) - ->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->createCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customDimensionParameterName = '[PARAMETER_NAME]'; - $customDimensionDisplayName = '[DISPLAY_NAME]'; - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - - create_custom_dimension_sample( - $formattedParent, - $customDimensionParameterName, - $customDimensionDisplayName, - $customDimensionScope - ); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php deleted file mode 100644 index d887cd8f7bac..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php +++ /dev/null @@ -1,108 +0,0 @@ -setParameterName($customMetricParameterName) - ->setDisplayName($customMetricDisplayName) - ->setMeasurementUnit($customMetricMeasurementUnit) - ->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->createCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customMetricParameterName = '[PARAMETER_NAME]'; - $customMetricDisplayName = '[DISPLAY_NAME]'; - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - - create_custom_metric_sample( - $formattedParent, - $customMetricParameterName, - $customMetricDisplayName, - $customMetricMeasurementUnit, - $customMetricScope - ); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php deleted file mode 100644 index 6b4f173aaab3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php +++ /dev/null @@ -1,77 +0,0 @@ -setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->createDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - - create_data_stream_sample($formattedParent, $dataStreamType); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php deleted file mode 100644 index 627bfed86eea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - - // Call the API and handle any network failures. - try { - /** @var FirebaseLink $response */ - $response = $analyticsAdminServiceClient->createFirebaseLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_firebase_link_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php deleted file mode 100644 index f46c70cb7205..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - - // Call the API and handle any network failures. - try { - /** @var GoogleAdsLink $response */ - $response = $analyticsAdminServiceClient->createGoogleAdsLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_google_ads_link_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php deleted file mode 100644 index 0dc13bee1da3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php +++ /dev/null @@ -1,79 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - create_measurement_protocol_secret_sample($formattedParent, $measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php deleted file mode 100644 index 780c371f05c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php +++ /dev/null @@ -1,85 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->createProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - create_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php deleted file mode 100644 index 61db2101e3e2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteAccount($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - delete_account_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php deleted file mode 100644 index 36a743cf9973..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteConversionEvent($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - delete_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php deleted file mode 100644 index 809ae4e19b02..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteDataStream($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - delete_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php deleted file mode 100644 index 04eab87ba683..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteFirebaseLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - - delete_firebase_link_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php deleted file mode 100644 index 3ce9bb067561..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteGoogleAdsLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - - delete_google_ads_link_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php deleted file mode 100644 index 5c765f2df4e6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - delete_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php deleted file mode 100644 index 3d784e2223e4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->deleteProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - delete_property_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php deleted file mode 100644 index 093401c500d5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->getAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - get_account_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php deleted file mode 100644 index 17bf0b13f4d2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->getConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - get_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php deleted file mode 100644 index 3c98f597d3f5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->getCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - get_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php deleted file mode 100644 index daa9160443b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->getCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - get_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php deleted file mode 100644 index dce0d508c117..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataRetentionSettings $response */ - $response = $analyticsAdminServiceClient->getDataRetentionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataRetentionSettingsName('[PROPERTY]'); - - get_data_retention_settings_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php deleted file mode 100644 index 5963d099becb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataSharingSettings $response */ - $response = $analyticsAdminServiceClient->getDataSharingSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataSharingSettingsName('[ACCOUNT]'); - - get_data_sharing_settings_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php deleted file mode 100644 index 5abc8a883b95..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->getDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - get_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php deleted file mode 100644 index 851961152c5c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - get_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php deleted file mode 100644 index 2dd874a96dd3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->getProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - get_property_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php deleted file mode 100644 index f6290b290cd4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php +++ /dev/null @@ -1,62 +0,0 @@ -listAccountSummaries($request); - - /** @var AccountSummary $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php deleted file mode 100644 index b8baf084506a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php +++ /dev/null @@ -1,66 +0,0 @@ -listAccounts($request); - - /** @var Account $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php deleted file mode 100644 index 5bea94f3d6ff..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listConversionEvents($request); - - /** @var ConversionEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_conversion_events_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php deleted file mode 100644 index 228c2ecc021c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCustomDimensions($request); - - /** @var CustomDimension $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_dimensions_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php deleted file mode 100644 index 4a3ee2c8e021..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCustomMetrics($request); - - /** @var CustomMetric $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_metrics_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php deleted file mode 100644 index 75513d807bf0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listDataStreams($request); - - /** @var DataStream $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_data_streams_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php deleted file mode 100644 index 28a47c0c63d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listFirebaseLinks($request); - - /** @var FirebaseLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_firebase_links_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php deleted file mode 100644 index 2e2cc0a2eabe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listGoogleAdsLinks($request); - - /** @var GoogleAdsLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_google_ads_links_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php deleted file mode 100644 index 99c5d04da409..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($request); - - /** @var MeasurementProtocolSecret $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_measurement_protocol_secrets_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php deleted file mode 100644 index d49927094103..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php +++ /dev/null @@ -1,95 +0,0 @@ -setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listProperties($request); - - /** @var Property $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $filter = '[FILTER]'; - - list_properties_sample($filter); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php deleted file mode 100644 index a2c6e56f62d1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php +++ /dev/null @@ -1,57 +0,0 @@ -provisionAccountTicket($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php deleted file mode 100644 index c51342af5d2c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php +++ /dev/null @@ -1,69 +0,0 @@ -runAccessReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php deleted file mode 100644 index 84f77712b359..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php +++ /dev/null @@ -1,78 +0,0 @@ -setAccount($formattedAccount); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->searchChangeHistoryEvents($request); - - /** @var ChangeHistoryEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedAccount = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - search_change_history_events_sample($formattedAccount); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php deleted file mode 100644 index 85cb9b1f69db..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->updateAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $accountDisplayName = '[DISPLAY_NAME]'; - - update_account_sample($accountDisplayName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php deleted file mode 100644 index b52446f2677d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php +++ /dev/null @@ -1,62 +0,0 @@ -setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->updateConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php deleted file mode 100644 index 908ab16d4b44..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->updateCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php deleted file mode 100644 index 8a6e51896254..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->updateCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php deleted file mode 100644 index 68eb178ad990..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php +++ /dev/null @@ -1,62 +0,0 @@ -setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataRetentionSettings $response */ - $response = $analyticsAdminServiceClient->updateDataRetentionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php deleted file mode 100644 index e09c7029213a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->updateDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php deleted file mode 100644 index d22e6e783bc1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var GoogleAdsLink $response */ - $response = $analyticsAdminServiceClient->updateGoogleAdsLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php deleted file mode 100644 index 4d07dadbb982..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php +++ /dev/null @@ -1,76 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - update_measurement_protocol_secret_sample($measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php deleted file mode 100644 index 58f0649789dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php +++ /dev/null @@ -1,88 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->updateProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - update_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php deleted file mode 100644 index 04dd1cf15e61..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName(string $account): string - { - return self::getPathTemplate('account')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName(string $property, string $conversionEvent): string - { - return self::getPathTemplate('conversionEvent')->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName(string $property, string $customDimension): string - { - return self::getPathTemplate('customDimension')->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName(string $property, string $customMetric): string - { - return self::getPathTemplate('customMetric')->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName(string $property): string - { - return self::getPathTemplate('dataRetentionSettings')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName(string $account): string - { - return self::getPathTemplate('dataSharingSettings')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName(string $property, string $dataStream): string - { - return self::getPathTemplate('dataStream')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName(string $property, string $firebaseLink): string - { - return self::getPathTemplate('firebaseLink')->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName(string $property, string $googleAdsLink): string - { - return self::getPathTemplate('googleAdsLink')->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName(string $property, string $dataStream, string $measurementProtocolSecret): string - { - return self::getPathTemplate('measurementProtocolSecret')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName(string $property): string - { - return self::getPathTemplate('property')->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::acknowledgeUserDataCollectionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php - * - * @param AcknowledgeUserDataCollectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AcknowledgeUserDataCollectionResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest $request, array $callOptions = []): AcknowledgeUserDataCollectionResponse - { - return $this->startApiCall('AcknowledgeUserDataCollection', $request, $callOptions)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::archiveCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php - * - * @param ArchiveCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveCustomDimension(ArchiveCustomDimensionRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::archiveCustomMetricAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php - * - * @param ArchiveCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveCustomMetric(ArchiveCustomMetricRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Creates a conversion event with the specified attributes. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php - * - * @param CreateConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createConversionEvent(CreateConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('CreateConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Creates a CustomDimension. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php - * - * @param CreateCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCustomDimension(CreateCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('CreateCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Creates a CustomMetric. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCustomMetricAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php - * - * @param CreateCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCustomMetric(CreateCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('CreateCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Creates a DataStream. - * - * The async variant is {@see AnalyticsAdminServiceClient::createDataStreamAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php - * - * @param CreateDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createDataStream(CreateDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('CreateDataStream', $request, $callOptions)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createFirebaseLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php - * - * @param CreateFirebaseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FirebaseLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createFirebaseLink(CreateFirebaseLinkRequest $request, array $callOptions = []): FirebaseLink - { - return $this->startApiCall('CreateFirebaseLink', $request, $callOptions)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createGoogleAdsLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php - * - * @param CreateGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleAdsLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createGoogleAdsLink(CreateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink - { - return $this->startApiCall('CreateGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php - * - * @param CreateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('CreateMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * The async variant is {@see AnalyticsAdminServiceClient::createPropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_property.php - * - * @param CreatePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createProperty(CreatePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('CreateProperty', $request, $callOptions)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteAccountAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_account.php - * - * @param DeleteAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteAccount(DeleteAccountRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAccount', $request, $callOptions)->wait(); - } - - /** - * Deletes a conversion event in a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php - * - * @param DeleteConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteConversionEvent(DeleteConversionEventRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteDataStreamAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php - * - * @param DeleteDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteDataStream(DeleteDataStreamRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataStream', $request, $callOptions)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteFirebaseLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php - * - * @param DeleteFirebaseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteFirebaseLink(DeleteFirebaseLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFirebaseLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteGoogleAdsLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php - * - * @param DeleteGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php - * - * @param DeleteMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * The async variant is {@see AnalyticsAdminServiceClient::deletePropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_property.php - * - * @param DeletePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteProperty(DeletePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('DeleteProperty', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single Account. - * - * The async variant is {@see AnalyticsAdminServiceClient::getAccountAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_account.php - * - * @param GetAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Account - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAccount(GetAccountRequest $request, array $callOptions = []): Account - { - return $this->startApiCall('GetAccount', $request, $callOptions)->wait(); - } - - /** - * Retrieve a single conversion event. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php - * - * @param GetConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getConversionEvent(GetConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('GetConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php - * - * @param GetCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomDimension(GetCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('GetCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * The async variant is {@see AnalyticsAdminServiceClient::getCustomMetricAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php - * - * @param GetCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomMetric(GetCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('GetCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataRetentionSettingsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php - * - * @param GetDataRetentionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRetentionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataRetentionSettings(GetDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings - { - return $this->startApiCall('GetDataRetentionSettings', $request, $callOptions)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataSharingSettingsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php - * - * @param GetDataSharingSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataSharingSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataSharingSettings(GetDataSharingSettingsRequest $request, array $callOptions = []): DataSharingSettings - { - return $this->startApiCall('GetDataSharingSettings', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * The async variant is {@see AnalyticsAdminServiceClient::getDataStreamAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php - * - * @param GetDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataStream(GetDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('GetDataStream', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php - * - * @param GetMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('GetMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * The async variant is {@see AnalyticsAdminServiceClient::getPropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_property.php - * - * @param GetPropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getProperty(GetPropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('GetProperty', $request, $callOptions)->wait(); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listAccountSummariesAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php - * - * @param ListAccountSummariesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccountSummaries(ListAccountSummariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccountSummaries', $request, $callOptions); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listAccountsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php - * - * @param ListAccountsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccounts(ListAccountsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccounts', $request, $callOptions); - } - - /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listConversionEventsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php - * - * @param ListConversionEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listConversionEvents(ListConversionEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConversionEvents', $request, $callOptions); - } - - /** - * Lists CustomDimensions on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCustomDimensionsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php - * - * @param ListCustomDimensionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomDimensions(ListCustomDimensionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomDimensions', $request, $callOptions); - } - - /** - * Lists CustomMetrics on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCustomMetricsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php - * - * @param ListCustomMetricsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomMetrics(ListCustomMetricsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomMetrics', $request, $callOptions); - } - - /** - * Lists DataStreams on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::listDataStreamsAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php - * - * @param ListDataStreamsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listDataStreams(ListDataStreamsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataStreams', $request, $callOptions); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listFirebaseLinksAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php - * - * @param ListFirebaseLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listFirebaseLinks(ListFirebaseLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFirebaseLinks', $request, $callOptions); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listGoogleAdsLinksAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php - * - * @param ListGoogleAdsLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listGoogleAdsLinks(ListGoogleAdsLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGoogleAdsLinks', $request, $callOptions); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listMeasurementProtocolSecretsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php - * - * @param ListMeasurementProtocolSecretsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMeasurementProtocolSecrets', $request, $callOptions); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listPropertiesAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_properties.php - * - * @param ListPropertiesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listProperties(ListPropertiesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProperties', $request, $callOptions); - } - - /** - * Requests a ticket for creating an account. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::provisionAccountTicketAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php - * - * @param ProvisionAccountTicketRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProvisionAccountTicketResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function provisionAccountTicket(ProvisionAccountTicketRequest $request, array $callOptions = []): ProvisionAccountTicketResponse - { - return $this->startApiCall('ProvisionAccountTicket', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * The async variant is {@see AnalyticsAdminServiceClient::runAccessReportAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php - * - * @param RunAccessReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunAccessReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runAccessReport(RunAccessReportRequest $request, array $callOptions = []): RunAccessReportResponse - { - return $this->startApiCall('RunAccessReport', $request, $callOptions)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::searchChangeHistoryEventsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php - * - * @param SearchChangeHistoryEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function searchChangeHistoryEvents(SearchChangeHistoryEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchChangeHistoryEvents', $request, $callOptions); - } - - /** - * Updates an account. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateAccountAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_account.php - * - * @param UpdateAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Account - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateAccount(UpdateAccountRequest $request, array $callOptions = []): Account - { - return $this->startApiCall('UpdateAccount', $request, $callOptions)->wait(); - } - - /** - * Updates a conversion event with the specified attributes. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php - * - * @param UpdateConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateConversionEvent(UpdateConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('UpdateConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php - * - * @param UpdateCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCustomDimension(UpdateCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('UpdateCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCustomMetricAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php - * - * @param UpdateCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCustomMetric(UpdateCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('UpdateCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateDataRetentionSettingsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php - * - * @param UpdateDataRetentionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRetentionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataRetentionSettings(UpdateDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings - { - return $this->startApiCall('UpdateDataRetentionSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateDataStreamAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php - * - * @param UpdateDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataStream(UpdateDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('UpdateDataStream', $request, $callOptions)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateGoogleAdsLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php - * - * @param UpdateGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleAdsLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateGoogleAdsLink(UpdateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink - { - return $this->startApiCall('UpdateGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php - * - * @param UpdateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('UpdateMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Updates a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updatePropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_property.php - * - * @param UpdatePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateProperty(UpdatePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('UpdateProperty', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php deleted file mode 100644 index 797df3e1e30e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php +++ /dev/null @@ -1,3310 +0,0 @@ -propertyName('[PROPERTY]'); - * $acknowledgement = 'acknowledgement'; - * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * This service has a new (beta) implementation. See {@see - * \Google\Analytics\Admin\V1beta\Client\AnalyticsAdminServiceClient} to use the - * new surface. - * - * @experimental - */ -class AnalyticsAdminServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.admin.v1beta.AnalyticsAdminService'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics.edit', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static $accountNameTemplate; - - private static $conversionEventNameTemplate; - - private static $customDimensionNameTemplate; - - private static $customMetricNameTemplate; - - private static $dataRetentionSettingsNameTemplate; - - private static $dataSharingSettingsNameTemplate; - - private static $dataStreamNameTemplate; - - private static $firebaseLinkNameTemplate; - - private static $googleAdsLinkNameTemplate; - - private static $measurementProtocolSecretNameTemplate; - - private static $propertyNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getAccountNameTemplate() - { - if (self::$accountNameTemplate == null) { - self::$accountNameTemplate = new PathTemplate('accounts/{account}'); - } - - return self::$accountNameTemplate; - } - - private static function getConversionEventNameTemplate() - { - if (self::$conversionEventNameTemplate == null) { - self::$conversionEventNameTemplate = new PathTemplate('properties/{property}/conversionEvents/{conversion_event}'); - } - - return self::$conversionEventNameTemplate; - } - - private static function getCustomDimensionNameTemplate() - { - if (self::$customDimensionNameTemplate == null) { - self::$customDimensionNameTemplate = new PathTemplate('properties/{property}/customDimensions/{custom_dimension}'); - } - - return self::$customDimensionNameTemplate; - } - - private static function getCustomMetricNameTemplate() - { - if (self::$customMetricNameTemplate == null) { - self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics/{custom_metric}'); - } - - return self::$customMetricNameTemplate; - } - - private static function getDataRetentionSettingsNameTemplate() - { - if (self::$dataRetentionSettingsNameTemplate == null) { - self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings'); - } - - return self::$dataRetentionSettingsNameTemplate; - } - - private static function getDataSharingSettingsNameTemplate() - { - if (self::$dataSharingSettingsNameTemplate == null) { - self::$dataSharingSettingsNameTemplate = new PathTemplate('accounts/{account}/dataSharingSettings'); - } - - return self::$dataSharingSettingsNameTemplate; - } - - private static function getDataStreamNameTemplate() - { - if (self::$dataStreamNameTemplate == null) { - self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}'); - } - - return self::$dataStreamNameTemplate; - } - - private static function getFirebaseLinkNameTemplate() - { - if (self::$firebaseLinkNameTemplate == null) { - self::$firebaseLinkNameTemplate = new PathTemplate('properties/{property}/firebaseLinks/{firebase_link}'); - } - - return self::$firebaseLinkNameTemplate; - } - - private static function getGoogleAdsLinkNameTemplate() - { - if (self::$googleAdsLinkNameTemplate == null) { - self::$googleAdsLinkNameTemplate = new PathTemplate('properties/{property}/googleAdsLinks/{google_ads_link}'); - } - - return self::$googleAdsLinkNameTemplate; - } - - private static function getMeasurementProtocolSecretNameTemplate() - { - if (self::$measurementProtocolSecretNameTemplate == null) { - self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}'); - } - - return self::$measurementProtocolSecretNameTemplate; - } - - private static function getPropertyNameTemplate() - { - if (self::$propertyNameTemplate == null) { - self::$propertyNameTemplate = new PathTemplate('properties/{property}'); - } - - return self::$propertyNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'account' => self::getAccountNameTemplate(), - 'conversionEvent' => self::getConversionEventNameTemplate(), - 'customDimension' => self::getCustomDimensionNameTemplate(), - 'customMetric' => self::getCustomMetricNameTemplate(), - 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), - 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), - 'dataStream' => self::getDataStreamNameTemplate(), - 'firebaseLink' => self::getFirebaseLinkNameTemplate(), - 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), - 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName($account) - { - return self::getAccountNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName($property, $conversionEvent) - { - return self::getConversionEventNameTemplate()->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName($property, $customDimension) - { - return self::getCustomDimensionNameTemplate()->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName($property, $customMetric) - { - return self::getCustomMetricNameTemplate()->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName($property) - { - return self::getDataRetentionSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName($account) - { - return self::getDataSharingSettingsNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName($property, $dataStream) - { - return self::getDataStreamNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName($property, $firebaseLink) - { - return self::getFirebaseLinkNameTemplate()->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName($property, $googleAdsLink) - { - return self::getGoogleAdsLinkNameTemplate()->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName($property, $dataStream, $measurementProtocolSecret) - { - return self::getMeasurementProtocolSecretNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName($property) - { - return self::getPropertyNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $acknowledgement = 'acknowledgement'; - * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The property for which to acknowledge user data collection. - * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\AcknowledgeUserDataCollectionResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = []) - { - $request = new AcknowledgeUserDataCollectionRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setAcknowledgement($acknowledgement); - $requestParamHeaders['property'] = $property; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomDimension($name, array $optionalArgs = []) - { - $request = new ArchiveCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomDimension', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $analyticsAdminServiceClient->archiveCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomMetric($name, array $optionalArgs = []) - { - $request = new ArchiveCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createConversionEvent($conversionEvent, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to create. - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = []) - { - $request = new CreateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customDimension = new CustomDimension(); - * $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomDimension $customDimension Required. The CustomDimension to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomDimension($parent, $customDimension, array $optionalArgs = []) - { - $request = new CreateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomDimension($customDimension); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customMetric = new CustomMetric(); - * $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomMetric $customMetric Required. The CustomMetric to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomMetric($parent, $customMetric, array $optionalArgs = []) - { - $request = new CreateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomMetric($customMetric); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $dataStream = new DataStream(); - * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DataStream $dataStream Required. The DataStream to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDataStream($parent, $dataStream, array $optionalArgs = []) - { - $request = new CreateDataStreamRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDataStream($dataStream); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $firebaseLink = new FirebaseLink(); - * $response = $analyticsAdminServiceClient->createFirebaseLink($formattedParent, $firebaseLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param FirebaseLink $firebaseLink Required. The Firebase link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\FirebaseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createFirebaseLink($parent, $firebaseLink, array $optionalArgs = []) - { - $request = new CreateFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setFirebaseLink($firebaseLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $googleAdsLink = new GoogleAdsLink(); - * $response = $analyticsAdminServiceClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs = []) - { - $request = new CreateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setGoogleAdsLink($googleAdsLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createMeasurementProtocolSecret($parent, $measurementProtocolSecret, array $optionalArgs = []) - { - $request = new CreateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $response = $analyticsAdminServiceClient->createProperty($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createProperty($property, array $optionalArgs = []) - { - $request = new CreatePropertyRequest(); - $request->setProperty($property); - return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $analyticsAdminServiceClient->deleteAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAccount($name, array $optionalArgs = []) - { - $request = new DeleteAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAccount', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a conversion event in a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $analyticsAdminServiceClient->deleteConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteConversionEvent($name, array $optionalArgs = []) - { - $request = new DeleteConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDataStream($name, array $optionalArgs = []) - { - $request = new DeleteDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteFirebaseLink($name, array $optionalArgs = []) - { - $request = new DeleteFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteFirebaseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - * $analyticsAdminServiceClient->deleteGoogleAdsLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteGoogleAdsLink($name, array $optionalArgs = []) - { - $request = new DeleteGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new DeleteMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteMeasurementProtocolSecret', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->deleteProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteProperty($name, array $optionalArgs = []) - { - $request = new DeletePropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single Account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAccount($name, array $optionalArgs = []) - { - $request = new GetAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieve a single conversion event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $response = $analyticsAdminServiceClient->getConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getConversionEvent($name, array $optionalArgs = []) - { - $request = new GetConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $response = $analyticsAdminServiceClient->getCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomDimension($name, array $optionalArgs = []) - { - $request = new GetCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $response = $analyticsAdminServiceClient->getCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomMetric($name, array $optionalArgs = []) - { - $request = new GetCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataRetentionSettings($name, array $optionalArgs = []) - { - $request = new GetDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataSharingSettingsName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getDataSharingSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataSharingSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataSharingSettings($name, array $optionalArgs = []) - { - $request = new GetDataSharingSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataStream($name, array $optionalArgs = []) - { - $request = new GetDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new GetMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getProperty($name, array $optionalArgs = []) - { - $request = new GetPropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccountSummaries(array $optionalArgs = []) - { - $request = new ListAccountSummariesRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - return $this->getPagedListResponse('ListAccountSummaries', $optionalArgs, ListAccountSummariesResponse::class, $request); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccounts(array $optionalArgs = []) - { - $request = new ListAccountsRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListAccounts', $optionalArgs, ListAccountsResponse::class, $request); - } - - /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listConversionEvents($parent, array $optionalArgs = []) - { - $request = new ListConversionEventsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListConversionEvents', $optionalArgs, ListConversionEventsResponse::class, $request); - } - - /** - * Lists CustomDimensions on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomDimensions($parent, array $optionalArgs = []) - { - $request = new ListCustomDimensionsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomDimensions', $optionalArgs, ListCustomDimensionsResponse::class, $request); - } - - /** - * Lists CustomMetrics on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomMetrics($parent, array $optionalArgs = []) - { - $request = new ListCustomMetricsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request); - } - - /** - * Lists DataStreams on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDataStreams($parent, array $optionalArgs = []) - { - $request = new ListDataStreamsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listFirebaseLinks($parent, array $optionalArgs = []) - { - $request = new ListFirebaseLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListFirebaseLinks', $optionalArgs, ListFirebaseLinksResponse::class, $request); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listGoogleAdsLinks($parent, array $optionalArgs = []) - { - $request = new ListGoogleAdsLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listMeasurementProtocolSecrets($parent, array $optionalArgs = []) - { - $request = new ListMeasurementProtocolSecretsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListMeasurementProtocolSecrets', $optionalArgs, ListMeasurementProtocolSecretsResponse::class, $request); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $filter = 'filter'; - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $filter Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listProperties($filter, array $optionalArgs = []) - { - $request = new ListPropertiesRequest(); - $request->setFilter($filter); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListProperties', $optionalArgs, ListPropertiesResponse::class, $request); - } - - /** - * Requests a ticket for creating an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->provisionAccountTicket(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type Account $account - * The account to create. - * @type string $redirectUri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ProvisionAccountTicketResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function provisionAccountTicket(array $optionalArgs = []) - { - $request = new ProvisionAccountTicketRequest(); - if (isset($optionalArgs['account'])) { - $request->setAccount($optionalArgs['account']); - } - - if (isset($optionalArgs['redirectUri'])) { - $request->setRedirectUri($optionalArgs['redirectUri']); - } - - return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. The property must be - * in Google Analytics 360. This method is only available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->runAccessReport(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type AccessDimension[] $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type AccessMetric[] $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type AccessDateRange[] $dateRanges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type AccessFilterExpression $dimensionFilter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type AccessFilterExpression $metricFilter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $timeZone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type AccessOrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type bool $returnEntityQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\RunAccessReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runAccessReport(array $optionalArgs = []) - { - $request = new RunAccessReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['entity'])) { - $request->setEntity($optionalArgs['entity']); - $requestParamHeaders['entity'] = $optionalArgs['entity']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['timeZone'])) { - $request->setTimeZone($optionalArgs['timeZone']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['returnEntityQuota'])) { - $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedAccount = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $account Required. The account resource for which to return change history - * resources. - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @type int[] $resourceType - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1beta\ChangeHistoryResourceType} - * @type int[] $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1beta\ActionType} - * @type string[] $actorEmail - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type Timestamp $earliestChangeTime - * Optional. If set, only return changes made after this time (inclusive). - * @type Timestamp $latestChangeTime - * Optional. If set, only return changes made before this time (inclusive). - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function searchChangeHistoryEvents($account, array $optionalArgs = []) - { - $request = new SearchChangeHistoryEventsRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $requestParamHeaders['account'] = $account; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - if (isset($optionalArgs['resourceType'])) { - $request->setResourceType($optionalArgs['resourceType']); - } - - if (isset($optionalArgs['action'])) { - $request->setAction($optionalArgs['action']); - } - - if (isset($optionalArgs['actorEmail'])) { - $request->setActorEmail($optionalArgs['actorEmail']); - } - - if (isset($optionalArgs['earliestChangeTime'])) { - $request->setEarliestChangeTime($optionalArgs['earliestChangeTime']); - } - - if (isset($optionalArgs['latestChangeTime'])) { - $request->setLatestChangeTime($optionalArgs['latestChangeTime']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('SearchChangeHistoryEvents', $optionalArgs, SearchChangeHistoryEventsResponse::class, $request); - } - - /** - * Updates an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $account = new Account(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAccount($account, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAccountRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $request->setUpdateMask($updateMask); - $requestParamHeaders['account.name'] = $account->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateConversionEvent($conversionEvent, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = []) - { - $request = new UpdateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setUpdateMask($updateMask); - $requestParamHeaders['conversion_event.name'] = $conversionEvent->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomDimension($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomDimension $customDimension - * The CustomDimension to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomDimension($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customDimension'])) { - $request->setCustomDimension($optionalArgs['customDimension']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomMetric($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomMetric $customMetric - * The CustomMetric to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomMetric($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customMetric'])) { - $request->setCustomMetric($optionalArgs['customMetric']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $dataRetentionSettings = new DataRetentionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setDataRetentionSettings($dataRetentionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type DataStream $dataStream - * The DataStream to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataStream($updateMask, array $optionalArgs = []) - { - $request = new UpdateDataStreamRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['dataStream'])) { - $request->setDataStream($optionalArgs['dataStream']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateGoogleAdsLink($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type GoogleAdsLink $googleAdsLink - * The GoogleAdsLink to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGoogleAdsLink($updateMask, array $optionalArgs = []) - { - $request = new UpdateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['googleAdsLink'])) { - $request->setGoogleAdsLink($optionalArgs['googleAdsLink']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask, array $optionalArgs = []) - { - $request = new UpdateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $request->setUpdateMask($updateMask); - $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateProperty($property, $updateMask, array $optionalArgs = []) - { - $request = new UpdatePropertyRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setUpdateMask($updateMask); - $requestParamHeaders['property.name'] = $property->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateProperty', Property::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 3f81008d639d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.admin.v1beta", - "libraryPackage": "Google\\Analytics\\Admin\\V1beta", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "AnalyticsAdminServiceGapicClient", - "rpcs": { - "AcknowledgeUserDataCollection": { - "methods": [ - "acknowledgeUserDataCollection" - ] - }, - "ArchiveCustomDimension": { - "methods": [ - "archiveCustomDimension" - ] - }, - "ArchiveCustomMetric": { - "methods": [ - "archiveCustomMetric" - ] - }, - "CreateConversionEvent": { - "methods": [ - "createConversionEvent" - ] - }, - "CreateCustomDimension": { - "methods": [ - "createCustomDimension" - ] - }, - "CreateCustomMetric": { - "methods": [ - "createCustomMetric" - ] - }, - "CreateDataStream": { - "methods": [ - "createDataStream" - ] - }, - "CreateFirebaseLink": { - "methods": [ - "createFirebaseLink" - ] - }, - "CreateGoogleAdsLink": { - "methods": [ - "createGoogleAdsLink" - ] - }, - "CreateMeasurementProtocolSecret": { - "methods": [ - "createMeasurementProtocolSecret" - ] - }, - "CreateProperty": { - "methods": [ - "createProperty" - ] - }, - "DeleteAccount": { - "methods": [ - "deleteAccount" - ] - }, - "DeleteConversionEvent": { - "methods": [ - "deleteConversionEvent" - ] - }, - "DeleteDataStream": { - "methods": [ - "deleteDataStream" - ] - }, - "DeleteFirebaseLink": { - "methods": [ - "deleteFirebaseLink" - ] - }, - "DeleteGoogleAdsLink": { - "methods": [ - "deleteGoogleAdsLink" - ] - }, - "DeleteMeasurementProtocolSecret": { - "methods": [ - "deleteMeasurementProtocolSecret" - ] - }, - "DeleteProperty": { - "methods": [ - "deleteProperty" - ] - }, - "GetAccount": { - "methods": [ - "getAccount" - ] - }, - "GetConversionEvent": { - "methods": [ - "getConversionEvent" - ] - }, - "GetCustomDimension": { - "methods": [ - "getCustomDimension" - ] - }, - "GetCustomMetric": { - "methods": [ - "getCustomMetric" - ] - }, - "GetDataRetentionSettings": { - "methods": [ - "getDataRetentionSettings" - ] - }, - "GetDataSharingSettings": { - "methods": [ - "getDataSharingSettings" - ] - }, - "GetDataStream": { - "methods": [ - "getDataStream" - ] - }, - "GetMeasurementProtocolSecret": { - "methods": [ - "getMeasurementProtocolSecret" - ] - }, - "GetProperty": { - "methods": [ - "getProperty" - ] - }, - "ListAccountSummaries": { - "methods": [ - "listAccountSummaries" - ] - }, - "ListAccounts": { - "methods": [ - "listAccounts" - ] - }, - "ListConversionEvents": { - "methods": [ - "listConversionEvents" - ] - }, - "ListCustomDimensions": { - "methods": [ - "listCustomDimensions" - ] - }, - "ListCustomMetrics": { - "methods": [ - "listCustomMetrics" - ] - }, - "ListDataStreams": { - "methods": [ - "listDataStreams" - ] - }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, - "ListGoogleAdsLinks": { - "methods": [ - "listGoogleAdsLinks" - ] - }, - "ListMeasurementProtocolSecrets": { - "methods": [ - "listMeasurementProtocolSecrets" - ] - }, - "ListProperties": { - "methods": [ - "listProperties" - ] - }, - "ProvisionAccountTicket": { - "methods": [ - "provisionAccountTicket" - ] - }, - "RunAccessReport": { - "methods": [ - "runAccessReport" - ] - }, - "SearchChangeHistoryEvents": { - "methods": [ - "searchChangeHistoryEvents" - ] - }, - "UpdateAccount": { - "methods": [ - "updateAccount" - ] - }, - "UpdateConversionEvent": { - "methods": [ - "updateConversionEvent" - ] - }, - "UpdateCustomDimension": { - "methods": [ - "updateCustomDimension" - ] - }, - "UpdateCustomMetric": { - "methods": [ - "updateCustomMetric" - ] - }, - "UpdateDataRetentionSettings": { - "methods": [ - "updateDataRetentionSettings" - ] - }, - "UpdateDataStream": { - "methods": [ - "updateDataStream" - ] - }, - "UpdateGoogleAdsLink": { - "methods": [ - "updateGoogleAdsLink" - ] - }, - "UpdateMeasurementProtocolSecret": { - "methods": [ - "updateMeasurementProtocolSecret" - ] - }, - "UpdateProperty": { - "methods": [ - "updateProperty" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json deleted file mode 100644 index 0ddd065aba14..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json +++ /dev/null @@ -1,280 +0,0 @@ -{ - "interfaces": { - "google.analytics.admin.v1beta.AnalyticsAdminService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AcknowledgeUserDataCollection": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataSharingSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccountSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccounts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConversionEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomDimensions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomMetrics": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFirebaseLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListGoogleAdsLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMeasurementProtocolSecrets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProperties": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ProvisionAccountTicket": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunAccessReport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchChangeHistoryEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php deleted file mode 100644 index da5caf42f1e7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php +++ /dev/null @@ -1,666 +0,0 @@ - [ - 'google.analytics.admin.v1beta.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\AcknowledgeUserDataCollectionResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\FirebaseLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\GoogleAdsLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - ], - 'DeleteAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Account', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataRetentionSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataSharingSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccountSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListAccountSummariesResponse', - ], - 'ListAccounts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccounts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListAccountsResponse', - ], - 'ListConversionEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversionEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListConversionEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomDimensions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListCustomDimensionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomMetrics', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListCustomMetricsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataStreams', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListDataStreamsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFirebaseLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListFirebaseLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGoogleAdsLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListGoogleAdsLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMeasurementProtocolSecrets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListMeasurementProtocolSecretsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProperties', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListPropertiesResponse', - ], - 'ProvisionAccountTicket' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ProvisionAccountTicketResponse', - ], - 'RunAccessReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\RunAccessReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'entity', - 'fieldAccessors' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChangeHistoryEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\SearchChangeHistoryEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'account', - 'fieldAccessors' => [ - 'getAccount', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Account', - 'headerParams' => [ - [ - 'keyName' => 'account.name', - 'fieldAccessors' => [ - 'getAccount', - 'getName', - ], - ], - ], - ], - 'UpdateConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'conversion_event.name', - 'fieldAccessors' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - ], - 'UpdateCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'custom_dimension.name', - 'fieldAccessors' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - ], - 'UpdateCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'custom_metric.name', - 'fieldAccessors' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - ], - 'UpdateDataRetentionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataRetentionSettings', - 'headerParams' => [ - [ - 'keyName' => 'data_retention_settings.name', - 'fieldAccessors' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - ], - 'UpdateDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'data_stream.name', - 'fieldAccessors' => [ - 'getDataStream', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\GoogleAdsLink', - 'headerParams' => [ - [ - 'keyName' => 'google_ads_link.name', - 'fieldAccessors' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'measurement_protocol_secret.name', - 'fieldAccessors' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - ], - 'UpdateProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - 'headerParams' => [ - [ - 'keyName' => 'property.name', - 'fieldAccessors' => [ - 'getProperty', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'account' => 'accounts/{account}', - 'conversionEvent' => 'properties/{property}/conversionEvents/{conversion_event}', - 'customDimension' => 'properties/{property}/customDimensions/{custom_dimension}', - 'customMetric' => 'properties/{property}/customMetrics/{custom_metric}', - 'dataRetentionSettings' => 'properties/{property}/dataRetentionSettings', - 'dataSharingSettings' => 'accounts/{account}/dataSharingSettings', - 'dataStream' => 'properties/{property}/dataStreams/{data_stream}', - 'firebaseLink' => 'properties/{property}/firebaseLinks/{firebase_link}', - 'googleAdsLink' => 'properties/{property}/googleAdsLinks/{google_ads_link}', - 'measurementProtocolSecret' => 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}', - 'property' => 'properties/{property}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php deleted file mode 100644 index 096d5c5eea1b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php +++ /dev/null @@ -1,582 +0,0 @@ - [ - 'google.analytics.admin.v1beta.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:acknowledgeUserDataCollection', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=properties/*/customDimensions/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=properties/*/customMetrics/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateConversionEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/conversionEvents', - 'body' => 'conversion_event', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customDimensions', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customMetrics', - 'body' => 'custom_metric', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/dataStreams', - 'body' => 'data_stream', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/firebaseLinks', - 'body' => 'firebase_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/googleAdsLinks', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/properties', - 'body' => 'property', - ], - 'DeleteAccount' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConversionEvent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/firebaseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/googleAdsLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/customDimensions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/customMetrics/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/dataRetentionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=accounts/*/dataSharingSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/accountSummaries', - ], - 'ListAccounts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/accounts', - ], - 'ListConversionEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/conversionEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customDimensions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customMetrics', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/dataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/firebaseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/googleAdsLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/properties', - 'queryParams' => [ - 'filter', - ], - ], - 'ProvisionAccountTicket' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/accounts:provisionAccountTicket', - 'body' => '*', - ], - 'RunAccessReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{entity=properties/*}:runAccessReport', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{entity=accounts/*}:runAccessReport', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'entity' => [ - 'getters' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{account=accounts/*}:searchChangeHistoryEvents', - 'body' => '*', - 'placeholders' => [ - 'account' => [ - 'getters' => [ - 'getAccount', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{account.name=accounts/*}', - 'body' => 'account', - 'placeholders' => [ - 'account.name' => [ - 'getters' => [ - 'getAccount', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateConversionEvent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{conversion_event.name=properties/*/conversionEvents/*}', - 'body' => 'conversion_event', - 'placeholders' => [ - 'conversion_event.name' => [ - 'getters' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomDimension' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{custom_dimension.name=properties/*/customDimensions/*}', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'custom_dimension.name' => [ - 'getters' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomMetric' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{custom_metric.name=properties/*/customMetrics/*}', - 'body' => 'custom_metric', - 'placeholders' => [ - 'custom_metric.name' => [ - 'getters' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataRetentionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}', - 'body' => 'data_retention_settings', - 'placeholders' => [ - 'data_retention_settings.name' => [ - 'getters' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{data_stream.name=properties/*/dataStreams/*}', - 'body' => 'data_stream', - 'placeholders' => [ - 'data_stream.name' => [ - 'getters' => [ - 'getDataStream', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGoogleAdsLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'google_ads_link.name' => [ - 'getters' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'measurement_protocol_secret.name' => [ - 'getters' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateProperty' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{property.name=properties/*}', - 'body' => 'property', - 'placeholders' => [ - 'property.name' => [ - 'getters' => [ - 'getProperty', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index 8e99d4b18a02..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,3341 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $response = $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - try { - $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $gapicClient->archiveCustomDimension($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->archiveCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $gapicClient->archiveCustomMetric($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->archiveCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $response = $gapicClient->createCustomDimension($formattedParent, $customDimension); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - try { - $gapicClient->createCustomDimension($formattedParent, $customDimension); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $response = $gapicClient->createCustomMetric($formattedParent, $customMetric); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - try { - $gapicClient->createCustomMetric($formattedParent, $customMetric); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $response = $gapicClient->createDataStream($formattedParent, $dataStream); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - try { - $gapicClient->createDataStream($formattedParent, $dataStream); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $response = $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - try { - $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $response = $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - try { - $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $response = $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - try { - $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $response = $gapicClient->createProperty($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - try { - $gapicClient->createProperty($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $gapicClient->deleteAccount($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->deleteAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $gapicClient->deleteConversionEvent($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->deleteConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $gapicClient->deleteDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->deleteDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $gapicClient->deleteFirebaseLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - try { - $gapicClient->deleteFirebaseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $gapicClient->deleteGoogleAdsLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - try { - $gapicClient->deleteGoogleAdsLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->deleteProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->deleteProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->getAccount($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->getAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $response = $gapicClient->getConversionEvent($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->getConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $response = $gapicClient->getCustomDimension($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->getCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $response = $gapicClient->getCustomMetric($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->getCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $response = $gapicClient->getDataRetentionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - try { - $gapicClient->getDataRetentionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $response = $gapicClient->getDataSharingSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - try { - $gapicClient->getDataSharingSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getDataStream($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $response = $gapicClient->getMeasurementProtocolSecret($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->getMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->getProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->getProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccountSummaries(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccountSummaries(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccounts(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccounts(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listConversionEvents($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listConversionEvents($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomDimensions($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomDimensions($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomMetrics($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomMetrics($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDataStreams($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listFirebaseLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listFirebaseLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listGoogleAdsLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listGoogleAdsLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listMeasurementProtocolSecrets($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listMeasurementProtocolSecrets($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $response = $gapicClient->listProperties($filter); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - try { - $gapicClient->listProperties($filter); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $response = $gapicClient->provisionAccountTicket(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->provisionAccountTicket(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runAccessReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runAccessReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->searchChangeHistoryEvents($formattedAccount); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->searchChangeHistoryEvents($formattedAccount); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAccount($account, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAccount($account, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomDimension($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomDimension($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomMetric($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomMetric($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataStream($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataStream($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateGoogleAdsLink($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateGoogleAdsLink($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $response = $gapicClient->updateProperty($property, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - try { - $gapicClient->updateProperty($property, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index 0e9574c4843e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,3635 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - $response = $gapicClient->acknowledgeUserDataCollection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - try { - $gapicClient->acknowledgeUserDataCollection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new ArchiveCustomDimensionRequest()) - ->setName($formattedName); - $gapicClient->archiveCustomDimension($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new ArchiveCustomDimensionRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new ArchiveCustomMetricRequest()) - ->setName($formattedName); - $gapicClient->archiveCustomMetric($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new ArchiveCustomMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setParent($formattedParent); - $response = $gapicClient->createConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setParent($formattedParent); - try { - $gapicClient->createConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - $response = $gapicClient->createCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - try { - $gapicClient->createCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - $response = $gapicClient->createCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - try { - $gapicClient->createCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - $response = $gapicClient->createDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - try { - $gapicClient->createDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $request = (new CreateFirebaseLinkRequest()) - ->setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - $response = $gapicClient->createFirebaseLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $request = (new CreateFirebaseLinkRequest()) - ->setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - try { - $gapicClient->createFirebaseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $request = (new CreateGoogleAdsLinkRequest()) - ->setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - $response = $gapicClient->createGoogleAdsLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $request = (new CreateGoogleAdsLinkRequest()) - ->setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - try { - $gapicClient->createGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - $response = $gapicClient->createMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - try { - $gapicClient->createMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - $response = $gapicClient->createProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - try { - $gapicClient->createProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new DeleteAccountRequest()) - ->setName($formattedName); - $gapicClient->deleteAccount($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new DeleteAccountRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new DeleteConversionEventRequest()) - ->setName($formattedName); - $gapicClient->deleteConversionEvent($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new DeleteConversionEventRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new DeleteDataStreamRequest()) - ->setName($formattedName); - $gapicClient->deleteDataStream($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new DeleteDataStreamRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $request = (new DeleteFirebaseLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteFirebaseLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $request = (new DeleteFirebaseLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFirebaseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $request = (new DeleteGoogleAdsLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteGoogleAdsLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $request = (new DeleteGoogleAdsLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new DeleteMeasurementProtocolSecretRequest()) - ->setName($formattedName); - $gapicClient->deleteMeasurementProtocolSecret($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new DeleteMeasurementProtocolSecretRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new DeletePropertyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new DeletePropertyRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new GetAccountRequest()) - ->setName($formattedName); - $response = $gapicClient->getAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new GetAccountRequest()) - ->setName($formattedName); - try { - $gapicClient->getAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new GetConversionEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new GetConversionEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new GetCustomDimensionRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new GetCustomDimensionRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new GetCustomMetricRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new GetCustomMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $request = (new GetDataRetentionSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataRetentionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $request = (new GetDataRetentionSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataRetentionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $request = (new GetDataSharingSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataSharingSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $request = (new GetDataSharingSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataSharingSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataStreamRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataStreamRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new GetMeasurementProtocolSecretRequest()) - ->setName($formattedName); - $response = $gapicClient->getMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new GetMeasurementProtocolSecretRequest()) - ->setName($formattedName); - try { - $gapicClient->getMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new GetPropertyRequest()) - ->setName($formattedName); - $response = $gapicClient->getProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new GetPropertyRequest()) - ->setName($formattedName); - try { - $gapicClient->getProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $request = new ListAccountSummariesRequest(); - $response = $gapicClient->listAccountSummaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAccountSummariesRequest(); - try { - $gapicClient->listAccountSummaries($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $request = new ListAccountsRequest(); - $response = $gapicClient->listAccounts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAccountsRequest(); - try { - $gapicClient->listAccounts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListConversionEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConversionEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListConversionEventsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConversionEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomDimensionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomDimensions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomDimensionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomDimensions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomMetricsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomMetrics($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomMetricsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomMetrics($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDataStreamsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataStreams($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDataStreamsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataStreams($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListFirebaseLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFirebaseLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListFirebaseLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFirebaseLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListGoogleAdsLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGoogleAdsLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListGoogleAdsLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGoogleAdsLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListMeasurementProtocolSecretsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMeasurementProtocolSecrets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListMeasurementProtocolSecretsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMeasurementProtocolSecrets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListPropertiesRequest()) - ->setFilter($filter); - $response = $gapicClient->listProperties($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListPropertiesRequest()) - ->setFilter($filter); - try { - $gapicClient->listProperties($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $request = new ProvisionAccountTicketRequest(); - $response = $gapicClient->provisionAccountTicket($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ProvisionAccountTicketRequest(); - try { - $gapicClient->provisionAccountTicket($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $request = new RunAccessReportRequest(); - $response = $gapicClient->runAccessReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunAccessReportRequest(); - try { - $gapicClient->runAccessReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $request = (new SearchChangeHistoryEventsRequest()) - ->setAccount($formattedAccount); - $response = $gapicClient->searchChangeHistoryEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $request = (new SearchChangeHistoryEventsRequest()) - ->setAccount($formattedAccount); - try { - $gapicClient->searchChangeHistoryEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $request = (new UpdateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $request = (new UpdateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomDimensionRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomDimensionRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomMetricRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomMetricRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRetentionSettingsRequest()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataRetentionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRetentionSettingsRequest()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataRetentionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDataStreamRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDataStreamRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateGoogleAdsLinkRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGoogleAdsLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateGoogleAdsLinkRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - $response = $gapicClient->acknowledgeUserDataCollectionAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}