From 6341299dd964ff9ea752ac464c82ca10ebb8dac0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 5 Jan 2022 09:01:49 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= 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 --- AnalyticsAdmin/src/V1alpha/Account.php | 4 +- .../AcknowledgeUserDataCollectionRequest.php | 4 +- .../AcknowledgeUserDataCollectionResponse.php | 0 .../V1alpha/AnalyticsAdminServiceClient.php | 2 +- .../AnalyticsAdminServiceGrpcClient.php | 348 +- .../src/V1alpha/AndroidAppDataStream.php | 4 +- ...yVideo360AdvertiserLinkProposalRequest.php | 2 +- ...Video360AdvertiserLinkProposalResponse.php | 2 +- AnalyticsAdmin/src/V1alpha/AuditUserLink.php | 16 +- ...yVideo360AdvertiserLinkProposalRequest.php | 2 +- .../src/V1alpha/ChangeHistoryChange.php | 4 +- .../ChangeHistoryResource.php | 105 + .../src/V1alpha/ChangeHistoryEvent.php | 2 +- .../src/V1alpha/ChangeHistoryResourceType.php | 21 + .../src/V1alpha/ConversionEvent.php | 74 +- .../V1alpha/CreateConversionEventRequest.php | 2 +- .../V1alpha/CreateCustomDimensionRequest.php | 2 +- .../src/V1alpha/CreateCustomMetricRequest.php | 2 +- .../src}/V1alpha/CreateDataStreamRequest.php | 4 +- ...yVideo360AdvertiserLinkProposalRequest.php | 4 +- ...teDisplayVideo360AdvertiserLinkRequest.php | 4 +- .../src/V1alpha/CreateFirebaseLinkRequest.php | 2 +- .../V1alpha/CreateGoogleAdsLinkRequest.php | 2 +- ...CreateMeasurementProtocolSecretRequest.php | 2 +- .../src/V1alpha/CreatePropertyRequest.php | 2 +- .../src/V1alpha/CreateUserLinkRequest.php | 2 +- .../V1alpha/CreateWebDataStreamRequest.php | 2 +- AnalyticsAdmin/src/V1alpha/CustomMetric.php | 14 +- .../src}/V1alpha/DataRetentionSettings.php | 6 +- .../RetentionDuration.php | 0 ...ataRetentionSettings_RetentionDuration.php | 2 +- .../src}/V1alpha/DataStream.php | 10 +- .../DataStream/AndroidAppStreamData.php | 4 +- .../V1alpha/DataStream/DataStreamType.php | 0 .../V1alpha/DataStream/IosAppStreamData.php | 4 +- .../src}/V1alpha/DataStream/WebStreamData.php | 6 +- .../DataStream_AndroidAppStreamData.php | 2 +- .../V1alpha/DataStream_DataStreamType.php | 2 +- .../V1alpha/DataStream_IosAppStreamData.php | 2 +- .../src}/V1alpha/DataStream_WebStreamData.php | 2 +- .../src}/V1alpha/DeleteDataStreamRequest.php | 2 +- ...yVideo360AdvertiserLinkProposalRequest.php | 2 +- ...teDisplayVideo360AdvertiserLinkRequest.php | 2 +- .../V1alpha/DisplayVideo360AdvertiserLink.php | 24 +- .../DisplayVideo360AdvertiserLinkProposal.php | 28 +- AnalyticsAdmin/src/V1alpha/FirebaseLink.php | 42 +- .../AnalyticsAdminServiceGapicClient.php | 1058 ++- .../GetDataRetentionSettingsRequest.php | 2 +- .../src}/V1alpha/GetDataStreamRequest.php | 2 +- ...yVideo360AdvertiserLinkProposalRequest.php | 2 +- ...etDisplayVideo360AdvertiserLinkRequest.php | 2 +- AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php | 84 +- .../src/V1alpha/IosAppDataStream.php | 4 +- .../V1alpha/LinkProposalInitiatingProduct.php | 0 .../src}/V1alpha/LinkProposalState.php | 0 .../V1alpha/LinkProposalStatusDetails.php | 6 +- .../src}/V1alpha/ListDataStreamsRequest.php | 6 +- .../src}/V1alpha/ListDataStreamsResponse.php | 2 +- ...Video360AdvertiserLinkProposalsRequest.php | 6 +- ...ideo360AdvertiserLinkProposalsResponse.php | 2 +- ...tDisplayVideo360AdvertiserLinksRequest.php | 6 +- ...DisplayVideo360AdvertiserLinksResponse.php | 2 +- AnalyticsAdmin/src/V1alpha/Property.php | 84 +- .../src/V1alpha/PropertySummary.php | 10 +- .../V1alpha/ProvisionAccountTicketRequest.php | 2 +- .../SearchChangeHistoryEventsRequest.php | 4 +- .../src}/V1alpha/ServiceLevel.php | 0 .../src/V1alpha/UpdateAccountRequest.php | 4 +- .../UpdateAndroidAppDataStreamRequest.php | 4 +- .../V1alpha/UpdateCustomDimensionRequest.php | 4 +- .../src/V1alpha/UpdateCustomMetricRequest.php | 4 +- .../UpdateDataRetentionSettingsRequest.php | 4 +- .../src}/V1alpha/UpdateDataStreamRequest.php | 4 +- ...teDisplayVideo360AdvertiserLinkRequest.php | 4 +- .../V1alpha/UpdateGoogleAdsLinkRequest.php | 4 +- .../UpdateGoogleSignalsSettingsRequest.php | 4 +- .../V1alpha/UpdateIosAppDataStreamRequest.php | 4 +- ...UpdateMeasurementProtocolSecretRequest.php | 4 +- .../src/V1alpha/UpdatePropertyRequest.php | 4 +- .../src/V1alpha/UpdateUserLinkRequest.php | 2 +- .../V1alpha/UpdateWebDataStreamRequest.php | 4 +- AnalyticsAdmin/src/V1alpha/UserLink.php | 40 +- AnalyticsAdmin/src/V1alpha/WebDataStream.php | 12 +- .../src/V1alpha/gapic_metadata.json | 92 +- ...analytics_admin_service_client_config.json | 98 +- ...lytics_admin_service_descriptor_config.php | 30 + ...ytics_admin_service_rest_client_config.php | 247 +- .../AnalyticsAdminServiceClientTest.php | 1516 ++++- .../Admin/V1Alpha/AnalyticsAdmin.php | 490 -- .../Analytics/Admin/V1Alpha/Resources.php | Bin 13385 -> 0 bytes .../Analytics/Admin/V1alpha/Account.php | 269 - .../Admin/V1alpha/AccountSummary.php | 186 - .../Analytics/Admin/V1alpha/ActionType.php | 68 - .../Analytics/Admin/V1alpha/ActorType.php | 69 - .../AnalyticsAdminServiceGrpcClient.php | 1371 ---- .../Admin/V1alpha/AndroidAppDataStream.php | 277 - .../V1alpha/ArchiveCustomDimensionRequest.php | 71 - .../V1alpha/ArchiveCustomMetricRequest.php | 71 - .../Analytics/Admin/V1alpha/AuditUserLink.php | 189 - .../Admin/V1alpha/AuditUserLinksRequest.php | 159 - .../Admin/V1alpha/AuditUserLinksResponse.php | 109 - .../V1alpha/BatchCreateUserLinksRequest.php | 159 - .../V1alpha/BatchCreateUserLinksResponse.php | 67 - .../V1alpha/BatchDeleteUserLinksRequest.php | 117 - .../V1alpha/BatchGetUserLinksRequest.php | 121 - .../V1alpha/BatchGetUserLinksResponse.php | 67 - .../V1alpha/BatchUpdateUserLinksRequest.php | 117 - .../V1alpha/BatchUpdateUserLinksResponse.php | 67 - .../Admin/V1alpha/ChangeHistoryChange.php | 197 - .../ChangeHistoryResource.php | 547 -- ...ngeHistoryChange_ChangeHistoryResource.php | 16 - .../Admin/V1alpha/ChangeHistoryEvent.php | 266 - .../V1alpha/ChangeHistoryResourceType.php | 152 - .../Admin/V1alpha/ConversionEvent.php | 241 - .../V1alpha/CreateConversionEventRequest.php | 115 - .../V1alpha/CreateCustomDimensionRequest.php | 111 - .../V1alpha/CreateCustomMetricRequest.php | 111 - .../V1alpha/CreateFirebaseLinkRequest.php | 115 - .../V1alpha/CreateGoogleAdsLinkRequest.php | 111 - ...CreateMeasurementProtocolSecretRequest.php | 123 - .../Admin/V1alpha/CreatePropertyRequest.php | 81 - .../Admin/V1alpha/CreateUserLinkRequest.php | 155 - .../V1alpha/CreateWebDataStreamRequest.php | 115 - .../Admin/V1alpha/CustomDimension.php | 289 - .../CustomDimension/DimensionScope.php | 64 - .../CustomDimension_DimensionScope.php | 16 - .../Analytics/Admin/V1alpha/CustomMetric.php | 277 - .../V1alpha/CustomMetric/MeasurementUnit.php | 122 - .../V1alpha/CustomMetric/MetricScope.php | 57 - .../V1alpha/CustomMetric_MeasurementUnit.php | 16 - .../V1alpha/CustomMetric_MetricScope.php | 16 - .../Admin/V1alpha/DataSharingSettings.php | 262 - .../Admin/V1alpha/DeleteAccountRequest.php | 75 - .../DeleteAndroidAppDataStreamRequest.php | 75 - .../V1alpha/DeleteConversionEventRequest.php | 75 - .../V1alpha/DeleteFirebaseLinkRequest.php | 71 - .../V1alpha/DeleteGoogleAdsLinkRequest.php | 67 - .../V1alpha/DeleteIosAppDataStreamRequest.php | 75 - ...DeleteMeasurementProtocolSecretRequest.php | 83 - .../Admin/V1alpha/DeletePropertyRequest.php | 75 - .../Admin/V1alpha/DeleteUserLinkRequest.php | 67 - .../V1alpha/DeleteWebDataStreamRequest.php | 75 - .../Analytics/Admin/V1alpha/FirebaseLink.php | 165 - .../Admin/V1alpha/GetAccountRequest.php | 75 - .../GetAndroidAppDataStreamRequest.php | 75 - .../V1alpha/GetConversionEventRequest.php | 75 - .../V1alpha/GetCustomDimensionRequest.php | 71 - .../Admin/V1alpha/GetCustomMetricRequest.php | 71 - .../V1alpha/GetDataSharingSettingsRequest.php | 75 - .../Admin/V1alpha/GetGlobalSiteTagRequest.php | 79 - .../GetGoogleSignalsSettingsRequest.php | 71 - .../V1alpha/GetIosAppDataStreamRequest.php | 75 - .../GetMeasurementProtocolSecretRequest.php | 83 - .../Admin/V1alpha/GetPropertyRequest.php | 75 - .../Admin/V1alpha/GetUserLinkRequest.php | 67 - .../Admin/V1alpha/GetWebDataStreamRequest.php | 75 - .../Analytics/Admin/V1alpha/GlobalSiteTag.php | 110 - .../Analytics/Admin/V1alpha/GoogleAdsLink.php | 354 - .../Admin/V1alpha/GoogleSignalsConsent.php | 64 - .../Admin/V1alpha/GoogleSignalsSettings.php | 143 - .../Admin/V1alpha/GoogleSignalsState.php | 63 - .../Admin/V1alpha/IndustryCategory.php | 229 - .../Admin/V1alpha/IosAppDataStream.php | 277 - .../V1alpha/ListAccountSummariesRequest.php | 125 - .../V1alpha/ListAccountSummariesResponse.php | 105 - .../Admin/V1alpha/ListAccountsRequest.php | 167 - .../Admin/V1alpha/ListAccountsResponse.php | 105 - .../ListAndroidAppDataStreamsRequest.php | 167 - .../ListAndroidAppDataStreamsResponse.php | 105 - .../V1alpha/ListConversionEventsRequest.php | 159 - .../V1alpha/ListConversionEventsResponse.php | 105 - .../V1alpha/ListCustomDimensionsRequest.php | 155 - .../V1alpha/ListCustomDimensionsResponse.php | 105 - .../V1alpha/ListCustomMetricsRequest.php | 155 - .../V1alpha/ListCustomMetricsResponse.php | 105 - .../V1alpha/ListFirebaseLinksRequest.php | 163 - .../V1alpha/ListFirebaseLinksResponse.php | 113 - .../V1alpha/ListGoogleAdsLinksRequest.php | 155 - .../V1alpha/ListGoogleAdsLinksResponse.php | 105 - .../V1alpha/ListIosAppDataStreamsRequest.php | 163 - .../V1alpha/ListIosAppDataStreamsResponse.php | 105 - .../ListMeasurementProtocolSecretsRequest.php | 171 - ...ListMeasurementProtocolSecretsResponse.php | 105 - .../Admin/V1alpha/ListPropertiesRequest.php | 245 - .../Admin/V1alpha/ListPropertiesResponse.php | 105 - .../Admin/V1alpha/ListUserLinksRequest.php | 159 - .../Admin/V1alpha/ListUserLinksResponse.php | 105 - .../V1alpha/ListWebDataStreamsRequest.php | 163 - .../V1alpha/ListWebDataStreamsResponse.php | 105 - .../V1alpha/MeasurementProtocolSecret.php | 155 - .../Analytics/Admin/V1alpha/Property.php | 561 -- .../Admin/V1alpha/PropertySummary.php | 109 - .../V1alpha/ProvisionAccountTicketRequest.php | 115 - .../ProvisionAccountTicketResponse.php | 67 - .../SearchChangeHistoryEventsRequest.php | 395 -- .../SearchChangeHistoryEventsResponse.php | 105 - .../Admin/V1alpha/UpdateAccountRequest.php | 133 - .../UpdateAndroidAppDataStreamRequest.php | 133 - .../V1alpha/UpdateCustomDimensionRequest.php | 129 - .../V1alpha/UpdateCustomMetricRequest.php | 129 - .../V1alpha/UpdateGoogleAdsLinkRequest.php | 129 - .../UpdateGoogleSignalsSettingsRequest.php | 133 - .../V1alpha/UpdateIosAppDataStreamRequest.php | 133 - ...UpdateMeasurementProtocolSecretRequest.php | 121 - .../Admin/V1alpha/UpdatePropertyRequest.php | 137 - .../Admin/V1alpha/UpdateUserLinkRequest.php | 77 - .../V1alpha/UpdateWebDataStreamRequest.php | 133 - .../Analytics/Admin/V1alpha/UserLink.php | 180 - .../Analytics/Admin/V1alpha/WebDataStream.php | 315 - .../V1alpha/AnalyticsAdminServiceClient.php | 36 - .../AnalyticsAdminServiceGapicClient.php | 5416 --------------- .../v1alpha/src/V1alpha/gapic_metadata.json | 438 -- ...analytics_admin_service_client_config.json | 465 -- ...lytics_admin_service_descriptor_config.php | 188 - ...ytics_admin_service_rest_client_config.php | 1107 --- .../AnalyticsAdminServiceClientTest.php | 5973 ----------------- 216 files changed, 3508 insertions(+), 31900 deletions(-) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/AcknowledgeUserDataCollectionRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/AcknowledgeUserDataCollectionResponse.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateDataStreamRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataRetentionSettings.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataRetentionSettings/RetentionDuration.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataRetentionSettings_RetentionDuration.php (73%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream/AndroidAppStreamData.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream/DataStreamType.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream/IosAppStreamData.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream/WebStreamData.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream_AndroidAppStreamData.php (73%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream_DataStreamType.php (74%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream_IosAppStreamData.php (74%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DataStream_WebStreamData.php (74%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DeleteDataStreamRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DisplayVideo360AdvertiserLink.php (96%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/DisplayVideo360AdvertiserLinkProposal.php (96%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetDataRetentionSettingsRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetDataStreamRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/LinkProposalInitiatingProduct.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/LinkProposalState.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/LinkProposalStatusDetails.php (97%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListDataStreamsRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListDataStreamsResponse.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php (99%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/ServiceLevel.php (100%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/UpdateDataRetentionSettingsRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/UpdateDataStreamRequest.php (98%) rename {owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin => AnalyticsAdmin/src}/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php (97%) 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/Resources.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/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/AnalyticsAdminServiceGrpcClient.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AndroidAppDataStream.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/AuditUserLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteUserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksResponse.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/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/ConversionEvent.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/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/CreateUserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateWebDataStreamRequest.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/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_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/DataSharingSettings.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/DeleteAndroidAppDataStreamRequest.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/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/DeleteIosAppDataStreamRequest.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/DeleteUserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteWebDataStreamRequest.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/GetAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAndroidAppDataStreamRequest.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/GetDataSharingSettingsRequest.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/GetIosAppDataStreamRequest.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/GetUserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetWebDataStreamRequest.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/IndustryCategory.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IosAppDataStream.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/ListAndroidAppDataStreamsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAndroidAppDataStreamsResponse.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/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/ListIosAppDataStreamsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListIosAppDataStreamsResponse.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/ListUserLinksRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListUserLinksResponse.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListWebDataStreamsRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListWebDataStreamsResponse.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/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/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/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/UpdateAccountRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAndroidAppDataStreamRequest.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/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/UpdateIosAppDataStreamRequest.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/UpdateUserLinkRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateWebDataStreamRequest.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UserLink.php delete mode 100644 owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/WebDataStream.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 diff --git a/AnalyticsAdmin/src/V1alpha/Account.php b/AnalyticsAdmin/src/V1alpha/Account.php index 98926a09120..a1ea714593b 100644 --- a/AnalyticsAdmin/src/V1alpha/Account.php +++ b/AnalyticsAdmin/src/V1alpha/Account.php @@ -121,7 +121,7 @@ public function setName($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -157,7 +157,7 @@ public function setCreateTime($var) */ public function getUpdateTime() { - return isset($this->update_time) ? $this->update_time : null; + return $this->update_time; } public function hasUpdateTime() diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php rename to AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionRequest.php index 28dd566457f..b19ba4484e1 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php +++ b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionRequest.php @@ -20,7 +20,7 @@ class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Mes * * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $property = ''; + private $property = ''; /** * Required. An acknowledgement that the caller of this method understands the terms * of user data collection. @@ -32,7 +32,7 @@ class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Mes * * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $acknowledgement = ''; + private $acknowledgement = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionResponse.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php rename to AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionResponse.php diff --git a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php index eb25889f694..d7aae7efc68 100644 --- a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php +++ b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php @@ -18,7 +18,7 @@ /* * GENERATED CODE WARNING * Generated by gapic-generator-php from the file - * https://github.com/google/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto + * https://github.com/googleapis/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto * Updates to the above are reflected here through a refresh process. * * @experimental diff --git a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php index f658ef92ca5..809cc87bab4 100644 --- a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php +++ b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php @@ -595,40 +595,6 @@ public function ListAndroidAppDataStreams(\Google\Analytics\Admin\V1alpha\ListAn $metadata, $options); } - /** - * Returns the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * @param \Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetEnhancedMeasurementSettings(\Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings', 'decode'], - $metadata, $options); - } - - /** - * Updates the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * @param \Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateEnhancedMeasurementSettings(\Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings', 'decode'], - $metadata, $options); - } - /** * Creates a FirebaseLink. * @@ -646,21 +612,6 @@ public function CreateFirebaseLink(\Google\Analytics\Admin\V1alpha\CreateFirebas $metadata, $options); } - /** - * Updates a FirebaseLink on a property - * @param \Google\Analytics\Admin\V1alpha\UpdateFirebaseLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateFirebaseLink(\Google\Analytics\Admin\V1alpha\UpdateFirebaseLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateFirebaseLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\FirebaseLink', 'decode'], - $metadata, $options); - } - /** * Deletes a FirebaseLink on a property * @param \Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest $argument input argument @@ -860,6 +811,24 @@ public function UpdateMeasurementProtocolSecret(\Google\Analytics\Admin\V1alpha\ $metadata, $options); } + /** + * Acknowledges the terms of user data collection for the specified property. + * + * This acknowledgement must be completed (either in the Google Analytics UI + * or via this API) before MeasurementProtocolSecret resources may be created. + * @param \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function AcknowledgeUserDataCollection(\Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', + $argument, + ['\Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse', 'decode'], + $metadata, $options); + } + /** * Searches through all changes to an account or its children given the * specified set of filters. @@ -968,6 +937,182 @@ public function ListConversionEvents(\Google\Analytics\Admin\V1alpha\ListConvers $metadata, $options); } + /** + * Look up a single DisplayVideo360AdvertiserLink + * @param \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', + $argument, + ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'], + $metadata, $options); + } + + /** + * Lists all DisplayVideo360AdvertiserLinks on a property. + * @param \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListDisplayVideo360AdvertiserLinks(\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', + $argument, + ['\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse', 'decode'], + $metadata, $options); + } + + /** + * 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. + * @param \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', + $argument, + ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'], + $metadata, $options); + } + + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * @param \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', + $argument, + ['\Google\Protobuf\GPBEmpty', 'decode'], + $metadata, $options); + } + + /** + * Updates a DisplayVideo360AdvertiserLink on a property. + * @param \Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', + $argument, + ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'], + $metadata, $options); + } + + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * @param \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', + $argument, + ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'], + $metadata, $options); + } + + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * @param \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListDisplayVideo360AdvertiserLinkProposals(\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', + $argument, + ['\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse', 'decode'], + $metadata, $options); + } + + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * @param \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', + $argument, + ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'], + $metadata, $options); + } + + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + * This can only be used on cancelled proposals. + * @param \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', + $argument, + ['\Google\Protobuf\GPBEmpty', 'decode'], + $metadata, $options); + } + + /** + * Approves a DisplayVideo360AdvertiserLinkProposal. + * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + * DisplayVideo360AdvertiserLink will be created. + * @param \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ApproveDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', + $argument, + ['\Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse', 'decode'], + $metadata, $options); + } + + /** + * 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. + * @param \Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CancelDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', + $argument, + ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'], + $metadata, $options); + } + /** * Creates a CustomDimension. * @param \Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest $argument input argument @@ -1118,4 +1263,109 @@ public function GetCustomMetric(\Google\Analytics\Admin\V1alpha\GetCustomMetricR $metadata, $options); } + /** + * Returns the singleton data retention settings for this property. + * @param \Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetDataRetentionSettings(\Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', + $argument, + ['\Google\Analytics\Admin\V1alpha\DataRetentionSettings', 'decode'], + $metadata, $options); + } + + /** + * Updates the singleton data retention settings for this property. + * @param \Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateDataRetentionSettings(\Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', + $argument, + ['\Google\Analytics\Admin\V1alpha\DataRetentionSettings', 'decode'], + $metadata, $options); + } + + /** + * Creates a DataStream. + * @param \Google\Analytics\Admin\V1alpha\CreateDataStreamRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateDataStream(\Google\Analytics\Admin\V1alpha\CreateDataStreamRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', + $argument, + ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'], + $metadata, $options); + } + + /** + * Deletes a DataStream on a property. + * @param \Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteDataStream(\Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', + $argument, + ['\Google\Protobuf\GPBEmpty', 'decode'], + $metadata, $options); + } + + /** + * Updates a DataStream on a property. + * @param \Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateDataStream(\Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', + $argument, + ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'], + $metadata, $options); + } + + /** + * Lists DataStreams on a property. + * @param \Google\Analytics\Admin\V1alpha\ListDataStreamsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListDataStreams(\Google\Analytics\Admin\V1alpha\ListDataStreamsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', + $argument, + ['\Google\Analytics\Admin\V1alpha\ListDataStreamsResponse', 'decode'], + $metadata, $options); + } + + /** + * Lookup for a single DataStream. + * @param \Google\Analytics\Admin\V1alpha\GetDataStreamRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetDataStream(\Google\Analytics\Admin\V1alpha\GetDataStreamRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', + $argument, + ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'], + $metadata, $options); + } + } diff --git a/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php b/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php index 1820900cc29..c4c05373046 100644 --- a/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php +++ b/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php @@ -153,7 +153,7 @@ public function setFirebaseAppId($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -189,7 +189,7 @@ public function setCreateTime($var) */ public function getUpdateTime() { - return isset($this->update_time) ? $this->update_time : null; + return $this->update_time; } public function hasUpdateTime() diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php rename to AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php index a5278777199..789cc358b3f 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php @@ -21,7 +21,7 @@ class ApproveDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protob * * 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/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php rename to AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php index 43bf9175e1d..28d11585750 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php +++ b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php @@ -21,7 +21,7 @@ class ApproveDisplayVideo360AdvertiserLinkProposalResponse extends \Google\Proto * * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; */ - protected $display_video_360_advertiser_link = null; + private $display_video_360_advertiser_link = null; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/AuditUserLink.php b/AnalyticsAdmin/src/V1alpha/AuditUserLink.php index bc0b270e319..0037ec494dd 100644 --- a/AnalyticsAdmin/src/V1alpha/AuditUserLink.php +++ b/AnalyticsAdmin/src/V1alpha/AuditUserLink.php @@ -29,7 +29,7 @@ class AuditUserLink extends \Google\Protobuf\Internal\Message private $email_address = ''; /** * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * Excludes roles that are inherited from an account (if this is for a * property), group, or organization admin role. * @@ -39,7 +39,7 @@ class AuditUserLink extends \Google\Protobuf\Internal\Message /** * Union of all permissions a user has at this account or property (includes * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * * Generated from protobuf field repeated string effective_roles = 4; */ @@ -57,13 +57,13 @@ class AuditUserLink extends \Google\Protobuf\Internal\Message * Email address of the linked user * @type string[]|\Google\Protobuf\Internal\RepeatedField $direct_roles * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * Excludes roles that are inherited from an account (if this is for a * property), group, or organization admin role. * @type string[]|\Google\Protobuf\Internal\RepeatedField $effective_roles * Union of all permissions a user has at this account or property (includes * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * } */ public function __construct($data = NULL) { @@ -125,7 +125,7 @@ public function setEmailAddress($var) /** * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * Excludes roles that are inherited from an account (if this is for a * property), group, or organization admin role. * @@ -139,7 +139,7 @@ public function getDirectRoles() /** * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * Excludes roles that are inherited from an account (if this is for a * property), group, or organization admin role. * @@ -158,7 +158,7 @@ public function setDirectRoles($var) /** * Union of all permissions a user has at this account or property (includes * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * * Generated from protobuf field repeated string effective_roles = 4; * @return \Google\Protobuf\Internal\RepeatedField @@ -171,7 +171,7 @@ public function getEffectiveRoles() /** * Union of all permissions a user has at this account or property (includes * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/read + * Format: predefinedRoles/viewer * * Generated from protobuf field repeated string effective_roles = 4; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php rename to AnalyticsAdmin/src/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php index ef65eb9e7af..f5417363ae5 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php @@ -21,7 +21,7 @@ class CancelDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobu * * 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/ChangeHistoryChange.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php index 67d5835d66b..32f2c2f153b 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php @@ -126,7 +126,7 @@ public function setAction($var) */ public function getResourceBeforeChange() { - return isset($this->resource_before_change) ? $this->resource_before_change : null; + return $this->resource_before_change; } public function hasResourceBeforeChange() @@ -164,7 +164,7 @@ public function setResourceBeforeChange($var) */ public function getResourceAfterChange() { - return isset($this->resource_after_change) ? $this->resource_after_change : null; + return $this->resource_after_change; } public function hasResourceAfterChange() diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php index 499afd80368..7ed044c8018 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php @@ -40,6 +40,12 @@ class ChangeHistoryResource extends \Google\Protobuf\Internal\Message * 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 @@ -48,6 +54,8 @@ class ChangeHistoryResource extends \Google\Protobuf\Internal\Message * 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. * } */ public function __construct($data = NULL) { @@ -303,6 +311,72 @@ public function setGoogleSignalsSettings($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. * @@ -427,6 +501,37 @@ public function setCustomMetric($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; + } + /** * @return string */ diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php index 0f9ed81870b..373b8d9b334 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php @@ -122,7 +122,7 @@ public function setId($var) */ public function getChangeTime() { - return isset($this->change_time) ? $this->change_time : null; + return $this->change_time; } public function hasChangeTime() diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php index 06e7487ca2e..354751036f7 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php @@ -91,6 +91,24 @@ class ChangeHistoryResourceType * 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; private static $valueToName = [ self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', @@ -106,6 +124,9 @@ class ChangeHistoryResourceType 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', ]; public static function name($value) diff --git a/AnalyticsAdmin/src/V1alpha/ConversionEvent.php b/AnalyticsAdmin/src/V1alpha/ConversionEvent.php index b5405a7bce7..f7e8321e2ec 100644 --- a/AnalyticsAdmin/src/V1alpha/ConversionEvent.php +++ b/AnalyticsAdmin/src/V1alpha/ConversionEvent.php @@ -38,9 +38,20 @@ class ConversionEvent extends \Google\Protobuf\Internal\Message /** * Output only. If set, this event can currently be deleted via DeleteConversionEvent. * - * Generated from protobuf field bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - private $is_deletable = false; + private $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]; + */ + private $custom = false; /** * Constructor. @@ -56,8 +67,15 @@ class ConversionEvent extends \Google\Protobuf\Internal\Message * Examples: 'click', 'purchase' * @type \Google\Protobuf\Timestamp $create_time * Output only. Time when this conversion event was created in the property. - * @type bool $is_deletable + * @type bool $deletable * Output only. If set, this event can currently be deleted via 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. * } */ public function __construct($data = NULL) { @@ -129,7 +147,7 @@ public function setEventName($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -160,25 +178,61 @@ public function setCreateTime($var) /** * Output only. If set, this event can currently be deleted via DeleteConversionEvent. * - * Generated from protobuf field bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return bool */ - public function getIsDeletable() + public function getDeletable() { - return $this->is_deletable; + return $this->deletable; } /** * Output only. If set, this event can currently be deleted via DeleteConversionEvent. * - * Generated from protobuf field bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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 setIsDeletable($var) + public function setCustom($var) { GPBUtil::checkBool($var); - $this->is_deletable = $var; + $this->custom = $var; return $this; } diff --git a/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php b/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php index 9a19ffcc0b6..3e124528b66 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php @@ -55,7 +55,7 @@ public function __construct($data = NULL) { */ public function getConversionEvent() { - return isset($this->conversion_event) ? $this->conversion_event : null; + return $this->conversion_event; } public function hasConversionEvent() diff --git a/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php b/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php index 2de265cc630..654e0e2a076 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php @@ -79,7 +79,7 @@ public function setParent($var) */ public function getCustomDimension() { - return isset($this->custom_dimension) ? $this->custom_dimension : null; + return $this->custom_dimension; } public function hasCustomDimension() diff --git a/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php b/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php index 2fce5d94b14..a1d8846a465 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php @@ -79,7 +79,7 @@ public function setParent($var) */ public function getCustomMetric() { - return isset($this->custom_metric) ? $this->custom_metric : null; + return $this->custom_metric; } public function hasCustomMetric() diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/CreateDataStreamRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateDataStreamRequest.php index de44518ee93..fef4c92e969 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateDataStreamRequest.php @@ -20,13 +20,13 @@ class CreateDataStreamRequest 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 DataStream to create. * * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ - protected $data_stream = null; + private $data_stream = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php index 1e7149c55d6..6282ee97d55 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php @@ -20,13 +20,13 @@ class CreateDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobu * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $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; + private $display_video_360_advertiser_link_proposal = null; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php index 9c207531279..df57267fe97 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php @@ -20,13 +20,13 @@ class CreateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Intern * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $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; + private $display_video_360_advertiser_link = null; /** * Constructor. diff --git a/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php index cdb68286d47..a4b46e39af3 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php @@ -83,7 +83,7 @@ public function setParent($var) */ public function getFirebaseLink() { - return isset($this->firebase_link) ? $this->firebase_link : null; + return $this->firebase_link; } public function hasFirebaseLink() diff --git a/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php index 2b513aa7e6e..3854e554f16 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php @@ -79,7 +79,7 @@ public function setParent($var) */ public function getGoogleAdsLink() { - return isset($this->google_ads_link) ? $this->google_ads_link : null; + return $this->google_ads_link; } public function hasGoogleAdsLink() diff --git a/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php b/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php index fa571844433..00397615e61 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php @@ -91,7 +91,7 @@ public function setParent($var) */ public function getMeasurementProtocolSecret() { - return isset($this->measurement_protocol_secret) ? $this->measurement_protocol_secret : null; + return $this->measurement_protocol_secret; } public function hasMeasurementProtocolSecret() diff --git a/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php b/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php index 9476c7ca1a6..56fe1d057d5 100644 --- a/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php @@ -48,7 +48,7 @@ public function __construct($data = NULL) { */ public function getProperty() { - return isset($this->property) ? $this->property : null; + return $this->property; } public function hasProperty() diff --git a/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php index 4e0a0d1ce7e..60c86dc57e4 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php @@ -123,7 +123,7 @@ public function setNotifyNewUser($var) */ public function getUserLink() { - return isset($this->user_link) ? $this->user_link : null; + return $this->user_link; } public function hasUserLink() diff --git a/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php index f32f0611be9..7381a5d5245 100644 --- a/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php @@ -55,7 +55,7 @@ public function __construct($data = NULL) { */ public function getWebDataStream() { - return isset($this->web_data_stream) ? $this->web_data_stream : null; + return $this->web_data_stream; } public function hasWebDataStream() diff --git a/AnalyticsAdmin/src/V1alpha/CustomMetric.php b/AnalyticsAdmin/src/V1alpha/CustomMetric.php index 8a716f7de09..b1ed7091091 100644 --- a/AnalyticsAdmin/src/V1alpha/CustomMetric.php +++ b/AnalyticsAdmin/src/V1alpha/CustomMetric.php @@ -50,9 +50,9 @@ class CustomMetric extends \Google\Protobuf\Internal\Message */ private $description = ''; /** - * Required. Immutable. The type for the custom metric's value. + * 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, (.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; */ private $measurement_unit = 0; /** @@ -87,7 +87,7 @@ class CustomMetric extends \Google\Protobuf\Internal\Message * Optional. Description for this custom dimension. * Max length of 150 characters. * @type int $measurement_unit - * Required. Immutable. The type for the custom metric's value. + * Required. The type for the custom metric's value. * @type int $scope * Required. Immutable. The scope of this custom metric. * } @@ -222,9 +222,9 @@ public function setDescription($var) } /** - * Required. Immutable. The type for the custom metric's value. + * 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, (.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * @return int */ public function getMeasurementUnit() @@ -233,9 +233,9 @@ public function getMeasurementUnit() } /** - * Required. Immutable. The type for the custom metric's value. + * 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, (.google.api.field_behavior) = IMMUTABLE]; + * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * @param int $var * @return $this */ diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php rename to AnalyticsAdmin/src/V1alpha/DataRetentionSettings.php index 596562959ce..667d65aab8f 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php +++ b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings.php @@ -21,20 +21,20 @@ class DataRetentionSettings extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $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; + private $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; + private $reset_user_data_on_new_activity = false; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings/RetentionDuration.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php rename to AnalyticsAdmin/src/V1alpha/DataRetentionSettings/RetentionDuration.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings_RetentionDuration.php b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings_RetentionDuration.php similarity index 73% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings_RetentionDuration.php rename to AnalyticsAdmin/src/V1alpha/DataRetentionSettings_RetentionDuration.php index 81eb99ef89f..f3585feaed8 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings_RetentionDuration.php +++ b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings_RetentionDuration.php @@ -12,5 +12,5 @@ class DataRetentionSettings_RetentionDuration {} } class_exists(DataRetentionSettings\RetentionDuration::class); -@trigger_error('Google\Analytics\Admin\V1alpha\DataRetentionSettings_RetentionDuration is deprecated and will be removed in the next major release. Use Google\Analytics\Admin\V1alpha\DataRetentionSettings\RetentionDuration instead', E_USER_DEPRECATED); +@trigger_error('Google\Analytics\Admin\V1alpha\DataRetentionSettings_RetentionDuration is deprecated and will be removed in a future release. Use Google\Analytics\Admin\V1alpha\DataRetentionSettings\RetentionDuration instead', E_USER_DEPRECATED); diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php b/AnalyticsAdmin/src/V1alpha/DataStream.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php rename to AnalyticsAdmin/src/V1alpha/DataStream.php index 33452530879..07e859deae1 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream.php @@ -22,13 +22,13 @@ class DataStream extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $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; + private $type = 0; /** * Human-readable display name for the Data Stream. * Required for web data streams. @@ -36,19 +36,19 @@ class DataStream extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string display_name = 3; */ - protected $display_name = ''; + private $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; + private $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; + private $update_time = null; protected $stream_data; /** diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream/AndroidAppStreamData.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php rename to AnalyticsAdmin/src/V1alpha/DataStream/AndroidAppStreamData.php index 05430a617fb..43599b9f19d 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream/AndroidAppStreamData.php @@ -21,14 +21,14 @@ class AndroidAppStreamData extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $firebase_app_id = ''; + private $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 = ''; + private $package_name = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php b/AnalyticsAdmin/src/V1alpha/DataStream/DataStreamType.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php rename to AnalyticsAdmin/src/V1alpha/DataStream/DataStreamType.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream/IosAppStreamData.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php rename to AnalyticsAdmin/src/V1alpha/DataStream/IosAppStreamData.php index e7abc7c8e33..bf35d3c8f98 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream/IosAppStreamData.php @@ -21,14 +21,14 @@ class IosAppStreamData extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $firebase_app_id = ''; + private $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 = ''; + private $bundle_id = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream/WebStreamData.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php rename to AnalyticsAdmin/src/V1alpha/DataStream/WebStreamData.php index d13299489a6..3e7029eb96c 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream/WebStreamData.php @@ -21,21 +21,21 @@ class WebStreamData extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $measurement_id = ''; + private $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 = ''; + private $firebase_app_id = ''; /** * Immutable. 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 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $default_uri = ''; + private $default_uri = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_AndroidAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream_AndroidAppStreamData.php similarity index 73% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_AndroidAppStreamData.php rename to AnalyticsAdmin/src/V1alpha/DataStream_AndroidAppStreamData.php index 1b573618009..b5dca0ca457 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_AndroidAppStreamData.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream_AndroidAppStreamData.php @@ -12,5 +12,5 @@ class DataStream_AndroidAppStreamData {} } class_exists(DataStream\AndroidAppStreamData::class); -@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_AndroidAppStreamData is deprecated and will be removed in the next major release. Use Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData instead', E_USER_DEPRECATED); +@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_AndroidAppStreamData is deprecated and will be removed in a future release. Use Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData instead', E_USER_DEPRECATED); diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_DataStreamType.php b/AnalyticsAdmin/src/V1alpha/DataStream_DataStreamType.php similarity index 74% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_DataStreamType.php rename to AnalyticsAdmin/src/V1alpha/DataStream_DataStreamType.php index cff5110a983..5278fbc84c0 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_DataStreamType.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream_DataStreamType.php @@ -12,5 +12,5 @@ class DataStream_DataStreamType {} } class_exists(DataStream\DataStreamType::class); -@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_DataStreamType is deprecated and will be removed in the next major release. Use Google\Analytics\Admin\V1alpha\DataStream\DataStreamType instead', E_USER_DEPRECATED); +@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_DataStreamType is deprecated and will be removed in a future release. Use Google\Analytics\Admin\V1alpha\DataStream\DataStreamType instead', E_USER_DEPRECATED); diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_IosAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream_IosAppStreamData.php similarity index 74% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_IosAppStreamData.php rename to AnalyticsAdmin/src/V1alpha/DataStream_IosAppStreamData.php index d16c84bedae..2cddee337d4 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_IosAppStreamData.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream_IosAppStreamData.php @@ -12,5 +12,5 @@ class DataStream_IosAppStreamData {} } class_exists(DataStream\IosAppStreamData::class); -@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_IosAppStreamData is deprecated and will be removed in the next major release. Use Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData instead', E_USER_DEPRECATED); +@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_IosAppStreamData is deprecated and will be removed in a future release. Use Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData instead', E_USER_DEPRECATED); diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_WebStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream_WebStreamData.php similarity index 74% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_WebStreamData.php rename to AnalyticsAdmin/src/V1alpha/DataStream_WebStreamData.php index 29e96ce0719..8372d802e68 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream_WebStreamData.php +++ b/AnalyticsAdmin/src/V1alpha/DataStream_WebStreamData.php @@ -12,5 +12,5 @@ class DataStream_WebStreamData {} } class_exists(DataStream\WebStreamData::class); -@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_WebStreamData is deprecated and will be removed in the next major release. Use Google\Analytics\Admin\V1alpha\DataStream\WebStreamData instead', E_USER_DEPRECATED); +@trigger_error('Google\Analytics\Admin\V1alpha\DataStream_WebStreamData is deprecated and will be removed in a future release. Use Google\Analytics\Admin\V1alpha\DataStream\WebStreamData instead', E_USER_DEPRECATED); diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteDataStreamRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php rename to AnalyticsAdmin/src/V1alpha/DeleteDataStreamRequest.php index 38db8bd212d..1e82d5f387b 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/DeleteDataStreamRequest.php @@ -21,7 +21,7 @@ class DeleteDataStreamRequest 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/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php rename to AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php index a55495ca15b..0c3a125c934 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php +++ b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php @@ -21,7 +21,7 @@ class DeleteDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobu * * 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/DeleteDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php index a191a561b1a..d0f84d2bf86 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php @@ -21,7 +21,7 @@ class DeleteDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Intern * * 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/DisplayVideo360AdvertiserLink.php b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLink.php similarity index 96% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php rename to AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLink.php index 82eb09d39b5..f6181f64a33 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php +++ b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLink.php @@ -22,26 +22,26 @@ class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $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 = ''; + private $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 = ''; + private $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; + private $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 & @@ -50,7 +50,7 @@ class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $campaign_data_sharing_enabled = null; + private $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 @@ -60,7 +60,7 @@ class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $cost_data_sharing_enabled = null; + private $cost_data_sharing_enabled = null; /** * Constructor. @@ -210,7 +210,7 @@ public function clearAdsPersonalizationEnabled() * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; * @return bool|null */ - public function getAdsPersonalizationEnabledUnwrapped() + public function getAdsPersonalizationEnabledValue() { return $this->readWrapperValue("ads_personalization_enabled"); } @@ -241,7 +241,7 @@ public function setAdsPersonalizationEnabled($var) * @param bool|null $var * @return $this */ - public function setAdsPersonalizationEnabledUnwrapped($var) + public function setAdsPersonalizationEnabledValue($var) { $this->writeWrapperValue("ads_personalization_enabled", $var); return $this;} @@ -281,7 +281,7 @@ public function clearCampaignDataSharingEnabled() * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; * @return bool|null */ - public function getCampaignDataSharingEnabledUnwrapped() + public function getCampaignDataSharingEnabledValue() { return $this->readWrapperValue("campaign_data_sharing_enabled"); } @@ -316,7 +316,7 @@ public function setCampaignDataSharingEnabled($var) * @param bool|null $var * @return $this */ - public function setCampaignDataSharingEnabledUnwrapped($var) + public function setCampaignDataSharingEnabledValue($var) { $this->writeWrapperValue("campaign_data_sharing_enabled", $var); return $this;} @@ -358,7 +358,7 @@ public function clearCostDataSharingEnabled() * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return bool|null */ - public function getCostDataSharingEnabledUnwrapped() + public function getCostDataSharingEnabledValue() { return $this->readWrapperValue("cost_data_sharing_enabled"); } @@ -395,7 +395,7 @@ public function setCostDataSharingEnabled($var) * @param bool|null $var * @return $this */ - public function setCostDataSharingEnabledUnwrapped($var) + public function setCostDataSharingEnabledValue($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/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLinkProposal.php similarity index 96% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php rename to AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLinkProposal.php index a9e6bd59700..4c5ed15a238 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php +++ b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLinkProposal.php @@ -27,26 +27,26 @@ class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Me * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - protected $name = ''; + private $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 = ''; + private $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; + private $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 = ''; + private $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 @@ -57,21 +57,21 @@ class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Me * * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; */ - protected $validation_email = ''; + private $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; + private $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; + private $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. @@ -79,7 +79,7 @@ class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Me * * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ - protected $cost_data_sharing_enabled = null; + private $cost_data_sharing_enabled = null; /** * Constructor. @@ -312,7 +312,7 @@ public function clearAdsPersonalizationEnabled() * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return bool|null */ - public function getAdsPersonalizationEnabledUnwrapped() + public function getAdsPersonalizationEnabledValue() { return $this->readWrapperValue("ads_personalization_enabled"); } @@ -343,7 +343,7 @@ public function setAdsPersonalizationEnabled($var) * @param bool|null $var * @return $this */ - public function setAdsPersonalizationEnabledUnwrapped($var) + public function setAdsPersonalizationEnabledValue($var) { $this->writeWrapperValue("ads_personalization_enabled", $var); return $this;} @@ -379,7 +379,7 @@ public function clearCampaignDataSharingEnabled() * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return bool|null */ - public function getCampaignDataSharingEnabledUnwrapped() + public function getCampaignDataSharingEnabledValue() { return $this->readWrapperValue("campaign_data_sharing_enabled"); } @@ -410,7 +410,7 @@ public function setCampaignDataSharingEnabled($var) * @param bool|null $var * @return $this */ - public function setCampaignDataSharingEnabledUnwrapped($var) + public function setCampaignDataSharingEnabledValue($var) { $this->writeWrapperValue("campaign_data_sharing_enabled", $var); return $this;} @@ -448,7 +448,7 @@ public function clearCostDataSharingEnabled() * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; * @return bool|null */ - public function getCostDataSharingEnabledUnwrapped() + public function getCostDataSharingEnabledValue() { return $this->readWrapperValue("cost_data_sharing_enabled"); } @@ -481,7 +481,7 @@ public function setCostDataSharingEnabled($var) * @param bool|null $var * @return $this */ - public function setCostDataSharingEnabledUnwrapped($var) + public function setCostDataSharingEnabledValue($var) { $this->writeWrapperValue("cost_data_sharing_enabled", $var); return $this;} diff --git a/AnalyticsAdmin/src/V1alpha/FirebaseLink.php b/AnalyticsAdmin/src/V1alpha/FirebaseLink.php index 0780f37f533..5f034859103 100644 --- a/AnalyticsAdmin/src/V1alpha/FirebaseLink.php +++ b/AnalyticsAdmin/src/V1alpha/FirebaseLink.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * A link between an GA4 property and a Firebase project. + * A link between a GA4 property and a Firebase project. * * Generated from protobuf message google.analytics.admin.v1alpha.FirebaseLink */ @@ -38,13 +38,6 @@ class FirebaseLink extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $create_time = null; - /** - * Maximum user access to the GA4 property allowed to admins of - * the linked Firebase project. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - */ - private $maximum_user_access = 0; /** * Constructor. @@ -63,9 +56,6 @@ class FirebaseLink extends \Google\Protobuf\Internal\Message * Example: 'projects/1234' * @type \Google\Protobuf\Timestamp $create_time * Output only. Time when this FirebaseLink was originally created. - * @type int $maximum_user_access - * Maximum user access to the GA4 property allowed to admins of - * the linked Firebase project. * } */ public function __construct($data = NULL) { @@ -143,7 +133,7 @@ public function setProject($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -171,33 +161,5 @@ public function setCreateTime($var) return $this; } - /** - * Maximum user access to the GA4 property allowed to admins of - * the linked Firebase project. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * @return int - */ - public function getMaximumUserAccess() - { - return $this->maximum_user_access; - } - - /** - * Maximum user access to the GA4 property allowed to admins of - * the linked Firebase project. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * @param int $var - * @return $this - */ - public function setMaximumUserAccess($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\MaximumUserAccess::class); - $this->maximum_user_access = $var; - - return $this; - } - } diff --git a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php index c688cbfb893..188c884d780 100644 --- a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php +++ b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php @@ -18,7 +18,7 @@ /* * GENERATED CODE WARNING * Generated by gapic-generator-php from the file - * https://github.com/google/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto + * https://github.com/googleapis/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto * Updates to the above are reflected here through a refresh process. * * @experimental @@ -27,9 +27,13 @@ namespace Google\Analytics\Admin\V1alpha\Gapic; use Google\Analytics\Admin\V1alpha\Account; +use Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest; +use Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse; + use Google\Analytics\Admin\V1alpha\AndroidAppDataStream; +use Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest; +use Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse; use Google\Analytics\Admin\V1alpha\ArchiveCustomDimensionRequest; - use Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest; use Google\Analytics\Admin\V1alpha\AuditUserLinksRequest; use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse; @@ -40,10 +44,14 @@ use Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksRequest; use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse; +use Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest; use Google\Analytics\Admin\V1alpha\ConversionEvent; use Google\Analytics\Admin\V1alpha\CreateConversionEventRequest; use Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\CreateCustomMetricRequest; +use Google\Analytics\Admin\V1alpha\CreateDataStreamRequest; +use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest; +use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest; use Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest; use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest; @@ -52,10 +60,15 @@ use Google\Analytics\Admin\V1alpha\CreateWebDataStreamRequest; use Google\Analytics\Admin\V1alpha\CustomDimension; use Google\Analytics\Admin\V1alpha\CustomMetric; +use Google\Analytics\Admin\V1alpha\DataRetentionSettings; use Google\Analytics\Admin\V1alpha\DataSharingSettings; +use Google\Analytics\Admin\V1alpha\DataStream; use Google\Analytics\Admin\V1alpha\DeleteAccountRequest; use Google\Analytics\Admin\V1alpha\DeleteAndroidAppDataStreamRequest; use Google\Analytics\Admin\V1alpha\DeleteConversionEventRequest; +use Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest; +use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest; +use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteIosAppDataStreamRequest; @@ -63,15 +76,19 @@ use Google\Analytics\Admin\V1alpha\DeletePropertyRequest; use Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteWebDataStreamRequest; -use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings; +use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink; +use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal; use Google\Analytics\Admin\V1alpha\FirebaseLink; use Google\Analytics\Admin\V1alpha\GetAccountRequest; use Google\Analytics\Admin\V1alpha\GetAndroidAppDataStreamRequest; use Google\Analytics\Admin\V1alpha\GetConversionEventRequest; use Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\GetCustomMetricRequest; +use Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest; -use Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest; +use Google\Analytics\Admin\V1alpha\GetDataStreamRequest; +use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest; +use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest; use Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest; use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest; use Google\Analytics\Admin\V1alpha\GetIosAppDataStreamRequest; @@ -84,9 +101,9 @@ use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings; use Google\Analytics\Admin\V1alpha\IosAppDataStream; use Google\Analytics\Admin\V1alpha\ListAccountsRequest; + use Google\Analytics\Admin\V1alpha\ListAccountsResponse; use Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest; - use Google\Analytics\Admin\V1alpha\ListAccountSummariesResponse; use Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsRequest; use Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsResponse; @@ -96,6 +113,12 @@ use Google\Analytics\Admin\V1alpha\ListCustomDimensionsResponse; use Google\Analytics\Admin\V1alpha\ListCustomMetricsRequest; use Google\Analytics\Admin\V1alpha\ListCustomMetricsResponse; +use Google\Analytics\Admin\V1alpha\ListDataStreamsRequest; +use Google\Analytics\Admin\V1alpha\ListDataStreamsResponse; +use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest; +use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse; +use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest; +use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse; use Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest; use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse; use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest; @@ -120,8 +143,9 @@ use Google\Analytics\Admin\V1alpha\UpdateAndroidAppDataStreamRequest; use Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest; -use Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest; -use Google\Analytics\Admin\V1alpha\UpdateFirebaseLinkRequest; +use Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest; +use Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest; +use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest; use Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest; use Google\Analytics\Admin\V1alpha\UpdateIosAppDataStreamRequest; @@ -153,8 +177,9 @@ * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]'); - * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); + * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $acknowledgement = 'acknowledgement'; + * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); * } finally { * $analyticsAdminServiceClient->close(); * } @@ -213,9 +238,15 @@ class AnalyticsAdminServiceGapicClient private static $customMetricNameTemplate; + private static $dataRetentionSettingsNameTemplate; + private static $dataSharingSettingsNameTemplate; - private static $enhancedMeasurementSettingsNameTemplate; + private static $dataStreamNameTemplate; + + private static $displayVideo360AdvertiserLinkNameTemplate; + + private static $displayVideo360AdvertiserLinkProposalNameTemplate; private static $firebaseLinkNameTemplate; @@ -312,6 +343,15 @@ private static function getCustomMetricNameTemplate() 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) { @@ -321,13 +361,31 @@ private static function getDataSharingSettingsNameTemplate() return self::$dataSharingSettingsNameTemplate; } - private static function getEnhancedMeasurementSettingsNameTemplate() + 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::$enhancedMeasurementSettingsNameTemplate == null) { - self::$enhancedMeasurementSettingsNameTemplate = new PathTemplate('properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings'); + if (self::$displayVideo360AdvertiserLinkProposalNameTemplate == null) { + self::$displayVideo360AdvertiserLinkProposalNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}'); } - return self::$enhancedMeasurementSettingsNameTemplate; + return self::$displayVideo360AdvertiserLinkProposalNameTemplate; } private static function getFirebaseLinkNameTemplate() @@ -430,8 +488,11 @@ private static function getPathTemplateMap() 'conversionEvent' => self::getConversionEventNameTemplate(), 'customDimension' => self::getCustomDimensionNameTemplate(), 'customMetric' => self::getCustomMetricNameTemplate(), + 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), - 'enhancedMeasurementSettings' => self::getEnhancedMeasurementSettingsNameTemplate(), + 'dataStream' => self::getDataStreamNameTemplate(), + 'displayVideo360AdvertiserLink' => self::getDisplayVideo360AdvertiserLinkNameTemplate(), + 'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(), 'firebaseLink' => self::getFirebaseLinkNameTemplate(), 'globalSiteTag' => self::getGlobalSiteTagNameTemplate(), 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), @@ -556,6 +617,23 @@ public static function customMetricName($property) ]); } + /** + * 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. @@ -573,22 +651,60 @@ public static function dataSharingSettingsName($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 - * enhanced_measurement_settings resource. + * display_video360_advertiser_link resource. * * @param string $property - * @param string $webDataStream + * @param string $displayVideo360AdvertiserLink * - * @return string The formatted enhanced_measurement_settings resource. + * @return string The formatted display_video360_advertiser_link resource. * * @experimental */ - public static function enhancedMeasurementSettingsName($property, $webDataStream) + public static function displayVideo360AdvertiserLinkName($property, $displayVideo360AdvertiserLink) { - return self::getEnhancedMeasurementSettingsNameTemplate()->render([ + return self::getDisplayVideo360AdvertiserLinkNameTemplate()->render([ 'property' => $property, - 'web_data_stream' => $webDataStream, + '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, ]); } @@ -788,8 +904,11 @@ public static function webDataStreamName($property, $webDataStream) * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} * - customDimension: properties/{property}/customDimensions * - customMetric: properties/{property}/customMetrics + * - dataRetentionSettings: properties/{property}/dataRetentionSettings * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - enhancedMeasurementSettings: properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings + * - 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} * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} * - globalSiteTag: properties/{property}/globalSiteTag * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} @@ -903,6 +1022,106 @@ public function __construct(array $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 via 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 a CustomDimension on a property. * @@ -1272,6 +1491,53 @@ public function batchUpdateUserLinks($parent, $requests, array $optionalArgs = [ return $this->startCall('BatchUpdateUserLinks', BatchUpdateUserLinksResponse::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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 a conversion event with the specified attributes. * @@ -1408,6 +1674,145 @@ public function createCustomMetric($parent, $customMetric, array $optionalArgs = 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 a FirebaseLink. * @@ -1826,6 +2231,130 @@ public function deleteConversionEvent($name, array $optionalArgs = []) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 a FirebaseLink on a property * @@ -2347,6 +2876,51 @@ public function getCustomMetric($name, array $optionalArgs = []) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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. @@ -2375,43 +2949,125 @@ public function getCustomMetric($name, array $optionalArgs = []) * {@see Google\ApiCore\RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\DataSharingSettings + * @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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink * * @throws ApiException if the remote call fails * * @experimental */ - public function getDataSharingSettings($name, array $optionalArgs = []) + public function getDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) { - $request = new GetDataSharingSettingsRequest(); + $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('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); } /** - * Returns the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->enhancedMeasurementSettingsName('[PROPERTY]', '[WEB_DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getEnhancedMeasurementSettings($formattedName); + * $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 settings to lookup. - * Format: - * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param array $optionalArgs { * Optional. * @@ -2422,21 +3078,21 @@ public function getDataSharingSettings($name, array $optionalArgs = []) * {@see Google\ApiCore\RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings + * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal * * @throws ApiException if the remote call fails * * @experimental */ - public function getEnhancedMeasurementSettings($name, array $optionalArgs = []) + public function getDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) { - $request = new GetEnhancedMeasurementSettingsRequest(); + $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('GetEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); } /** @@ -3180,6 +3836,219 @@ public function listCustomMetrics($parent, array $optionalArgs = []) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 FirebaseLinks on a property. * Properties can have at most one FirebaseLink. @@ -4071,28 +4940,26 @@ public function updateCustomMetric($updateMask, array $optionalArgs = []) } /** - * Updates the singleton enhanced measurement settings for this web stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. + * Updates the singleton data retention settings for this property. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); + * $dataRetentionSettings = new DataRetentionSettings(); * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); + * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $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 { + * @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 @@ -4102,46 +4969,46 @@ public function updateCustomMetric($updateMask, array $optionalArgs = []) * {@see Google\ApiCore\RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings + * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings * * @throws ApiException if the remote call fails * * @experimental */ - public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask, array $optionalArgs = []) + public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) { - $request = new UpdateEnhancedMeasurementSettingsRequest(); + $request = new UpdateDataRetentionSettingsRequest(); $requestParamHeaders = []; - $request->setEnhancedMeasurementSettings($enhancedMeasurementSettings); + $request->setDataRetentionSettings($dataRetentionSettings); $request->setUpdateMask($updateMask); - $requestParamHeaders['enhanced_measurement_settings.name'] = $enhancedMeasurementSettings->getName(); + $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('UpdateEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); + return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); } /** - * Updates a FirebaseLink on a property + * Updates a DataStream on a property. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $firebaseLink = new FirebaseLink(); * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateFirebaseLink($firebaseLink, $updateMask); + * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param FirebaseLink $firebaseLink Required. The Firebase link to update. - * @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 { + * @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 Google\ApiCore\RetrySettings} object, or an associative array of retry @@ -4149,22 +5016,73 @@ public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings, * {@see Google\ApiCore\RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\FirebaseLink + * @return \Google\Analytics\Admin\V1alpha\DataStream * * @throws ApiException if the remote call fails * * @experimental */ - public function updateFirebaseLink($firebaseLink, $updateMask, array $optionalArgs = []) + public function updateDataStream($updateMask, array $optionalArgs = []) { - $request = new UpdateFirebaseLinkRequest(); + $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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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->setFirebaseLink($firebaseLink); $request->setUpdateMask($updateMask); - $requestParamHeaders['firebase_link.name'] = $firebaseLink->getName(); + 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('UpdateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); + return $this->startCall('UpdateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); } /** diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataRetentionSettingsRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php rename to AnalyticsAdmin/src/V1alpha/GetDataRetentionSettingsRequest.php index 194ee366d6a..036b6f839d4 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetDataRetentionSettingsRequest.php @@ -23,7 +23,7 @@ class GetDataRetentionSettingsRequest 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/GetDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataStreamRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php rename to AnalyticsAdmin/src/V1alpha/GetDataStreamRequest.php index 6952d888238..f9375bf599a 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetDataStreamRequest.php @@ -21,7 +21,7 @@ class GetDataStreamRequest 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/GetDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php rename to AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php index 3c100b7236f..3d1357d0bab 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php @@ -21,7 +21,7 @@ class GetDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\I * * 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/GetDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php index 9b35d95116b..640bc29234d 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php @@ -21,7 +21,7 @@ class GetDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\ * * 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/GoogleAdsLink.php b/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php index a8f297c0808..8bd8a553d04 100644 --- a/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php +++ b/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * A link between an GA4 property and a Google Ads account. + * A link between a GA4 property and a Google Ads account. * * Generated from protobuf message google.analytics.admin.v1alpha.GoogleAdsLink */ @@ -43,13 +43,6 @@ class GoogleAdsLink extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; */ private $ads_personalization_enabled = 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $email_address = ''; /** * Output only. Time when this link was originally created. * @@ -62,6 +55,13 @@ class GoogleAdsLink extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $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]; + */ + private $creator_email_address = ''; /** * Constructor. @@ -81,13 +81,13 @@ class GoogleAdsLink extends \Google\Protobuf\Internal\Message * 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 string $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. * @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) { @@ -186,7 +186,7 @@ public function setCanManageClients($var) */ public function getAdsPersonalizationEnabled() { - return isset($this->ads_personalization_enabled) ? $this->ads_personalization_enabled : null; + return $this->ads_personalization_enabled; } public function hasAdsPersonalizationEnabled() @@ -250,34 +250,6 @@ public function setAdsPersonalizationEnabledValue($var) $this->writeWrapperValue("ads_personalization_enabled", $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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEmailAddress() - { - return $this->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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->email_address = $var; - - return $this; - } - /** * Output only. Time when this link was originally created. * @@ -286,7 +258,7 @@ public function setEmailAddress($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -322,7 +294,7 @@ public function setCreateTime($var) */ public function getUpdateTime() { - return isset($this->update_time) ? $this->update_time : null; + return $this->update_time; } public function hasUpdateTime() @@ -350,5 +322,33 @@ public function setUpdateTime($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/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php b/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php index e5c7582a74d..7011deaabab 100644 --- a/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php +++ b/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php @@ -153,7 +153,7 @@ public function setFirebaseAppId($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -189,7 +189,7 @@ public function setCreateTime($var) */ public function getUpdateTime() { - return isset($this->update_time) ? $this->update_time : null; + return $this->update_time; } public function hasUpdateTime() diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php b/AnalyticsAdmin/src/V1alpha/LinkProposalInitiatingProduct.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php rename to AnalyticsAdmin/src/V1alpha/LinkProposalInitiatingProduct.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php b/AnalyticsAdmin/src/V1alpha/LinkProposalState.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php rename to AnalyticsAdmin/src/V1alpha/LinkProposalState.php diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php b/AnalyticsAdmin/src/V1alpha/LinkProposalStatusDetails.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php rename to AnalyticsAdmin/src/V1alpha/LinkProposalStatusDetails.php index 0aa42293c25..3deb05a01b2 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php +++ b/AnalyticsAdmin/src/V1alpha/LinkProposalStatusDetails.php @@ -20,19 +20,19 @@ class LinkProposalStatusDetails extends \Google\Protobuf\Internal\Message * * 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; + private $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 = ''; + private $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; + private $link_proposal_state = 0; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php b/AnalyticsAdmin/src/V1alpha/ListDataStreamsRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php rename to AnalyticsAdmin/src/V1alpha/ListDataStreamsRequest.php index 9501e1d1624..961168af6a5 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListDataStreamsRequest.php @@ -20,7 +20,7 @@ class ListDataStreamsRequest 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 = ''; /** * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. @@ -28,7 +28,7 @@ class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field int32 page_size = 2; */ - protected $page_size = 0; + private $page_size = 0; /** * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. @@ -37,7 +37,7 @@ class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string page_token = 3; */ - protected $page_token = ''; + private $page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php b/AnalyticsAdmin/src/V1alpha/ListDataStreamsResponse.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php rename to AnalyticsAdmin/src/V1alpha/ListDataStreamsResponse.php index 65804a5f61f..782395551a2 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php +++ b/AnalyticsAdmin/src/V1alpha/ListDataStreamsResponse.php @@ -27,7 +27,7 @@ class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message * * Generated from protobuf field string next_page_token = 2; */ - protected $next_page_token = ''; + private $next_page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php rename to AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php index 8be2c4f60c6..7a16b8a0756 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php @@ -20,7 +20,7 @@ class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. @@ -28,7 +28,7 @@ class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf * * Generated from protobuf field int32 page_size = 2; */ - protected $page_size = 0; + private $page_size = 0; /** * A page token, received from a previous * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve @@ -39,7 +39,7 @@ class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf * * Generated from protobuf field string page_token = 3; */ - protected $page_token = ''; + private $page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php rename to AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php index 8f41fdefcf6..13e669a09c6 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php +++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php @@ -27,7 +27,7 @@ class ListDisplayVideo360AdvertiserLinkProposalsResponse extends \Google\Protobu * * Generated from protobuf field string next_page_token = 2; */ - protected $next_page_token = ''; + private $next_page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php rename to AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php index 305fc4ddff3..29cc0b4dde3 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php @@ -20,7 +20,7 @@ class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Interna * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ - protected $parent = ''; + private $parent = ''; /** * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. @@ -28,7 +28,7 @@ class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Interna * * Generated from protobuf field int32 page_size = 2; */ - protected $page_size = 0; + private $page_size = 0; /** * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` * call. Provide this to retrieve the subsequent page. @@ -38,7 +38,7 @@ class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Interna * * Generated from protobuf field string page_token = 3; */ - protected $page_token = ''; + private $page_token = ''; /** * Constructor. diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php similarity index 99% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php rename to AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php index 8b90bb3a05f..77fcf0e3ebe 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php +++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php @@ -27,7 +27,7 @@ class ListDisplayVideo360AdvertiserLinksResponse extends \Google\Protobuf\Intern * * 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 2b3fdb86f5e..259c0573209 100644 --- a/AnalyticsAdmin/src/V1alpha/Property.php +++ b/AnalyticsAdmin/src/V1alpha/Property.php @@ -78,6 +78,12 @@ class Property extends \Google\Protobuf\Internal\Message * Generated from protobuf field string currency_code = 8; */ private $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]; + */ + private $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. @@ -93,6 +99,14 @@ class Property extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $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) = { + */ + private $account = ''; /** * Constructor. @@ -131,6 +145,8 @@ class Property extends \Google\Protobuf\Internal\Message * 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. @@ -138,6 +154,10 @@ class Property extends \Google\Protobuf\Internal\Message * 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) { @@ -183,7 +203,7 @@ public function setName($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -219,7 +239,7 @@ public function setCreateTime($var) */ public function getUpdateTime() { - return isset($this->update_time) ? $this->update_time : null; + return $this->update_time; } public function hasUpdateTime() @@ -403,6 +423,32 @@ public function setCurrencyCode($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. @@ -412,7 +458,7 @@ public function setCurrencyCode($var) */ public function getDeleteTime() { - return isset($this->delete_time) ? $this->delete_time : null; + return $this->delete_time; } public function hasDeleteTime() @@ -451,7 +497,7 @@ public function setDeleteTime($var) */ public function getExpireTime() { - return isset($this->expire_time) ? $this->expire_time : null; + return $this->expire_time; } public function hasExpireTime() @@ -481,5 +527,35 @@ public function setExpireTime($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/AnalyticsAdmin/src/V1alpha/PropertySummary.php b/AnalyticsAdmin/src/V1alpha/PropertySummary.php index d0c3e97f1c1..be3ced4aa27 100644 --- a/AnalyticsAdmin/src/V1alpha/PropertySummary.php +++ b/AnalyticsAdmin/src/V1alpha/PropertySummary.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * A virtual resource representing metadata for an GA4 property. + * A virtual resource representing metadata for a GA4 property. * * Generated from protobuf message google.analytics.admin.v1alpha.PropertySummary */ @@ -24,7 +24,7 @@ class PropertySummary extends \Google\Protobuf\Internal\Message */ private $property = ''; /** - * Display name for the property referred to in this account summary. + * Display name for the property referred to in this property summary. * * Generated from protobuf field string display_name = 2; */ @@ -41,7 +41,7 @@ class PropertySummary extends \Google\Protobuf\Internal\Message * Format: properties/{property_id} * Example: "properties/1000" * @type string $display_name - * Display name for the property referred to in this account summary. + * Display name for the property referred to in this property summary. * } */ public function __construct($data = NULL) { @@ -80,7 +80,7 @@ public function setProperty($var) } /** - * Display name for the property referred to in this account summary. + * Display name for the property referred to in this property summary. * * Generated from protobuf field string display_name = 2; * @return string @@ -91,7 +91,7 @@ public function getDisplayName() } /** - * Display name for the property referred to in this account summary. + * Display name for the property referred to in this property summary. * * Generated from protobuf field string display_name = 2; * @param string $var diff --git a/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php b/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php index b4d013e0b51..25fa52530dc 100644 --- a/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php @@ -55,7 +55,7 @@ public function __construct($data = NULL) { */ public function getAccount() { - return isset($this->account) ? $this->account : null; + return $this->account; } public function hasAccount() diff --git a/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php b/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php index 1f352047546..84013f5656a 100644 --- a/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php @@ -263,7 +263,7 @@ public function setActorEmail($var) */ public function getEarliestChangeTime() { - return isset($this->earliest_change_time) ? $this->earliest_change_time : null; + return $this->earliest_change_time; } public function hasEarliestChangeTime() @@ -299,7 +299,7 @@ public function setEarliestChangeTime($var) */ public function getLatestChangeTime() { - return isset($this->latest_change_time) ? $this->latest_change_time : null; + return $this->latest_change_time; } public function hasLatestChangeTime() diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php b/AnalyticsAdmin/src/V1alpha/ServiceLevel.php similarity index 100% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php rename to AnalyticsAdmin/src/V1alpha/ServiceLevel.php diff --git a/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php index 952fe87954e..f28a0f03186 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php @@ -60,7 +60,7 @@ public function __construct($data = NULL) { */ public function getAccount() { - return isset($this->account) ? $this->account : null; + return $this->account; } public function hasAccount() @@ -99,7 +99,7 @@ public function setAccount($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php index 7ec52689102..c9695464283 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php @@ -60,7 +60,7 @@ public function __construct($data = NULL) { */ public function getAndroidAppDataStream() { - return isset($this->android_app_data_stream) ? $this->android_app_data_stream : null; + return $this->android_app_data_stream; } public function hasAndroidAppDataStream() @@ -99,7 +99,7 @@ public function setAndroidAppDataStream($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php index 8020843f3cf..22e714096b1 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php @@ -57,7 +57,7 @@ public function __construct($data = NULL) { */ public function getCustomDimension() { - return isset($this->custom_dimension) ? $this->custom_dimension : null; + return $this->custom_dimension; } public function hasCustomDimension() @@ -95,7 +95,7 @@ public function setCustomDimension($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php index 60568657d4c..1cc191a1251 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php @@ -57,7 +57,7 @@ public function __construct($data = NULL) { */ public function getCustomMetric() { - return isset($this->custom_metric) ? $this->custom_metric : null; + return $this->custom_metric; } public function hasCustomMetric() @@ -95,7 +95,7 @@ public function setCustomMetric($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDataRetentionSettingsRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php rename to AnalyticsAdmin/src/V1alpha/UpdateDataRetentionSettingsRequest.php index c9e26059db4..c330a9891d3 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateDataRetentionSettingsRequest.php @@ -21,7 +21,7 @@ class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Messa * * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - protected $data_retention_settings = null; + private $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 @@ -29,7 +29,7 @@ class UpdateDataRetentionSettingsRequest 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/UpdateDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDataStreamRequest.php similarity index 98% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php rename to AnalyticsAdmin/src/V1alpha/UpdateDataStreamRequest.php index ee64e80855e..41ea4242b60 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateDataStreamRequest.php @@ -20,7 +20,7 @@ class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message * * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; */ - protected $data_stream = null; + private $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 @@ -28,7 +28,7 @@ class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message * * 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/UpdateDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php similarity index 97% rename from owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php rename to AnalyticsAdmin/src/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php index 00d9bb979c7..1e83ea1b37d 100644 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php @@ -20,7 +20,7 @@ class UpdateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Intern * * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; */ - protected $display_video_360_advertiser_link = null; + private $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 @@ -28,7 +28,7 @@ class UpdateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Intern * * 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/UpdateGoogleAdsLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php index 5750ad808f4..5ce358dd120 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php @@ -57,7 +57,7 @@ public function __construct($data = NULL) { */ public function getGoogleAdsLink() { - return isset($this->google_ads_link) ? $this->google_ads_link : null; + return $this->google_ads_link; } public function hasGoogleAdsLink() @@ -95,7 +95,7 @@ public function setGoogleAdsLink($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php index 641ea99b4ee..9ce49d1c30a 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php @@ -60,7 +60,7 @@ public function __construct($data = NULL) { */ public function getGoogleSignalsSettings() { - return isset($this->google_signals_settings) ? $this->google_signals_settings : null; + return $this->google_signals_settings; } public function hasGoogleSignalsSettings() @@ -99,7 +99,7 @@ public function setGoogleSignalsSettings($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php index 10aed55c5ec..68358307a86 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php @@ -60,7 +60,7 @@ public function __construct($data = NULL) { */ public function getIosAppDataStream() { - return isset($this->ios_app_data_stream) ? $this->ios_app_data_stream : null; + return $this->ios_app_data_stream; } public function hasIosAppDataStream() @@ -99,7 +99,7 @@ public function setIosAppDataStream($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php index 7d3848b6609..b967b7b31ac 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php @@ -53,7 +53,7 @@ public function __construct($data = NULL) { */ public function getMeasurementProtocolSecret() { - return isset($this->measurement_protocol_secret) ? $this->measurement_protocol_secret : null; + return $this->measurement_protocol_secret; } public function hasMeasurementProtocolSecret() @@ -89,7 +89,7 @@ public function setMeasurementProtocolSecret($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php b/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php index a1d4d3b5fae..ba0e3c19026 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php @@ -63,7 +63,7 @@ public function __construct($data = NULL) { */ public function getProperty() { - return isset($this->property) ? $this->property : null; + return $this->property; } public function hasProperty() @@ -103,7 +103,7 @@ public function setProperty($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php index c9d49d0aaa0..d70a336389f 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php @@ -45,7 +45,7 @@ public function __construct($data = NULL) { */ public function getUserLink() { - return isset($this->user_link) ? $this->user_link : null; + return $this->user_link; } public function hasUserLink() diff --git a/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php index 5ddbf167a1d..bd875989931 100644 --- a/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php +++ b/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php @@ -60,7 +60,7 @@ public function __construct($data = NULL) { */ public function getWebDataStream() { - return isset($this->web_data_stream) ? $this->web_data_stream : null; + return $this->web_data_stream; } public function hasWebDataStream() @@ -99,7 +99,7 @@ public function setWebDataStream($var) */ public function getUpdateMask() { - return isset($this->update_mask) ? $this->update_mask : null; + return $this->update_mask; } public function hasUpdateMask() diff --git a/AnalyticsAdmin/src/V1alpha/UserLink.php b/AnalyticsAdmin/src/V1alpha/UserLink.php index 7f98b9c4bad..422be45ecdf 100644 --- a/AnalyticsAdmin/src/V1alpha/UserLink.php +++ b/AnalyticsAdmin/src/V1alpha/UserLink.php @@ -31,10 +31,12 @@ class UserLink extends \Google\Protobuf\Internal\Message /** * Roles directly assigned to this user for this account or property. * Valid values: - * predefinedRoles/read - * predefinedRoles/collaborate - * predefinedRoles/edit - * predefinedRoles/manage-users + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data * Excludes roles that are inherited from a higher-level entity, group, * or organization admin role. * A UserLink that is updated to have an empty list of direct_roles will be @@ -57,10 +59,12 @@ class UserLink extends \Google\Protobuf\Internal\Message * @type string[]|\Google\Protobuf\Internal\RepeatedField $direct_roles * Roles directly assigned to this user for this account or property. * Valid values: - * predefinedRoles/read - * predefinedRoles/collaborate - * predefinedRoles/edit - * predefinedRoles/manage-users + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data * Excludes roles that are inherited from a higher-level entity, group, * or organization admin role. * A UserLink that is updated to have an empty list of direct_roles will be @@ -127,10 +131,12 @@ public function setEmailAddress($var) /** * Roles directly assigned to this user for this account or property. * Valid values: - * predefinedRoles/read - * predefinedRoles/collaborate - * predefinedRoles/edit - * predefinedRoles/manage-users + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data * Excludes roles that are inherited from a higher-level entity, group, * or organization admin role. * A UserLink that is updated to have an empty list of direct_roles will be @@ -147,10 +153,12 @@ public function getDirectRoles() /** * Roles directly assigned to this user for this account or property. * Valid values: - * predefinedRoles/read - * predefinedRoles/collaborate - * predefinedRoles/edit - * predefinedRoles/manage-users + * predefinedRoles/viewer + * predefinedRoles/analyst + * predefinedRoles/editor + * predefinedRoles/admin + * predefinedRoles/no-cost-data + * predefinedRoles/no-revenue-data * Excludes roles that are inherited from a higher-level entity, group, * or organization admin role. * A UserLink that is updated to have an empty list of direct_roles will be diff --git a/AnalyticsAdmin/src/V1alpha/WebDataStream.php b/AnalyticsAdmin/src/V1alpha/WebDataStream.php index 8d653f83118..7c8a30c5b32 100644 --- a/AnalyticsAdmin/src/V1alpha/WebDataStream.php +++ b/AnalyticsAdmin/src/V1alpha/WebDataStream.php @@ -58,7 +58,7 @@ class WebDataStream extends \Google\Protobuf\Internal\Message private $default_uri = ''; /** * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 100 UTF-16 code units. + * The max allowed display name length is 255 UTF-16 code units. * * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; */ @@ -89,7 +89,7 @@ class WebDataStream extends \Google\Protobuf\Internal\Message * Example: "http://www.google.com", "https://www.google.com" * @type string $display_name * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 100 UTF-16 code units. + * The max allowed display name length is 255 UTF-16 code units. * } */ public function __construct($data = NULL) { @@ -191,7 +191,7 @@ public function setFirebaseAppId($var) */ public function getCreateTime() { - return isset($this->create_time) ? $this->create_time : null; + return $this->create_time; } public function hasCreateTime() @@ -227,7 +227,7 @@ public function setCreateTime($var) */ public function getUpdateTime() { - return isset($this->update_time) ? $this->update_time : null; + return $this->update_time; } public function hasUpdateTime() @@ -285,7 +285,7 @@ public function setDefaultUri($var) /** * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 100 UTF-16 code units. + * The max allowed display name length is 255 UTF-16 code units. * * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -297,7 +297,7 @@ public function getDisplayName() /** * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 100 UTF-16 code units. + * The max allowed display name length is 255 UTF-16 code units. * * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json index b2e1bde4408..255a3278d51 100644 --- a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json +++ b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json @@ -10,6 +10,16 @@ "grpc": { "libraryClient": "AnalyticsAdminServiceGapicClient", "rpcs": { + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledgeUserDataCollection" + ] + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "approveDisplayVideo360AdvertiserLinkProposal" + ] + }, "ArchiveCustomDimension": { "methods": [ "archiveCustomDimension" @@ -45,6 +55,11 @@ "batchUpdateUserLinks" ] }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "cancelDisplayVideo360AdvertiserLinkProposal" + ] + }, "CreateConversionEvent": { "methods": [ "createConversionEvent" @@ -60,6 +75,21 @@ "createCustomMetric" ] }, + "CreateDataStream": { + "methods": [ + "createDataStream" + ] + }, + "CreateDisplayVideo360AdvertiserLink": { + "methods": [ + "createDisplayVideo360AdvertiserLink" + ] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "createDisplayVideo360AdvertiserLinkProposal" + ] + }, "CreateFirebaseLink": { "methods": [ "createFirebaseLink" @@ -105,6 +135,21 @@ "deleteConversionEvent" ] }, + "DeleteDataStream": { + "methods": [ + "deleteDataStream" + ] + }, + "DeleteDisplayVideo360AdvertiserLink": { + "methods": [ + "deleteDisplayVideo360AdvertiserLink" + ] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "deleteDisplayVideo360AdvertiserLinkProposal" + ] + }, "DeleteFirebaseLink": { "methods": [ "deleteFirebaseLink" @@ -165,14 +210,29 @@ "getCustomMetric" ] }, + "GetDataRetentionSettings": { + "methods": [ + "getDataRetentionSettings" + ] + }, "GetDataSharingSettings": { "methods": [ "getDataSharingSettings" ] }, - "GetEnhancedMeasurementSettings": { + "GetDataStream": { + "methods": [ + "getDataStream" + ] + }, + "GetDisplayVideo360AdvertiserLink": { + "methods": [ + "getDisplayVideo360AdvertiserLink" + ] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { "methods": [ - "getEnhancedMeasurementSettings" + "getDisplayVideo360AdvertiserLinkProposal" ] }, "GetGlobalSiteTag": { @@ -240,6 +300,21 @@ "listCustomMetrics" ] }, + "ListDataStreams": { + "methods": [ + "listDataStreams" + ] + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "methods": [ + "listDisplayVideo360AdvertiserLinkProposals" + ] + }, + "ListDisplayVideo360AdvertiserLinks": { + "methods": [ + "listDisplayVideo360AdvertiserLinks" + ] + }, "ListFirebaseLinks": { "methods": [ "listFirebaseLinks" @@ -305,14 +380,19 @@ "updateCustomMetric" ] }, - "UpdateEnhancedMeasurementSettings": { + "UpdateDataRetentionSettings": { + "methods": [ + "updateDataRetentionSettings" + ] + }, + "UpdateDataStream": { "methods": [ - "updateEnhancedMeasurementSettings" + "updateDataStream" ] }, - "UpdateFirebaseLink": { + "UpdateDisplayVideo360AdvertiserLink": { "methods": [ - "updateFirebaseLink" + "updateDisplayVideo360AdvertiserLink" ] }, "UpdateGoogleAdsLink": { 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 673658b440e..b76dd4b721f 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json @@ -39,6 +39,16 @@ } }, "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" + }, "ArchiveCustomDimension": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -74,6 +84,11 @@ "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", + "retry_params_name": "retry_policy_1_params" + }, "CreateConversionEvent": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -89,6 +104,21 @@ "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" + }, "CreateFirebaseLink": { "timeout_millis": 60000, "retry_codes_name": "no_retry_1_codes", @@ -134,6 +164,21 @@ "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" + }, "DeleteFirebaseLink": { "timeout_millis": 60000, "retry_codes_name": "no_retry_1_codes", @@ -194,15 +239,30 @@ "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" }, - "GetEnhancedMeasurementSettings": { + "GetDataStream": { "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" + }, + "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" }, "GetGlobalSiteTag": { "timeout_millis": 60000, @@ -269,6 +329,21 @@ "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" + }, "ListFirebaseLinks": { "timeout_millis": 60000, "retry_codes_name": "no_retry_1_codes", @@ -334,15 +409,20 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "UpdateEnhancedMeasurementSettings": { + "UpdateDataRetentionSettings": { "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" }, - "UpdateFirebaseLink": { + "UpdateDataStream": { "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" + }, + "UpdateDisplayVideo360AdvertiserLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "UpdateGoogleAdsLink": { "timeout_millis": 60000, 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 7a9c26e6db9..9d17c30f182 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php @@ -73,6 +73,36 @@ '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', + ], + ], 'ListFirebaseLinks' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 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 fbc74b592d8..475e5260520 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 @@ -3,6 +3,30 @@ return [ 'interfaces' => [ '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', + ], + ], + ], + ], 'ArchiveCustomDimension' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}:archive', @@ -120,6 +144,18 @@ ], ], ], + 'CancelDisplayVideo360AdvertiserLinkProposal' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'CreateConversionEvent' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', @@ -156,6 +192,42 @@ ], ], ], + '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', + ], + ], + ], + ], 'CreateFirebaseLink' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', @@ -273,6 +345,39 @@ ], ], ], + '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', + ], + ], + ], + ], 'DeleteFirebaseLink' => [ 'method' => 'delete', 'uriTemplate' => '/v1alpha/{name=properties/*/firebaseLinks/*}', @@ -421,6 +526,17 @@ ], ], ], + 'GetDataRetentionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'GetDataSharingSettings' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/{name=accounts/*/dataSharingSettings}', @@ -432,9 +548,31 @@ ], ], ], - 'GetEnhancedMeasurementSettings' => [ + '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/*/webDataStreams/*/enhancedMeasurementSettings}', + 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -588,6 +726,39 @@ ], ], ], + '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', + ], + ], + ], + ], 'ListFirebaseLinks' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', @@ -645,6 +816,9 @@ 'ListProperties' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/properties', + 'queryParams' => [ + 'filter', + ], ], 'ListUserLinks' => [ 'method' => 'get', @@ -703,6 +877,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateAndroidAppDataStream' => [ 'method' => 'patch', @@ -716,6 +893,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateCustomDimension' => [ 'method' => 'patch', @@ -729,6 +909,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateCustomMetric' => [ 'method' => 'patch', @@ -742,32 +925,57 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], - 'UpdateEnhancedMeasurementSettings' => [ + 'UpdateDataRetentionSettings' => [ 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}', - 'body' => 'enhanced_measurement_settings', + 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}', + 'body' => 'data_retention_settings', 'placeholders' => [ - 'enhanced_measurement_settings.name' => [ + 'data_retention_settings.name' => [ 'getters' => [ - 'getEnhancedMeasurementSettings', + 'getDataRetentionSettings', 'getName', ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], - 'UpdateFirebaseLink' => [ + 'UpdateDataStream' => [ 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}', - 'body' => 'firebase_link', + 'uriTemplate' => '/v1alpha/{data_stream.name=properties/*/dataStreams/*}', + 'body' => 'data_stream', 'placeholders' => [ - 'firebase_link.name' => [ + 'data_stream.name' => [ 'getters' => [ - 'getFirebaseLink', + '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', + ], ], 'UpdateGoogleAdsLink' => [ 'method' => 'patch', @@ -781,6 +989,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateGoogleSignalsSettings' => [ 'method' => 'patch', @@ -794,6 +1005,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateIosAppDataStream' => [ 'method' => 'patch', @@ -807,6 +1021,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateMeasurementProtocolSecret' => [ 'method' => 'patch', @@ -845,6 +1062,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], 'UpdateUserLink' => [ 'method' => 'patch', @@ -878,6 +1098,9 @@ ], ], ], + 'queryParams' => [ + 'update_mask', + ], ], ], ], diff --git a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php index cf0ce6041d0..aae5676c815 100644 --- a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php +++ b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php @@ -25,9 +25,11 @@ use Google\Analytics\Admin\V1alpha\Account; use Google\Analytics\Admin\V1alpha\AccountSummary; +use Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse; use Google\Analytics\Admin\V1alpha\AnalyticsAdminServiceClient; -use Google\Analytics\Admin\V1alpha\AndroidAppDataStream; +use Google\Analytics\Admin\V1alpha\AndroidAppDataStream; +use Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse; use Google\Analytics\Admin\V1alpha\AuditUserLink; use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse; @@ -40,8 +42,12 @@ 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\DataRetentionSettings; use Google\Analytics\Admin\V1alpha\DataSharingSettings; -use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings; +use Google\Analytics\Admin\V1alpha\DataStream; +use Google\Analytics\Admin\V1alpha\DataStream\DataStreamType; +use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink; +use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal; use Google\Analytics\Admin\V1alpha\FirebaseLink; use Google\Analytics\Admin\V1alpha\GlobalSiteTag; use Google\Analytics\Admin\V1alpha\GoogleAdsLink; @@ -53,6 +59,9 @@ use Google\Analytics\Admin\V1alpha\ListConversionEventsResponse; use Google\Analytics\Admin\V1alpha\ListCustomDimensionsResponse; use Google\Analytics\Admin\V1alpha\ListCustomMetricsResponse; +use Google\Analytics\Admin\V1alpha\ListDataStreamsResponse; +use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse; +use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse; use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse; use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse; use Google\Analytics\Admin\V1alpha\ListIosAppDataStreamsResponse; @@ -109,6 +118,134 @@ private function createClient(array $options = []) return new AnalyticsAdminServiceClient($options); } + /** + * @test + */ + public function acknowledgeUserDataCollectionTest() + { + $transport = $this->createTransport(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AcknowledgeUserDataCollectionResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedProperty = $client->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); + $acknowledgement = 'acknowledgement1769490938'; + try { + $client->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + try { + $client->approveDisplayVideo360AdvertiserLinkProposal($formattedName); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** * @test */ @@ -570,6 +707,76 @@ public function batchUpdateUserLinksExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** + * @test + */ + public function cancelDisplayVideo360AdvertiserLinkProposalTest() + { + $transport = $this->createTransport(); + $client = $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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + try { + $client->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** * @test */ @@ -583,11 +790,13 @@ public function createConversionEventTest() // Mock response $name = 'name3373707'; $eventName = 'eventName984174864'; - $isDeletable = false; + $deletable = true; + $custom = false; $expectedResponse = new ConversionEvent(); $expectedResponse->setName($name); $expectedResponse->setEventName($eventName); - $expectedResponse->setIsDeletable($isDeletable); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); $transport->addResponse($expectedResponse); // Mock request $conversionEvent = new ConversionEvent(); @@ -823,7 +1032,7 @@ public function createCustomMetricExceptionTest() /** * @test */ - public function createFirebaseLinkTest() + public function createDataStreamTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -832,32 +1041,34 @@ public function createFirebaseLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); $expectedResponse->setName($name); - $expectedResponse->setProject($project); + $expectedResponse->setDisplayName($displayName); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $client->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $response = $client->createFirebaseLink($formattedParent, $firebaseLink); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); + $response = $client->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/CreateFirebaseLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); + $actualValue = $actualRequestObject->getDataStream(); + $this->assertProtobufEquals($dataStream, $actualValue); $this->assertTrue($transport->isExhausted()); } /** * @test */ - public function createFirebaseLinkExceptionTest() + public function createDataStreamExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -876,9 +1087,11 @@ public function createFirebaseLinkExceptionTest() $transport->addResponse(null, $status); // Mock request $formattedParent = $client->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); + $dataStream = new DataStream(); + $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; + $dataStream->setType($dataStreamType); try { - $client->createFirebaseLink($formattedParent, $firebaseLink); + $client->createDataStream($formattedParent, $dataStream); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -893,7 +1106,7 @@ public function createFirebaseLinkExceptionTest() /** * @test */ - public function createGoogleAdsLinkTest() + public function createDisplayVideo360AdvertiserLinkTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -902,36 +1115,34 @@ public function createGoogleAdsLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new GoogleAdsLink(); + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new DisplayVideo360AdvertiserLink(); $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setEmailAddress($emailAddress); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $client->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $response = $client->createGoogleAdsLink($formattedParent, $googleAdsLink); + $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); + $response = $client->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/CreateGoogleAdsLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); + $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLink(); + $this->assertProtobufEquals($displayVideo360AdvertiserLink, $actualValue); $this->assertTrue($transport->isExhausted()); } /** * @test */ - public function createGoogleAdsLinkExceptionTest() + public function createDisplayVideo360AdvertiserLinkExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -950,9 +1161,9 @@ public function createGoogleAdsLinkExceptionTest() $transport->addResponse(null, $status); // Mock request $formattedParent = $client->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); + $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); try { - $client->createGoogleAdsLink($formattedParent, $googleAdsLink); + $client->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -967,7 +1178,7 @@ public function createGoogleAdsLinkExceptionTest() /** * @test */ - public function createMeasurementProtocolSecretTest() + public function createDisplayVideo360AdvertiserLinkProposalTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -976,36 +1187,36 @@ public function createMeasurementProtocolSecretTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $validationEmail = 'validationEmail2105669718'; + $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setValidationEmail($validationEmail); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $response = $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + $formattedParent = $client->propertyName('[PROPERTY]'); + $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); + $response = $client->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/CreateMeasurementProtocolSecret', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); + $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLinkProposal(); + $this->assertProtobufEquals($displayVideo360AdvertiserLinkProposal, $actualValue); $this->assertTrue($transport->isExhausted()); } /** * @test */ - public function createMeasurementProtocolSecretExceptionTest() + public function createDisplayVideo360AdvertiserLinkProposalExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1023,12 +1234,10 @@ public function createMeasurementProtocolSecretExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $formattedParent = $client->propertyName('[PROPERTY]'); + $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); try { - $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + $client->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1043,7 +1252,7 @@ public function createMeasurementProtocolSecretExceptionTest() /** * @test */ - public function createPropertyTest() + public function createFirebaseLinkTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1052,39 +1261,32 @@ public function createPropertyTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $expectedResponse = new Property(); + $project = 'project-309310695'; + $expectedResponse = new FirebaseLink(); $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); + $expectedResponse->setProject($project); $transport->addResponse($expectedResponse); // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $response = $client->createProperty($property); + $formattedParent = $client->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + $response = $client->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/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); + $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 createPropertyExceptionTest() + public function createFirebaseLinkExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1102,12 +1304,241 @@ public function createPropertyExceptionTest() ], 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 { + $formattedParent = $client->propertyName('[PROPERTY]'); + $firebaseLink = new FirebaseLink(); + try { + $client->createFirebaseLink($formattedParent, $firebaseLink); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); + $googleAdsLink = new GoogleAdsLink(); + try { + $client->createGoogleAdsLink($formattedParent, $googleAdsLink); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); + $measurementProtocolSecret = new MeasurementProtocolSecret(); + $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; + $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); + try { + $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 { $client->createProperty($property); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); @@ -1138,26 +1569,229 @@ public function createUserLinkTest() $expectedResponse->setEmailAddress($emailAddress); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $userLink = new UserLink(); - $response = $client->createUserLink($formattedParent, $userLink); - $this->assertEquals($expectedResponse, $response); + $formattedParent = $client->accountName('[ACCOUNT]'); + $userLink = new UserLink(); + $response = $client->createUserLink($formattedParent, $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/CreateUserLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getUserLink(); + $this->assertProtobufEquals($userLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** + * @test + */ + public function createUserLinkExceptionTest() + { + $transport = $this->createTransport(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); + $userLink = new UserLink(); + try { + $client->createUserLink($formattedParent, $userLink); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** + * @test + */ + public function createWebDataStreamTest() + { + $transport = $this->createTransport(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $measurementId = 'measurementId-223204226'; + $firebaseAppId = 'firebaseAppId605863217'; + $defaultUri = 'defaultUri-436616594'; + $displayName = 'displayName1615086568'; + $expectedResponse = new WebDataStream(); + $expectedResponse->setName($name); + $expectedResponse->setMeasurementId($measurementId); + $expectedResponse->setFirebaseAppId($firebaseAppId); + $expectedResponse->setDefaultUri($defaultUri); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $webDataStream = new WebDataStream(); + $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; + $webDataStream->setDisplayName($webDataStreamDisplayName); + $formattedParent = $client->propertyName('[PROPERTY]'); + $response = $client->createWebDataStream($webDataStream, $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/CreateWebDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getWebDataStream(); + $this->assertProtobufEquals($webDataStream, $actualValue); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** + * @test + */ + public function createWebDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $webDataStream = new WebDataStream(); + $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; + $webDataStream->setDisplayName($webDataStreamDisplayName); + $formattedParent = $client->propertyName('[PROPERTY]'); + try { + $client->createWebDataStream($webDataStream, $formattedParent); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $client->accountName('[ACCOUNT]'); + $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); + try { + $client->deleteAccount($formattedName); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** + * @test + */ + public function deleteAndroidAppDataStreamTest() + { + $transport = $this->createTransport(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); + $client->deleteAndroidAppDataStream($formattedName); $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); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserLink(); - $this->assertProtobufEquals($userLink, $actualValue); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** * @test */ - public function createUserLinkExceptionTest() + public function deleteAndroidAppDataStreamExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1175,10 +1809,9 @@ public function createUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $userLink = new UserLink(); + $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); try { - $client->createUserLink($formattedParent, $userLink); + $client->deleteAndroidAppDataStream($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1193,7 +1826,7 @@ public function createUserLinkExceptionTest() /** * @test */ - public function createWebDataStreamTest() + public function deleteConversionEventTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1201,41 +1834,25 @@ public function createWebDataStreamTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name = 'name3373707'; - $measurementId = 'measurementId-223204226'; - $firebaseAppId = 'firebaseAppId605863217'; - $defaultUri = 'defaultUri-436616594'; - $displayName = 'displayName1615086568'; - $expectedResponse = new WebDataStream(); - $expectedResponse->setName($name); - $expectedResponse->setMeasurementId($measurementId); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setDefaultUri($defaultUri); - $expectedResponse->setDisplayName($displayName); + $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $webDataStream = new WebDataStream(); - $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; - $webDataStream->setDisplayName($webDataStreamDisplayName); - $formattedParent = $client->propertyName('[PROPERTY]'); - $response = $client->createWebDataStream($webDataStream, $formattedParent); - $this->assertEquals($expectedResponse, $response); + $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $client->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/CreateWebDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getWebDataStream(); - $this->assertProtobufEquals($webDataStream, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** * @test */ - public function createWebDataStreamExceptionTest() + public function deleteConversionEventExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1253,12 +1870,9 @@ public function createWebDataStreamExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $webDataStream = new WebDataStream(); - $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; - $webDataStream->setDisplayName($webDataStreamDisplayName); - $formattedParent = $client->propertyName('[PROPERTY]'); + $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); try { - $client->createWebDataStream($webDataStream, $formattedParent); + $client->deleteConversionEvent($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1273,7 +1887,7 @@ public function createWebDataStreamExceptionTest() /** * @test */ - public function deleteAccountTest() + public function deleteDataStreamTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1284,13 +1898,13 @@ public function deleteAccountTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->accountName('[ACCOUNT]'); - $client->deleteAccount($formattedName); + $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $client->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/DeleteAccount', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -1299,7 +1913,7 @@ public function deleteAccountTest() /** * @test */ - public function deleteAccountExceptionTest() + public function deleteDataStreamExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1317,9 +1931,9 @@ public function deleteAccountExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->accountName('[ACCOUNT]'); + $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); try { - $client->deleteAccount($formattedName); + $client->deleteDataStream($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1334,7 +1948,7 @@ public function deleteAccountExceptionTest() /** * @test */ - public function deleteAndroidAppDataStreamTest() + public function deleteDisplayVideo360AdvertiserLinkTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1345,13 +1959,13 @@ public function deleteAndroidAppDataStreamTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - $client->deleteAndroidAppDataStream($formattedName); + $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + $client->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/DeleteAndroidAppDataStream', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -1360,7 +1974,7 @@ public function deleteAndroidAppDataStreamTest() /** * @test */ - public function deleteAndroidAppDataStreamExceptionTest() + public function deleteDisplayVideo360AdvertiserLinkExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1378,9 +1992,9 @@ public function deleteAndroidAppDataStreamExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); + $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); try { - $client->deleteAndroidAppDataStream($formattedName); + $client->deleteDisplayVideo360AdvertiserLink($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1395,7 +2009,7 @@ public function deleteAndroidAppDataStreamExceptionTest() /** * @test */ - public function deleteConversionEventTest() + public function deleteDisplayVideo360AdvertiserLinkProposalTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1406,13 +2020,13 @@ public function deleteConversionEventTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $client->deleteConversionEvent($formattedName); + $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $client->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/DeleteConversionEvent', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -1421,7 +2035,7 @@ public function deleteConversionEventTest() /** * @test */ - public function deleteConversionEventExceptionTest() + public function deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -1439,9 +2053,9 @@ public function deleteConversionEventExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); + $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); try { - $client->deleteConversionEvent($formattedName); + $client->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1713,12 +2327,14 @@ public function deletePropertyTest() $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 = $client->propertyName('[PROPERTY]'); @@ -2044,11 +2660,13 @@ public function getConversionEventTest() // Mock response $name2 = 'name2-1052831874'; $eventName = 'eventName984174864'; - $isDeletable = false; + $deletable = true; + $custom = false; $expectedResponse = new ConversionEvent(); $expectedResponse->setName($name2); $expectedResponse->setEventName($eventName); - $expectedResponse->setIsDeletable($isDeletable); + $expectedResponse->setDeletable($deletable); + $expectedResponse->setCustom($custom); $transport->addResponse($expectedResponse); // Mock request $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); @@ -2241,6 +2859,72 @@ public function getCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** + * @test + */ + public function getDataRetentionSettingsTest() + { + $transport = $this->createTransport(); + $client = $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 = $client->dataRetentionSettingsName('[PROPERTY]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->dataRetentionSettingsName('[PROPERTY]'); + try { + $client->getDataRetentionSettings($formattedName); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** * @test */ @@ -2274,7 +2958,141 @@ public function getDataSharingSettingsTest() $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); + $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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->dataSharingSettingsName('[ACCOUNT]'); + try { + $client->getDataSharingSettings($formattedName); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + try { + $client->getDataStream($formattedName); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); + $response = $client->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()); @@ -2283,7 +3101,7 @@ public function getDataSharingSettingsTest() /** * @test */ - public function getDataSharingSettingsExceptionTest() + public function getDisplayVideo360AdvertiserLinkExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -2301,9 +3119,9 @@ public function getDataSharingSettingsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->dataSharingSettingsName('[ACCOUNT]'); + $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); try { - $client->getDataSharingSettings($formattedName); + $client->getDisplayVideo360AdvertiserLink($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2318,7 +3136,7 @@ public function getDataSharingSettingsExceptionTest() /** * @test */ - public function getEnhancedMeasurementSettingsTest() + public function getDisplayVideo360AdvertiserLinkProposalTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -2327,40 +3145,24 @@ public function getEnhancedMeasurementSettingsTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $streamEnabled = true; - $pageViewsEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageLoadsEnabled = false; - $pageChangesEnabled = false; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $validationEmail = 'validationEmail2105669718'; + $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); $expectedResponse->setName($name2); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setPageViewsEnabled($pageViewsEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageLoadsEnabled($pageLoadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setValidationEmail($validationEmail); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->enhancedMeasurementSettingsName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $response = $client->getEnhancedMeasurementSettings($formattedName); + $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); + $response = $client->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/GetEnhancedMeasurementSettings', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -2369,7 +3171,7 @@ public function getEnhancedMeasurementSettingsTest() /** * @test */ - public function getEnhancedMeasurementSettingsExceptionTest() + public function getDisplayVideo360AdvertiserLinkProposalExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -2387,9 +3189,9 @@ public function getEnhancedMeasurementSettingsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->enhancedMeasurementSettingsName('[PROPERTY]', '[WEB_DATA_STREAM]'); + $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); try { - $client->getEnhancedMeasurementSettings($formattedName); + $client->getDisplayVideo360AdvertiserLinkProposal($formattedName); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2685,12 +3487,14 @@ public function getPropertyTest() $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 = $client->propertyName('[PROPERTY]'); @@ -3299,6 +4103,222 @@ public function listCustomMetricsExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** + * @test + */ + public function listDataStreamsTest() + { + $transport = $this->createTransport(); + $client = $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 = $client->propertyName('[PROPERTY]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); + try { + $client->listDataStreams($formattedParent); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->propertyName('[PROPERTY]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); + try { + $client->listDisplayVideo360AdvertiserLinkProposals($formattedParent); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->propertyName('[PROPERTY]'); + $response = $client->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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); + try { + $client->listDisplayVideo360AdvertiserLinks($formattedParent); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** * @test */ @@ -4230,7 +5250,7 @@ public function updateCustomMetricExceptionTest() /** * @test */ - public function updateEnhancedMeasurementSettingsTest() + public function updateDataRetentionSettingsTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -4239,45 +5259,23 @@ public function updateEnhancedMeasurementSettingsTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $streamEnabled = true; - $pageViewsEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageLoadsEnabled = false; - $pageChangesEnabled = false; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); + $resetUserDataOnNewActivity = false; + $expectedResponse = new DataRetentionSettings(); $expectedResponse->setName($name); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setPageViewsEnabled($pageViewsEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageLoadsEnabled($pageLoadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); + $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); $transport->addResponse($expectedResponse); // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); + $dataRetentionSettings = new DataRetentionSettings(); $updateMask = new FieldMask(); - $response = $client->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); + $response = $client->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/UpdateEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getEnhancedMeasurementSettings(); - $this->assertProtobufEquals($enhancedMeasurementSettings, $actualValue); + $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()); @@ -4286,7 +5284,7 @@ public function updateEnhancedMeasurementSettingsTest() /** * @test */ - public function updateEnhancedMeasurementSettingsExceptionTest() + public function updateDataRetentionSettingsExceptionTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -4304,12 +5302,10 @@ public function updateEnhancedMeasurementSettingsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); + $dataRetentionSettings = new DataRetentionSettings(); $updateMask = new FieldMask(); try { - $client->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); + $client->updateDataRetentionSettings($dataRetentionSettings, $updateMask); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4324,7 +5320,7 @@ public function updateEnhancedMeasurementSettingsExceptionTest() /** * @test */ - public function updateFirebaseLinkTest() + public function updateDataStreamTest() { $transport = $this->createTransport(); $client = $this->createClient([ @@ -4333,23 +5329,20 @@ public function updateFirebaseLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); + $displayName = 'displayName1615086568'; + $expectedResponse = new DataStream(); $expectedResponse->setName($name); - $expectedResponse->setProject($project); + $expectedResponse->setDisplayName($displayName); $transport->addResponse($expectedResponse); // Mock request - $firebaseLink = new FirebaseLink(); $updateMask = new FieldMask(); - $response = $client->updateFirebaseLink($firebaseLink, $updateMask); + $response = $client->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/UpdateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); $actualValue = $actualRequestObject->getUpdateMask(); $this->assertProtobufEquals($updateMask, $actualValue); $this->assertTrue($transport->isExhausted()); @@ -4358,7 +5351,75 @@ public function updateFirebaseLinkTest() /** * @test */ - public function updateFirebaseLinkExceptionTest() + public function updateDataStreamExceptionTest() + { + $transport = $this->createTransport(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal 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 { + $client->updateDataStream($updateMask); + // If the $client method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $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(); + $client = $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 = $client->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(); $client = $this->createClient([ @@ -4376,10 +5437,9 @@ public function updateFirebaseLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $firebaseLink = new FirebaseLink(); $updateMask = new FieldMask(); try { - $client->updateFirebaseLink($firebaseLink, $updateMask); + $client->updateDisplayVideo360AdvertiserLink($updateMask); // If the $client method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4405,12 +5465,12 @@ public function updateGoogleAdsLinkTest() $name = 'name3373707'; $customerId = 'customerId-1772061412'; $canManageClients = false; - $emailAddress = 'emailAddress-769510831'; + $creatorEmailAddress = 'creatorEmailAddress-1491810434'; $expectedResponse = new GoogleAdsLink(); $expectedResponse->setName($name); $expectedResponse->setCustomerId($customerId); $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setEmailAddress($emailAddress); + $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); $transport->addResponse($expectedResponse); // Mock request $updateMask = new FieldMask(); @@ -4695,12 +5755,14 @@ public function updatePropertyTest() $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(); 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 7d18f9d27d7..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php +++ /dev/null @@ -1,490 +0,0 @@ -internalAddGeneratedFile( - ' -Ñ– -4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alphagoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"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"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"\\ -GetWebDataStreamRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/WebDataStream"_ -DeleteWebDataStreamRequestA -name ( B3àAúA- -+analyticsadmin.googleapis.com/WebDataStream"Ÿ -UpdateWebDataStreamRequestK -web_data_stream ( 2-.google.analytics.admin.v1alpha.WebDataStreamBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"® -CreateWebDataStreamRequestK -web_data_stream ( 2-.google.analytics.admin.v1alpha.WebDataStreamBàAC -parent ( B3àAúA-+analyticsadmin.googleapis.com/WebDataStream"‡ -ListWebDataStreamsRequestC -parent ( B3àAúA-+analyticsadmin.googleapis.com/WebDataStream - page_size ( - -page_token ( "~ -ListWebDataStreamsResponseG -web_data_streams ( 2-.google.analytics.admin.v1alpha.WebDataStream -next_page_token ( "b -GetIosAppDataStreamRequestD -name ( B6àAúA0 -.analyticsadmin.googleapis.com/IosAppDataStream"e -DeleteIosAppDataStreamRequestD -name ( B6àAúA0 -.analyticsadmin.googleapis.com/IosAppDataStream"© -UpdateIosAppDataStreamRequestR -ios_app_data_stream ( 20.google.analytics.admin.v1alpha.IosAppDataStreamBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA" -ListIosAppDataStreamsRequestF -parent ( B6àAúA0.analyticsadmin.googleapis.com/IosAppDataStream - page_size ( - -page_token ( "ˆ -ListIosAppDataStreamsResponseN -ios_app_data_streams ( 20.google.analytics.admin.v1alpha.IosAppDataStream -next_page_token ( "j -GetAndroidAppDataStreamRequestH -name ( B:àAúA4 -2analyticsadmin.googleapis.com/AndroidAppDataStream"m -!DeleteAndroidAppDataStreamRequestH -name ( B:àAúA4 -2analyticsadmin.googleapis.com/AndroidAppDataStream"µ -!UpdateAndroidAppDataStreamRequestZ -android_app_data_stream ( 24.google.analytics.admin.v1alpha.AndroidAppDataStreamBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"• - ListAndroidAppDataStreamsRequestJ -parent ( B:àAúA42analyticsadmin.googleapis.com/AndroidAppDataStream - page_size ( - -page_token ( "” -!ListAndroidAppDataStreamsResponseV -android_app_data_streams ( 24.google.analytics.admin.v1alpha.AndroidAppDataStream -next_page_token ( "© -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àA/ - update_mask ( 2.google.protobuf.FieldMask"Ÿ -%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 ( "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"` -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"µ -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/DataStream2óž -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Î - 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:*¸ -GetWebDataStream7.google.analytics.admin.v1alpha.GetWebDataStreamRequest-.google.analytics.admin.v1alpha.WebDataStream"<‚Óä“/-/v1alpha/{name=properties/*/webDataStreams/*}ÚAname§ -DeleteWebDataStream:.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.google.protobuf.Empty"<‚Óä“/*-/v1alpha/{name=properties/*/webDataStreams/*}ÚAnameö -UpdateWebDataStream:.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest-.google.analytics.admin.v1alpha.WebDataStream"t‚Óä“P2=/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}:web_data_streamÚAweb_data_stream,update_maská -CreateWebDataStream:.google.analytics.admin.v1alpha.CreateWebDataStreamRequest-.google.analytics.admin.v1alpha.WebDataStream"_‚Óä“@"-/v1alpha/{parent=properties/*}/webDataStreams:web_data_streamÚAparent,web_data_streamË -ListWebDataStreams9.google.analytics.admin.v1alpha.ListWebDataStreamsRequest:.google.analytics.admin.v1alpha.ListWebDataStreamsResponse">‚Óä“/-/v1alpha/{parent=properties/*}/webDataStreamsÚAparentÄ -GetIosAppDataStream:.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest0.google.analytics.admin.v1alpha.IosAppDataStream"?‚Óä“20/v1alpha/{name=properties/*/iosAppDataStreams/*}ÚAname° -DeleteIosAppDataStream=.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.google.protobuf.Empty"?‚Óä“2*0/v1alpha/{name=properties/*/iosAppDataStreams/*}ÚAname -UpdateIosAppDataStream=.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest0.google.analytics.admin.v1alpha.IosAppDataStream"ƒ‚Óä“[2D/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}:ios_app_data_streamÚAios_app_data_stream,update_mask× -ListIosAppDataStreams<.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest=.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse"A‚Óä“20/v1alpha/{parent=properties/*}/iosAppDataStreamsÚAparentÔ -GetAndroidAppDataStream>.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest4.google.analytics.admin.v1alpha.AndroidAppDataStream"C‚Óä“64/v1alpha/{name=properties/*/androidAppDataStreams/*}ÚAname¼ -DeleteAndroidAppDataStreamA.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.google.protobuf.Empty"C‚Óä“6*4/v1alpha/{name=properties/*/androidAppDataStreams/*}ÚAname« -UpdateAndroidAppDataStreamA.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest4.google.analytics.admin.v1alpha.AndroidAppDataStream"“‚Óä“g2L/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}:android_app_data_streamÚA#android_app_data_stream,update_maskç -ListAndroidAppDataStreams@.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequestA.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse"E‚Óä“64/v1alpha/{parent=properties/*}/androidAppDataStreamsÚAparentÙ -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"J‚Óä“=;/v1alpha/{name=properties/*/webDataStreams/*/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"€‚Óä“òJ/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}ZOM/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}ZSQ/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}ÚAname´ -ListMeasurementProtocolSecretsE.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestF.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse"‚‚Óä“òJ/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecretsZOM/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecretsZSQ/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecretsÚAparentœ -CreateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"õ‚Óä“É"J/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretZl"M/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretZp"Q/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretÚA"parent,measurement_protocol_secret„ -DeleteMeasurementProtocolSecretF.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.google.protobuf.Empty"€‚Óä“ò*J/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}ZO*M/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}ZS*Q/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}ÚAname÷ -UpdateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"ЂÓä“Ÿ2f/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretZˆ2i/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretZŒ2m/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/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:*ä -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À -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üÊ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.v1alphaBAnalyticsAdminProtoPZCgoogle.golang.org/genproto/googleapis/analytics/admin/v1alpha;adminbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Resources.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Resources.php deleted file mode 100644 index b0eff2263e42a893d10940209dda127b24e0d887..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13385 zcmdU0O>7%Uc3zVDElL#Kw#Tw;&v0maM%LKU4856T>G2GjWJ~HX#b($oX*4UO(;{1P z&r&4QO?sj+lmL6oVfPdyK!Dwx7eSCifShs(_OSQtJ$uL@&@Pa37CGdrs_tf!Y_jRy zY=F#R%66boFFWLZX2)!qw$U{knUjl5_obQX*zIn+-fm`2dZ(wR zovF9aJ66-QH#3=%lBpkLyXfk)dv@K-XU^K~v!=Oaw2bCO*Qz^PM&sOSZN2)) zXm(y2Teis?I-5*1AuZ$FbUH@e%Y7+vFdhezL1vDEU0owR>i8^i0M!yFI)0jOk4UT>8I`!%*v3$J>_KY!u9w#w)9B z=kxtp^@WV<>VZ0aFCPxg!eVxf^UiP3_s}*v9n*HgyRsE{@~P$GEjAiHyxSn;x(^72 z=Y8^bCuH-@m?*r>+i&{J-DJ$&beX$$+mqL^d=_&Ouf5}bVw46gwz?h;ZUa~LmfzrO zce4C@_6Kn?FV^erUaKoyBQw+{R%4mi`eGsR3o#*lnVEmbiHnqrH18nn#P6B)R^(qhzr+A(l*avBznEwFjr^k7vTn(Z{P1)^Obo&W!kwv=Z`Zw*CxjNrpi<@M*-m{@q9fQ!-SYWHMOO_qeer457 zy=lHOo2vw`Q@O`c( zh_k;IkKdn?Lixg#_!)W62Q`##KAmpD3MsKH6O40zUtDJYJx*?jt%lvU8e*qY!Y-tC zVRYwV^t($|PBF<7!!dPuE!}GLxiMm{zf*F8huA#7XPlYbTzwwS!ZHUfnVRQf{?D$& z*CaO?s!$lDP}s21k3vQ*nZIV}&>dZeIRMPd?9byQEw`QjR}e3r^jeLkNtc=9I|qJJ zQxAvOz7pG{zmJ5naRh?r;qY2RPyt%J8in;g;$->IJef?}J0x{(8cxqP&*9F7SR2A= z%G~fRXiC>PcHh3GPdQ!9wH(MjPH3{Gn#oUU(k( z4TJ?;AeZE>LiUoR2G>W(kh>*O6LnRqN#dTa9aSZLzoJ&9qP#6jrS!KDNUj`81wGIz z9Rqf^#7e2A$R%B@RtG-DgQzqkI2W!{6;;@btmk zt_sT}>9C!PS$6j4F|x3a2&-(hz84l4tdV8&+_0Lu(P$vmb^2j}yC2(Ty{p^prs=FE zG70R*-;Z61e;yUP_(QIb#>!hgS0AWOf9g%>b}4)iKGV>~**aMkdkw4WkFyj^LIebx zA+zGU-|&R6R4XQG1<0mfneI$y=uET!8Y4^FZqzgmKV%co`z!PgA~%%(Oczk)8&{%1 zHYQVJK%b}Kka>|F)fpIjj~wUh4`XC`r`bL+nyS?`HRCLd7MPaPvXI^erIqahOhW4iEEZ?Rg zdu7Q@mO8g>eUQS7zU!STbQlD5Oz6N9To-jvg+Id=I4)U!87J47H+pH_^g5lk-SyF?&Uit{k&Up%D3MubEwiCJ1{{vxhc5Pl@Ps@J z?bEs#YR;BkcuXFIH3uOZy?VDVoG$-@aG%^6Xx&CJ(e5{5l>+X&KbmZyVQ9S<;sluo zA4E0#mvNF3d2K=Mou3=_g)r#Xp7rxizNu}zLDD%A{4*Ou_Aj_b3LM#}$TML+2?SMJ zQ9)1DEqS==au4x%GD1T$%(~!k5iG}b-?-`^)jcIELn8^#$%3c0TY386*W!BAzT`<6 z!Ggg_7vT0@KjA=YR!mk+m}F?7Yq+YySA|to@X2BQ^jFl0^gUK0|M%EJe-b0VKN+X- zinQIC4;BQrq7s3vKrS^nHJEA>*E)M5}9|uAmgF@ei}92z@+&@_Mex?^^o^Mnk;yS1uiCeG6(gr*Ra?imD`9K z4%0(xHb0BJutIS%_j^&$afvGL?FA~3{1tiEJ0Eyu zHO#jD^y3c^;k=>+RWJKkrNLD)_dIHh5c{wb)r5<{fSHUB<@uJ_4Id%y9V{&K0j^cS0NX*3WI{_G6fu!diun4c|`7F=Q5hj_SdYy zH&hN~835yBEW3>(5-+%7LQrG9Q8qP%)$jrVf)zb0& zmsjFpB(H~1es2t~2b($BU(JxEVD$EXwmjb@>0o5sgQIg->XYeKibtE9f!KH-GAO;{ zg5s?`-5yiXC$d2VAd!Z#1FN3>rx;lo8i}5F?Mb4#Uz4z+8jiYT`oG|L*AiJ!H5_h< zwGtK-PsROOO{x@+(s8=H+mfWE6Da@8?Ma$cQ`0j-ijWs_S#h6d1@K`{E=y{94t0?w z{4C3=R8%S@H9apR$-MWlKp*zx%D#rSi?rLWvJZ(Q`!PudCM4V?s}Nq3ixKq8YgghQ zMxCMrVH3ujQPdgZxC&18UlQbIXlx(GJCoetd&yuj;Z}imqG%F2&ZeJLlzO=F3ZEh1 zy3so*+?cp^KoeOu7*dv&2?M96SyuOg1%wOPAH~SE(f(QTb`9%S(Wp_E_G=>hF~|h0 zt9Gd9drC#yRlxFB3R!yQUpN&XKOlUwE%)=ozTCE7$N^l6Q7B@53x* z#J0SR_paEvsoZ)fEaTid1;d}Qw+C$eWCkb6!#CF6CHLe?X&vGzjJR2T|~y)9S7N>PHX0LNWPENi<( zu_keQ(WK&TMJX#gN9kE=OIl4lkjgL^7=fbg!h_BWYve7lrtv`luvF7Txk9Zry?~o` zLP3IBM@)rnS)=N}hE~aqf}*_Ooysygi5hG@O$33YwiN}()lj)qlPfRMNjlh$xCi4~ zqU*J*6biEBc9mr6Bht%s(RX3mtltiNf>cST=rA(Xs3K|XgC><>;Cty6s#sY(9vhhvZMxX84CBvZER}?a#7OD*z3we9Kq)uMcHAxi{&Ft zE~>au;5$*kHS!rHq;!1abFzrKuUpop3trTeTG%ZFZ)1(I$sDPgw8v?t?pNv5(us{K zA%Pk)y`fNKMjdje0rV^aJ`EQfVic&0EM zvLorcvI@12^qQo?KLDffA;n@**=Jz_z^>L1NWec}%#a%viAgssn0E=gVKEDbyu2;f zq=Kkop(x4csB{nflFDDsQ|azYRo8rEKgae;Bztw3HD@$k@Qk%mFRofGM4JBcRk^VYC}OiL$5r;Sy{N8o6)z76x0x;OsU@-vRrBFAERJyCqqzmc=9eKrTrN zD_M#qXro~lt?>z@giW#$*-WPxE2>yduWUF(7z~YBbpC*3hGC%QG{kQ3a;TM55esET zo>3s77XKLE_(2TB560MTI4`_MvO^L9xC+-cH1eo^UOV?+#@Ti9V2m{U%?G>;lT5YU zcunpFGsTfaRrruRrnK>qgLj92f{&=|(0A|`!zyCc-N8lhh?zcY3f`8=kxE`K*!oYg z5eG+Sc`Dsb21jHLZ3u@)eSz=2-iu@B4p3@tFSwO5hJxXv%8U RL;hHWwd8+Na!D=;`5$nrsL=ob 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 cf154634933..00000000000 --- 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 1730c78d089..00000000000 --- 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 \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 \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/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php deleted file mode 100644 index 49253924461..00000000000 --- 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 f2bc347c5a6..00000000000 --- 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/AnalyticsAdminServiceGrpcClient.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AnalyticsAdminServiceGrpcClient.php deleted file mode 100644 index de88f84a8d6..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AnalyticsAdminServiceGrpcClient.php +++ /dev/null @@ -1,1371 +0,0 @@ -_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount', - $argument, - ['\Google\Analytics\Admin\V1alpha\Account', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\ListAccountsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAccounts(\Google\Analytics\Admin\V1alpha\ListAccountsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListAccountsResponse', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\DeleteAccountRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAccount(\Google\Analytics\Admin\V1alpha\DeleteAccountRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates an account. - * @param \Google\Analytics\Admin\V1alpha\UpdateAccountRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAccount(\Google\Analytics\Admin\V1alpha\UpdateAccountRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount', - $argument, - ['\Google\Analytics\Admin\V1alpha\Account', 'decode'], - $metadata, $options); - } - - /** - * Requests a ticket for creating an account. - * @param \Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ProvisionAccountTicket(\Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket', - $argument, - ['\Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse', 'decode'], - $metadata, $options); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * @param \Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAccountSummaries(\Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListAccountSummariesResponse', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single "GA4" Property. - * @param \Google\Analytics\Admin\V1alpha\GetPropertyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetProperty(\Google\Analytics\Admin\V1alpha\GetPropertyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', - $argument, - ['\Google\Analytics\Admin\V1alpha\Property', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\ListPropertiesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListProperties(\Google\Analytics\Admin\V1alpha\ListPropertiesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListPropertiesResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * @param \Google\Analytics\Admin\V1alpha\CreatePropertyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateProperty(\Google\Analytics\Admin\V1alpha\CreatePropertyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', - $argument, - ['\Google\Analytics\Admin\V1alpha\Property', 'decode'], - $metadata, $options); - } - - /** - * 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 an GA4 Property. - * @param \Google\Analytics\Admin\V1alpha\DeletePropertyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteProperty(\Google\Analytics\Admin\V1alpha\DeletePropertyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty', - $argument, - ['\Google\Analytics\Admin\V1alpha\Property', 'decode'], - $metadata, $options); - } - - /** - * Updates a property. - * @param \Google\Analytics\Admin\V1alpha\UpdatePropertyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateProperty(\Google\Analytics\Admin\V1alpha\UpdatePropertyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty', - $argument, - ['\Google\Analytics\Admin\V1alpha\Property', 'decode'], - $metadata, $options); - } - - /** - * Gets information about a user's link to an account or property. - * @param \Google\Analytics\Admin\V1alpha\GetUserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetUserLink(\Google\Analytics\Admin\V1alpha\GetUserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\UserLink', 'decode'], - $metadata, $options); - } - - /** - * Gets information about multiple users' links to an account or property. - * @param \Google\Analytics\Admin\V1alpha\BatchGetUserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function BatchGetUserLinks(\Google\Analytics\Admin\V1alpha\BatchGetUserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetUserLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * Lists all user links on an account or property. - * @param \Google\Analytics\Admin\V1alpha\ListUserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListUserLinks(\Google\Analytics\Admin\V1alpha\ListUserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListUserLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListUserLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\AuditUserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function AuditUserLinks(\Google\Analytics\Admin\V1alpha\AuditUserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/AuditUserLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\AuditUserLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\CreateUserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateUserLink(\Google\Analytics\Admin\V1alpha\CreateUserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\UserLink', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\BatchCreateUserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function BatchCreateUserLinks(\Google\Analytics\Admin\V1alpha\BatchCreateUserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateUserLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * Updates a user link on an account or property. - * @param \Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateUserLink(\Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateUserLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\UserLink', 'decode'], - $metadata, $options); - } - - /** - * Updates information about multiple users' links to an account or property. - * @param \Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function BatchUpdateUserLinks(\Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateUserLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * Deletes a user link on an account or property. - * @param \Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteUserLink(\Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Deletes information about multiple users' links to an account or property. - * @param \Google\Analytics\Admin\V1alpha\BatchDeleteUserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function BatchDeleteUserLinks(\Google\Analytics\Admin\V1alpha\BatchDeleteUserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single WebDataStream - * @param \Google\Analytics\Admin\V1alpha\GetWebDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetWebDataStream(\Google\Analytics\Admin\V1alpha\GetWebDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetWebDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\WebDataStream', 'decode'], - $metadata, $options); - } - - /** - * Deletes a web stream on a property. - * @param \Google\Analytics\Admin\V1alpha\DeleteWebDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteWebDataStream(\Google\Analytics\Admin\V1alpha\DeleteWebDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteWebDataStream', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates a web stream on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateWebDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateWebDataStream(\Google\Analytics\Admin\V1alpha\UpdateWebDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateWebDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\WebDataStream', 'decode'], - $metadata, $options); - } - - /** - * Creates a web stream with the specified location and attributes. - * @param \Google\Analytics\Admin\V1alpha\CreateWebDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateWebDataStream(\Google\Analytics\Admin\V1alpha\CreateWebDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateWebDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\WebDataStream', 'decode'], - $metadata, $options); - } - - /** - * Returns child web data streams under the specified parent property. - * - * Web data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant web data streams are found. - * @param \Google\Analytics\Admin\V1alpha\ListWebDataStreamsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListWebDataStreams(\Google\Analytics\Admin\V1alpha\ListWebDataStreamsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListWebDataStreams', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListWebDataStreamsResponse', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single IosAppDataStream - * @param \Google\Analytics\Admin\V1alpha\GetIosAppDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetIosAppDataStream(\Google\Analytics\Admin\V1alpha\GetIosAppDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetIosAppDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\IosAppDataStream', 'decode'], - $metadata, $options); - } - - /** - * Deletes an iOS app stream on a property. - * @param \Google\Analytics\Admin\V1alpha\DeleteIosAppDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteIosAppDataStream(\Google\Analytics\Admin\V1alpha\DeleteIosAppDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteIosAppDataStream', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates an iOS app stream on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateIosAppDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateIosAppDataStream(\Google\Analytics\Admin\V1alpha\UpdateIosAppDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateIosAppDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\IosAppDataStream', 'decode'], - $metadata, $options); - } - - /** - * Returns child iOS app data streams under the specified parent property. - * - * iOS app data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant iOS app data streams are found. - * @param \Google\Analytics\Admin\V1alpha\ListIosAppDataStreamsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListIosAppDataStreams(\Google\Analytics\Admin\V1alpha\ListIosAppDataStreamsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListIosAppDataStreams', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListIosAppDataStreamsResponse', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single AndroidAppDataStream - * @param \Google\Analytics\Admin\V1alpha\GetAndroidAppDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAndroidAppDataStream(\Google\Analytics\Admin\V1alpha\GetAndroidAppDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAndroidAppDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\AndroidAppDataStream', 'decode'], - $metadata, $options); - } - - /** - * Deletes an android app stream on a property. - * @param \Google\Analytics\Admin\V1alpha\DeleteAndroidAppDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAndroidAppDataStream(\Google\Analytics\Admin\V1alpha\DeleteAndroidAppDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates an android app stream on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateAndroidAppDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAndroidAppDataStream(\Google\Analytics\Admin\V1alpha\UpdateAndroidAppDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAndroidAppDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\AndroidAppDataStream', 'decode'], - $metadata, $options); - } - - /** - * Returns child android app streams under the specified parent property. - * - * Android app streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant android app streams are found. - * @param \Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAndroidAppDataStreams(\Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAndroidAppDataStreams', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * @param \Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateFirebaseLink(\Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\FirebaseLink', 'decode'], - $metadata, $options); - } - - /** - * Deletes a FirebaseLink on a property - * @param \Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteFirebaseLink(\Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * @param \Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListFirebaseLinks(\Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * Returns the Site Tag for the specified web stream. - * Site Tags are immutable singletons. - * @param \Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetGlobalSiteTag(\Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag', - $argument, - ['\Google\Analytics\Admin\V1alpha\GlobalSiteTag', 'decode'], - $metadata, $options); - } - - /** - * Creates a GoogleAdsLink. - * @param \Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateGoogleAdsLink(\Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\GoogleAdsLink', 'decode'], - $metadata, $options); - } - - /** - * Updates a GoogleAdsLink on a property - * @param \Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateGoogleAdsLink(\Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\GoogleAdsLink', 'decode'], - $metadata, $options); - } - - /** - * Deletes a GoogleAdsLink on a property - * @param \Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteGoogleAdsLink(\Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Lists GoogleAdsLinks on a property. - * @param \Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListGoogleAdsLinks(\Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * @param \Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDataSharingSettings(\Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\DataSharingSettings', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * @param \Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetMeasurementProtocolSecret(\Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', - $argument, - ['\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret', 'decode'], - $metadata, $options); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * @param \Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListMeasurementProtocolSecrets(\Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a measurement protocol secret. - * @param \Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateMeasurementProtocolSecret(\Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', - $argument, - ['\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret', 'decode'], - $metadata, $options); - } - - /** - * Deletes target MeasurementProtocolSecret. - * @param \Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteMeasurementProtocolSecret(\Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates a measurement protocol secret. - * @param \Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateMeasurementProtocolSecret(\Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret', - $argument, - ['\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret', 'decode'], - $metadata, $options); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or via this API) before MeasurementProtocolSecret resources may be created. - * @param \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function AcknowledgeUserDataCollection(\Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', - $argument, - ['\Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse', 'decode'], - $metadata, $options); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * @param \Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SearchChangeHistoryEvents(\Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents', - $argument, - ['\Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsResponse', 'decode'], - $metadata, $options); - } - - /** - * Lookup for Google Signals settings for a property. - * @param \Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetGoogleSignalsSettings(\Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\GoogleSignalsSettings', 'decode'], - $metadata, $options); - } - - /** - * Updates Google Signals settings for a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateGoogleSignalsSettings(\Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\GoogleSignalsSettings', 'decode'], - $metadata, $options); - } - - /** - * Creates a conversion event with the specified attributes. - * @param \Google\Analytics\Admin\V1alpha\CreateConversionEventRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateConversionEvent(\Google\Analytics\Admin\V1alpha\CreateConversionEventRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent', - $argument, - ['\Google\Analytics\Admin\V1alpha\ConversionEvent', 'decode'], - $metadata, $options); - } - - /** - * Retrieve a single conversion event. - * @param \Google\Analytics\Admin\V1alpha\GetConversionEventRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetConversionEvent(\Google\Analytics\Admin\V1alpha\GetConversionEventRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent', - $argument, - ['\Google\Analytics\Admin\V1alpha\ConversionEvent', 'decode'], - $metadata, $options); - } - - /** - * Deletes a conversion event in a property. - * @param \Google\Analytics\Admin\V1alpha\DeleteConversionEventRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteConversionEvent(\Google\Analytics\Admin\V1alpha\DeleteConversionEventRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * @param \Google\Analytics\Admin\V1alpha\ListConversionEventsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListConversionEvents(\Google\Analytics\Admin\V1alpha\ListConversionEventsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListConversionEventsResponse', 'decode'], - $metadata, $options); - } - - /** - * Look up a single DisplayVideo360AdvertiserLink - * @param \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'], - $metadata, $options); - } - - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * @param \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListDisplayVideo360AdvertiserLinks(\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'], - $metadata, $options); - } - - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * @param \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', - $argument, - ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * @param \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', - $argument, - ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'], - $metadata, $options); - } - - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * @param \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListDisplayVideo360AdvertiserLinkProposals(\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse', 'decode'], - $metadata, $options); - } - - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * @param \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', - $argument, - ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'], - $metadata, $options); - } - - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - * This can only be used on cancelled proposals. - * @param \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Approves a DisplayVideo360AdvertiserLinkProposal. - * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - * DisplayVideo360AdvertiserLink will be created. - * @param \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ApproveDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', - $argument, - ['\Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CancelDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', - $argument, - ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'], - $metadata, $options); - } - - /** - * Creates a CustomDimension. - * @param \Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateCustomDimension(\Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension', - $argument, - ['\Google\Analytics\Admin\V1alpha\CustomDimension', 'decode'], - $metadata, $options); - } - - /** - * Updates a CustomDimension on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateCustomDimension(\Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension', - $argument, - ['\Google\Analytics\Admin\V1alpha\CustomDimension', 'decode'], - $metadata, $options); - } - - /** - * Lists CustomDimensions on a property. - * @param \Google\Analytics\Admin\V1alpha\ListCustomDimensionsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListCustomDimensions(\Google\Analytics\Admin\V1alpha\ListCustomDimensionsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListCustomDimensionsResponse', 'decode'], - $metadata, $options); - } - - /** - * Archives a CustomDimension on a property. - * @param \Google\Analytics\Admin\V1alpha\ArchiveCustomDimensionRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ArchiveCustomDimension(\Google\Analytics\Admin\V1alpha\ArchiveCustomDimensionRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single CustomDimension. - * @param \Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetCustomDimension(\Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension', - $argument, - ['\Google\Analytics\Admin\V1alpha\CustomDimension', 'decode'], - $metadata, $options); - } - - /** - * Creates a CustomMetric. - * @param \Google\Analytics\Admin\V1alpha\CreateCustomMetricRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateCustomMetric(\Google\Analytics\Admin\V1alpha\CreateCustomMetricRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric', - $argument, - ['\Google\Analytics\Admin\V1alpha\CustomMetric', 'decode'], - $metadata, $options); - } - - /** - * Updates a CustomMetric on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateCustomMetric(\Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric', - $argument, - ['\Google\Analytics\Admin\V1alpha\CustomMetric', 'decode'], - $metadata, $options); - } - - /** - * Lists CustomMetrics on a property. - * @param \Google\Analytics\Admin\V1alpha\ListCustomMetricsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListCustomMetrics(\Google\Analytics\Admin\V1alpha\ListCustomMetricsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListCustomMetricsResponse', 'decode'], - $metadata, $options); - } - - /** - * Archives a CustomMetric on a property. - * @param \Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ArchiveCustomMetric(\Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single CustomMetric. - * @param \Google\Analytics\Admin\V1alpha\GetCustomMetricRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetCustomMetric(\Google\Analytics\Admin\V1alpha\GetCustomMetricRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric', - $argument, - ['\Google\Analytics\Admin\V1alpha\CustomMetric', 'decode'], - $metadata, $options); - } - - /** - * Returns the singleton data retention settings for this property. - * @param \Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDataRetentionSettings(\Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\DataRetentionSettings', 'decode'], - $metadata, $options); - } - - /** - * Updates the singleton data retention settings for this property. - * @param \Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateDataRetentionSettings(\Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', - $argument, - ['\Google\Analytics\Admin\V1alpha\DataRetentionSettings', 'decode'], - $metadata, $options); - } - - /** - * Creates a DataStream. - * @param \Google\Analytics\Admin\V1alpha\CreateDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateDataStream(\Google\Analytics\Admin\V1alpha\CreateDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'], - $metadata, $options); - } - - /** - * Deletes a DataStream on a property. - * @param \Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteDataStream(\Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Updates a DataStream on a property. - * @param \Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateDataStream(\Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'], - $metadata, $options); - } - - /** - * Lists DataStreams on a property. - * @param \Google\Analytics\Admin\V1alpha\ListDataStreamsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListDataStreams(\Google\Analytics\Admin\V1alpha\ListDataStreamsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', - $argument, - ['\Google\Analytics\Admin\V1alpha\ListDataStreamsResponse', 'decode'], - $metadata, $options); - } - - /** - * Lookup for a single DataStream. - * @param \Google\Analytics\Admin\V1alpha\GetDataStreamRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDataStream(\Google\Analytics\Admin\V1alpha\GetDataStreamRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', - $argument, - ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'], - $metadata, $options); - } - -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AndroidAppDataStream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AndroidAppDataStream.php deleted file mode 100644 index ec348f615d0..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AndroidAppDataStream.php +++ /dev/null @@ -1,277 +0,0 @@ -google.analytics.admin.v1alpha.AndroidAppDataStream - */ -class AndroidAppDataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/1000/androidAppDataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * 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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Output only. Time when this stream 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 stream 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. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $package_name = ''; - /** - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 6; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/1000/androidAppDataStreams/2000" - * @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 \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. - * @type string $package_name - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * @type string $display_name - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id} - * Example: "properties/1000/androidAppDataStreams/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; - } - - /** - * 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 = 2 [(.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 = 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; - } - - /** - * Output only. Time when this stream 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 stream 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 stream 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 stream 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. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 5 [(.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 = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - - /** - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 6; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 6; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_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 900c05da853..00000000000 --- 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 d304ca48819..00000000000 --- 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/AuditUserLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLink.php deleted file mode 100644 index 24b42e9aa09..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLink.php +++ /dev/null @@ -1,189 +0,0 @@ -google.analytics.admin.v1alpha.AuditUserLink - */ -class AuditUserLink extends \Google\Protobuf\Internal\Message -{ - /** - * Example format: properties/1234/userLinks/5678 - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Email address of the linked user - * - * Generated from protobuf field string email_address = 2; - */ - protected $email_address = ''; - /** - * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/viewer - * Excludes roles that are inherited from an account (if this is for a - * property), group, or organization admin role. - * - * Generated from protobuf field repeated string direct_roles = 3; - */ - private $direct_roles; - /** - * Union of all permissions a user has at this account or property (includes - * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/viewer - * - * Generated from protobuf field repeated string effective_roles = 4; - */ - private $effective_roles; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Example format: properties/1234/userLinks/5678 - * @type string $email_address - * Email address of the linked user - * @type string[]|\Google\Protobuf\Internal\RepeatedField $direct_roles - * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/viewer - * Excludes roles that are inherited from an account (if this is for a - * property), group, or organization admin role. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $effective_roles - * Union of all permissions a user has at this account or property (includes - * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/viewer - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Example format: properties/1234/userLinks/5678 - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Example format: properties/1234/userLinks/5678 - * - * 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; - } - - /** - * Email address of the linked user - * - * Generated from protobuf field string email_address = 2; - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Email address of the linked user - * - * Generated from protobuf field string email_address = 2; - * @param string $var - * @return $this - */ - public function setEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->email_address = $var; - - return $this; - } - - /** - * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/viewer - * Excludes roles that are inherited from an account (if this is for a - * property), group, or organization admin role. - * - * Generated from protobuf field repeated string direct_roles = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDirectRoles() - { - return $this->direct_roles; - } - - /** - * Roles directly assigned to this user for this entity. - * Format: predefinedRoles/viewer - * Excludes roles that are inherited from an account (if this is for a - * property), group, or organization admin role. - * - * Generated from protobuf field repeated string direct_roles = 3; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDirectRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->direct_roles = $arr; - - return $this; - } - - /** - * Union of all permissions a user has at this account or property (includes - * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/viewer - * - * Generated from protobuf field repeated string effective_roles = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveRoles() - { - return $this->effective_roles; - } - - /** - * Union of all permissions a user has at this account or property (includes - * direct permissions, group-inherited permissions, etc.). - * Format: predefinedRoles/viewer - * - * Generated from protobuf field repeated string effective_roles = 4; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->effective_roles = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksRequest.php deleted file mode 100644 index ad0c4ffbb2c..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.AuditUserLinksRequest - */ -class AuditUserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: accounts/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` 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: accounts/1234 - * @type int $page_size - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. - * @type string $page_token - * A page token, received from a previous `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` 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: accounts/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: accounts/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 user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. - * - * 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 `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` 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 `AuditUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` 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/AuditUserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksResponse.php deleted file mode 100644 index fd4f0b33076..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AuditUserLinksResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.AuditUserLinksResponse - */ -class AuditUserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of AuditUserLinks. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - private $user_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 \Google\Analytics\Admin\V1alpha\AuditUserLink[]|\Google\Protobuf\Internal\RepeatedField $user_links - * List of AuditUserLinks. 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 AuditUserLinks. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserLinks() - { - return $this->user_links; - } - - /** - * List of AuditUserLinks. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - * @param \Google\Analytics\Admin\V1alpha\AuditUserLink[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AuditUserLink::class); - $this->user_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/BatchCreateUserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksRequest.php deleted file mode 100644 index c7924ca7c7f..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - */ -class BatchCreateUserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * 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 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $notify_new_users = false; - /** - * Required. The requests specifying the user links to create. - * A maximum of 1000 user links can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest 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 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 - * @type bool $notify_new_users - * 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 \Google\Analytics\Admin\V1alpha\CreateUserLinkRequest[]|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the user links to create. - * A maximum of 1000 user links 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 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 - * - * 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 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 - * - * 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. 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. - * - * Generated from protobuf field bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getNotifyNewUsers() - { - return $this->notify_new_users; - } - - /** - * 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. - * - * Generated from protobuf field bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setNotifyNewUsers($var) - { - GPBUtil::checkBool($var); - $this->notify_new_users = $var; - - return $this; - } - - /** - * Required. The requests specifying the user links to create. - * A maximum of 1000 user links can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the user links to create. - * A maximum of 1000 user links can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\CreateUserLinkRequest[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CreateUserLinkRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksResponse.php deleted file mode 100644 index 385f19606c6..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateUserLinksResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - */ -class BatchCreateUserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The user links created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - private $user_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $user_links - * The user links created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The user links created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserLinks() - { - return $this->user_links; - } - - /** - * The user links created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @param \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UserLink::class); - $this->user_links = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteUserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteUserLinksRequest.php deleted file mode 100644 index 03fb0220233..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteUserLinksRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - */ -class BatchDeleteUserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * 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 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 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 - * @type \Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest[]|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links 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 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 - * - * 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 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 - * - * 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 user links to update. - * A maximum of 1000 user links can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksRequest.php deleted file mode 100644 index 67f6d84ca7b..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.BatchGetUserLinksRequest - */ -class BatchGetUserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * 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 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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} - * - * 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 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 - * @type string[]|\Google\Protobuf\Internal\RepeatedField $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} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * 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 - * - * 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 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 - * - * 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 user links to retrieve. - * A maximum of 1000 user links can be retrieved in a batch. - * Format: accounts/{accountId}/userLinks/{userLinkId} - * - * 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 user links to retrieve. - * A maximum of 1000 user links can be retrieved in a batch. - * Format: accounts/{accountId}/userLinks/{userLinkId} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[]|\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/BatchGetUserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksResponse.php deleted file mode 100644 index 89b27a66b2f..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetUserLinksResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchGetUserLinksResponse - */ -class BatchGetUserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested user links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - private $user_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $user_links - * The requested user links. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested user links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserLinks() - { - return $this->user_links; - } - - /** - * The requested user links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @param \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UserLink::class); - $this->user_links = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksRequest.php deleted file mode 100644 index dc4dc6fd087..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - */ -class BatchUpdateUserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * 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 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 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 - * @type \Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest[]|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links 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 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 - * - * 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 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 - * - * 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 user links to update. - * A maximum of 1000 user links can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksResponse.php deleted file mode 100644 index df07ed724ba..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateUserLinksResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - */ -class BatchUpdateUserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The user links updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - private $user_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $user_links - * The user links updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The user links updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserLinks() - { - return $this->user_links; - } - - /** - * The user links updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @param \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UserLink::class); - $this->user_links = $arr; - - 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 a02c687dc6f..00000000000 --- 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 7ed044c8018..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php +++ /dev/null @@ -1,547 +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\WebDataStream $web_data_stream - * A snapshot of a WebDataStream resource in change history. - * @type \Google\Analytics\Admin\V1alpha\AndroidAppDataStream $android_app_data_stream - * A snapshot of an AndroidAppDataStream resource in change history. - * @type \Google\Analytics\Admin\V1alpha\IosAppDataStream $ios_app_data_stream - * A snapshot of an IosAppDataStream 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. - * } - */ - 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 WebDataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * @return \Google\Analytics\Admin\V1alpha\WebDataStream|null - */ - public function getWebDataStream() - { - return $this->readOneof(3); - } - - public function hasWebDataStream() - { - return $this->hasOneof(3); - } - - /** - * A snapshot of a WebDataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * @param \Google\Analytics\Admin\V1alpha\WebDataStream $var - * @return $this - */ - public function setWebDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\WebDataStream::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A snapshot of an AndroidAppDataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * @return \Google\Analytics\Admin\V1alpha\AndroidAppDataStream|null - */ - public function getAndroidAppDataStream() - { - return $this->readOneof(4); - } - - public function hasAndroidAppDataStream() - { - return $this->hasOneof(4); - } - - /** - * A snapshot of an AndroidAppDataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * @param \Google\Analytics\Admin\V1alpha\AndroidAppDataStream $var - * @return $this - */ - public function setAndroidAppDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AndroidAppDataStream::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A snapshot of an IosAppDataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - * @return \Google\Analytics\Admin\V1alpha\IosAppDataStream|null - */ - public function getIosAppDataStream() - { - return $this->readOneof(5); - } - - public function hasIosAppDataStream() - { - return $this->hasOneof(5); - } - - /** - * A snapshot of an IosAppDataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - * @param \Google\Analytics\Admin\V1alpha\IosAppDataStream $var - * @return $this - */ - public function setIosAppDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\IosAppDataStream::class); - $this->writeOneof(5, $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; - } - - /** - * @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/ChangeHistoryChange_ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange_ChangeHistoryResource.php deleted file mode 100644 index 336a0d1174d..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange_ChangeHistoryResource.php +++ /dev/null @@ -1,16 +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 \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 \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 354751036f7..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php +++ /dev/null @@ -1,152 +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; - /** - * WebDataStream resource - * - * Generated from protobuf enum WEB_DATA_STREAM = 3; - */ - const WEB_DATA_STREAM = 3; - /** - * AndroidAppDataStream resource - * - * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 4; - */ - const ANDROID_APP_DATA_STREAM = 4; - /** - * IosAppDataStream resource - * - * Generated from protobuf enum IOS_APP_DATA_STREAM = 5; - */ - const IOS_APP_DATA_STREAM = 5; - /** - * 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; - - private static $valueToName = [ - self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', - self::ACCOUNT => 'ACCOUNT', - self::PROPERTY => 'PROPERTY', - 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', - 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', - ]; - - 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/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php deleted file mode 100644 index c59d5431788..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php +++ /dev/null @@ -1,241 +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 via 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; - - /** - * 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 via 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. - * } - */ - 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 via 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 via 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; - } - -} - 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 d2a9a6c9e38..00000000000 --- 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 550d999af82..00000000000 --- 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 9832c3f40ca..00000000000 --- 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/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php deleted file mode 100644 index f92b7f8b56b..00000000000 --- 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 08edb14ce2b..00000000000 --- 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 c39c9737286..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest - */ -class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this secret will be created. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * - * 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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * @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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * - * 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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * - * 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 adea21ee71c..00000000000 --- 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/CreateUserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateUserLinkRequest.php deleted file mode 100644 index a56954087cf..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateUserLinkRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.analytics.admin.v1alpha.CreateUserLinkRequest - */ -class CreateUserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: accounts/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. If set, then email the new user notifying them that they've been granted - * permissions to the resource. - * - * Generated from protobuf field bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $notify_new_user = false; - /** - * Required. The user link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: accounts/1234 - * @type bool $notify_new_user - * Optional. If set, then email the new user notifying them that they've been granted - * permissions to the resource. - * @type \Google\Analytics\Admin\V1alpha\UserLink $user_link - * Required. The user link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: accounts/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: accounts/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. If set, then email the new user notifying them that they've been granted - * permissions to the resource. - * - * Generated from protobuf field bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getNotifyNewUser() - { - return $this->notify_new_user; - } - - /** - * Optional. If set, then email the new user notifying them that they've been granted - * permissions to the resource. - * - * Generated from protobuf field bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setNotifyNewUser($var) - { - GPBUtil::checkBool($var); - $this->notify_new_user = $var; - - return $this; - } - - /** - * Required. The user link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\UserLink|null - */ - public function getUserLink() - { - return $this->user_link; - } - - public function hasUserLink() - { - return isset($this->user_link); - } - - public function clearUserLink() - { - unset($this->user_link); - } - - /** - * Required. The user link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\UserLink $var - * @return $this - */ - public function setUserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\UserLink::class); - $this->user_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateWebDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateWebDataStreamRequest.php deleted file mode 100644 index 9ec38794616..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateWebDataStreamRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateWebDataStreamRequest - */ -class CreateWebDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The web stream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $web_data_stream = null; - /** - * Required. The parent resource where this web data stream 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\WebDataStream $web_data_stream - * Required. The web stream to create. - * @type string $parent - * Required. The parent resource where this web data stream will be created. - * Format: properties/123 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The web stream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\WebDataStream|null - */ - public function getWebDataStream() - { - return $this->web_data_stream; - } - - public function hasWebDataStream() - { - return isset($this->web_data_stream); - } - - public function clearWebDataStream() - { - unset($this->web_data_stream); - } - - /** - * Required. The web stream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\WebDataStream $var - * @return $this - */ - public function setWebDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\WebDataStream::class); - $this->web_data_stream = $var; - - return $this; - } - - /** - * Required. The parent resource where this web data stream 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 parent resource where this web data stream 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/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php deleted file mode 100644 index 7962338f7b6..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php +++ /dev/null @@ -1,289 +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. - * 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. - * 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. - * 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. - * 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 776fef16c6a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php +++ /dev/null @@ -1,64 +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; - - private static $valueToName = [ - self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - self::USER => 'USER', - ]; - - 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/CustomDimension_DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension_DimensionScope.php deleted file mode 100644 index d310e7da662..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension_DimensionScope.php +++ /dev/null @@ -1,16 +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; - - /** - * 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. - * } - */ - 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; - } - -} - 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 5d27e4dc0f1..00000000000 --- 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 362df05131a..00000000000 --- 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_MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric_MeasurementUnit.php deleted file mode 100644 index b8200fcc34d..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric_MeasurementUnit.php +++ /dev/null @@ -1,16 +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/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php deleted file mode 100644 index 76993f0074b..00000000000 --- 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/DeleteAndroidAppDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAndroidAppDataStreamRequest.php deleted file mode 100644 index a491b26cd99..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAndroidAppDataStreamRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - */ -class DeleteAndroidAppDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/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 android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/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 android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/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/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php deleted file mode 100644 index fa7d5f9222c..00000000000 --- 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/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php deleted file mode 100644 index 2feb69d3bbc..00000000000 --- 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 b370776561f..00000000000 --- 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/DeleteIosAppDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteIosAppDataStreamRequest.php deleted file mode 100644 index b78f01aca02..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteIosAppDataStreamRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest - */ -class DeleteIosAppDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/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 iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/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 iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/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/DeleteMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php deleted file mode 100644 index c8a2e5b02f6..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,83 +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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * - * 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * } - */ - 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * - * 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * - * 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 2c194f05a43..00000000000 --- 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/DeleteUserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteUserLinkRequest.php deleted file mode 100644 index ff50ec06f16..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteUserLinkRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.DeleteUserLinkRequest - */ -class DeleteUserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/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/DeleteWebDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteWebDataStreamRequest.php deleted file mode 100644 index 0f66197fca5..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteWebDataStreamRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.DeleteWebDataStreamRequest - */ -class DeleteWebDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/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 web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/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 web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/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/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php deleted file mode 100644 index 20794746f49..00000000000 --- 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/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php deleted file mode 100644 index 9b4cdaa0305..00000000000 --- 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/GetAndroidAppDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAndroidAppDataStreamRequest.php deleted file mode 100644 index e8b06f4b1f8..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAndroidAppDataStreamRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - */ -class GetAndroidAppDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/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 android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/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 android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/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/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php deleted file mode 100644 index 741ac4d9410..00000000000 --- 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 2d21779d150..00000000000 --- 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 e67f592d606..00000000000 --- 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/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php deleted file mode 100644 index 31aeb5cd19d..00000000000 --- 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/GetGlobalSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php deleted file mode 100644 index c9ac04f6204..00000000000 --- 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}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/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 18c6cdd29b2..00000000000 --- 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/GetIosAppDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetIosAppDataStreamRequest.php deleted file mode 100644 index 4764607fc06..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetIosAppDataStreamRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetIosAppDataStreamRequest - */ -class GetIosAppDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/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 iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/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 iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/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/GetMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php deleted file mode 100644 index 1841cdadba3..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,83 +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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * - * 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * } - */ - 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * - * 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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * - * 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 92fab15e70b..00000000000 --- 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/GetUserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetUserLinkRequest.php deleted file mode 100644 index 55266e2e8bd..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetUserLinkRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.GetUserLinkRequest - */ -class GetUserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/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/GetWebDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetWebDataStreamRequest.php deleted file mode 100644 index 13f43703a0d..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetWebDataStreamRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.GetWebDataStreamRequest - */ -class GetWebDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/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 web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/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 web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/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 deleted file mode 100644 index aca9584f353..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php +++ /dev/null @@ -1,110 +0,0 @@ -google.analytics.admin.v1alpha.GlobalSiteTag - */ -class GlobalSiteTag extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{propertyId}/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/{propertyId}/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/{propertyId}/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/{propertyId}/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 644bf7de169..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php +++ /dev/null @@ -1,354 +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 0b0b307b0fa..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php +++ /dev/null @@ -1,64 +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 24556ce9639..00000000000 --- 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 dfd2291034b..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php +++ /dev/null @@ -1,63 +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/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php deleted file mode 100644 index fd5a4490489..00000000000 --- 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/IosAppDataStream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IosAppDataStream.php deleted file mode 100644 index f2cb5ec9f1a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IosAppDataStream.php +++ /dev/null @@ -1,277 +0,0 @@ -google.analytics.admin.v1alpha.IosAppDataStream - */ -class IosAppDataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/1000/iosAppDataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * 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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Output only. Time when this stream 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 stream 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; - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $bundle_id = ''; - /** - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 6; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/1000/iosAppDataStreams/2000" - * @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 \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. - * @type string $bundle_id - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * @type string $display_name - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id} - * Example: "properties/1000/iosAppDataStreams/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; - } - - /** - * 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 = 2 [(.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 = 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; - } - - /** - * Output only. Time when this stream 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 stream 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 stream 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 stream 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; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 5 [(.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 = 5 [(.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; - } - - /** - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 6; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 6; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $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 b58e30527c6..00000000000 --- 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 a64dd1a466f..00000000000 --- 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 \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 \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 83b851ab553..00000000000 --- 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 1b6d7e6e084..00000000000 --- 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 \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 \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/ListAndroidAppDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAndroidAppDataStreamsRequest.php deleted file mode 100644 index b3857e6083a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAndroidAppDataStreamsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - */ -class ListAndroidAppDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "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 call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` 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 parent property. - * For example, to limit results to app streams under the property with Id - * 123: "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 call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` 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 parent property. - * For example, to limit results to app streams under the property with Id - * 123: "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 name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "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 call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` 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 call. Provide this to - * retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAndroidAppDataStreams` 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/ListAndroidAppDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAndroidAppDataStreamsResponse.php deleted file mode 100644 index 9c5d624270d..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAndroidAppDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - */ -class ListAndroidAppDataStreamsResponse 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.AndroidAppDataStream android_app_data_streams = 1; - */ - private $android_app_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 \Google\Analytics\Admin\V1alpha\AndroidAppDataStream[]|\Google\Protobuf\Internal\RepeatedField $android_app_data_streams - * 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.AndroidAppDataStream android_app_data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAndroidAppDataStreams() - { - return $this->android_app_data_streams; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * @param \Google\Analytics\Admin\V1alpha\AndroidAppDataStream[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAndroidAppDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AndroidAppDataStream::class); - $this->android_app_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/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php deleted file mode 100644 index 7660700c06d..00000000000 --- 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 e61cb0771fe..00000000000 --- 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 \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 \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 141e6b2d43a..00000000000 --- 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 a6c093c69b9..00000000000 --- 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 \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 \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 f26524645ea..00000000000 --- 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 a7cd3cf2c84..00000000000 --- 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 \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 \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/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php deleted file mode 100644 index b3e297cdbec..00000000000 --- 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 `ListProperties` 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 `ListProperties` 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 `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 `ListFirebaseLinks` 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; - } - -} - 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 09c840c64a8..00000000000 --- 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 \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 \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 cdac9a7c04a..00000000000 --- 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 feea513833c..00000000000 --- 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 \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 \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/ListIosAppDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListIosAppDataStreamsRequest.php deleted file mode 100644 index 34a42f1a40a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListIosAppDataStreamsRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - */ -class ListIosAppDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "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 `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * 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 parent property. - * For example, to list results of app streams under the property with Id - * 123: "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 `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * 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 parent property. - * For example, to list results of app streams under the property with Id - * 123: "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 name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "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 `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * 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 `ListIosAppDataStreams` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListIosAppDataStreams` - * 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/ListIosAppDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListIosAppDataStreamsResponse.php deleted file mode 100644 index ecb1ff7ca1e..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListIosAppDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - */ -class ListIosAppDataStreamsResponse 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.IosAppDataStream ios_app_data_streams = 1; - */ - private $ios_app_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 \Google\Analytics\Admin\V1alpha\IosAppDataStream[]|\Google\Protobuf\Internal\RepeatedField $ios_app_data_streams - * 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.IosAppDataStream ios_app_data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIosAppDataStreams() - { - return $this->ios_app_data_streams; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * @param \Google\Analytics\Admin\V1alpha\IosAppDataStream[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIosAppDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\IosAppDataStream::class); - $this->ios_app_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/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php deleted file mode 100644 index a0f479f3a09..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php +++ /dev/null @@ -1,171 +0,0 @@ -google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest - */ -class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent stream. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/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 d5aa7e0cf56..00000000000 --- 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 \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 \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 4a9c2cc9a0b..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php +++ /dev/null @@ -1,245 +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) 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. | - * | 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) 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. | - * | 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) 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. | - * | 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) 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. | - * | 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 66e9c40a2fb..00000000000 --- 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 \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 \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/ListUserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListUserLinksRequest.php deleted file mode 100644 index 5ef4412886c..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListUserLinksRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ListUserLinksRequest - */ -class ListUserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: accounts/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links 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 `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` 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: accounts/1234 - * @type int $page_size - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links 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 `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` 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: accounts/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: accounts/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 user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links 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 user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links 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 `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` 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 `ListUserLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` 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/ListUserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListUserLinksResponse.php deleted file mode 100644 index d01d46ce8be..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListUserLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListUserLinksResponse - */ -class ListUserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of UserLinks. These will be ordered stably, but in an arbitrary order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - private $user_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 \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $user_links - * List of UserLinks. 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 UserLinks. These will be ordered stably, but in an arbitrary order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserLinks() - { - return $this->user_links; - } - - /** - * List of UserLinks. These will be ordered stably, but in an arbitrary order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - * @param \Google\Analytics\Admin\V1alpha\UserLink[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UserLink::class); - $this->user_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/ListWebDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListWebDataStreamsRequest.php deleted file mode 100644 index 2bbf4daf95c..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListWebDataStreamsRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.analytics.admin.v1alpha.ListWebDataStreamsRequest - */ -class ListWebDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "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 `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` 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 parent property. - * For example, to list results of web streams under the property with Id - * 123: "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 `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` 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 parent property. - * For example, to list results of web streams under the property with Id - * 123: "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 name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "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 `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListWebDataStreams` 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/ListWebDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListWebDataStreamsResponse.php deleted file mode 100644 index a2cb5bd88d2..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListWebDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListWebDataStreamsResponse - */ -class ListWebDataStreamsResponse 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.WebDataStream web_data_streams = 1; - */ - private $web_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 \Google\Analytics\Admin\V1alpha\WebDataStream[]|\Google\Protobuf\Internal\RepeatedField $web_data_streams - * 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.WebDataStream web_data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWebDataStreams() - { - return $this->web_data_streams; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - * @param \Google\Analytics\Admin\V1alpha\WebDataStream[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWebDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\WebDataStream::class); - $this->web_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/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php deleted file mode 100644 index 0bf11e81466..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php +++ /dev/null @@ -1,155 +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}/webDataStreams/{webDataStream}/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}/webDataStreams/{webDataStream}/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}/webDataStreams/{webDataStream}/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}/webDataStreams/{webDataStream}/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/Property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php deleted file mode 100644 index 7374cd1e045..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php +++ /dev/null @@ -1,561 +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 = ''; - /** - * 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} - * Example: "accounts/100" - * - * 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 \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} - * Example: "accounts/100" - * @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; - } - - /** - * 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} - * Example: "accounts/100" - * - * 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} - * Example: "accounts/100" - * - * 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 7b6bec23aa6..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php +++ /dev/null @@ -1,109 +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 = ''; - - /** - * 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. - * } - */ - 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; - } - -} - 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 0d35eeff0c1..00000000000 --- 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 Developers 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 Developers 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 Developers 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 Developers 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 22408ea9bcb..00000000000 --- 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/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php deleted file mode 100644 index 4d9ade7336a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php +++ /dev/null @@ -1,395 +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 int[]|\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 int[]|\Google\Protobuf\Internal\RepeatedField $action - * Optional. If set, only return changes that match one or more of these types of - * actions. - * @type string[]|\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 int[]|\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 int[]|\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 string[]|\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 cb008c2ec41..00000000000 --- 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 \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 \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/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php deleted file mode 100644 index e8eeaa52832..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php +++ /dev/null @@ -1,133 +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 - * (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\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 - * (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 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 - * (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/UpdateAndroidAppDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAndroidAppDataStreamRequest.php deleted file mode 100644 index 8f66077c3da..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAndroidAppDataStreamRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - */ -class UpdateAndroidAppDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The android app stream to update. - * The `name` field is used to identify the android app stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $android_app_data_stream = 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\AndroidAppDataStream $android_app_data_stream - * Required. The android app stream to update. - * The `name` field is used to identify the android app stream 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 android app stream to update. - * The `name` field is used to identify the android app stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AndroidAppDataStream|null - */ - public function getAndroidAppDataStream() - { - return $this->android_app_data_stream; - } - - public function hasAndroidAppDataStream() - { - return isset($this->android_app_data_stream); - } - - public function clearAndroidAppDataStream() - { - unset($this->android_app_data_stream); - } - - /** - * Required. The android app stream to update. - * The `name` field is used to identify the android app stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AndroidAppDataStream $var - * @return $this - */ - public function setAndroidAppDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AndroidAppDataStream::class); - $this->android_app_data_stream = $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 267a3f539e9..00000000000 --- 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 f45efe84832..00000000000 --- 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/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php deleted file mode 100644 index ab10e50e251..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,129 +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 3350a96b92a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php +++ /dev/null @@ -1,133 +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/UpdateIosAppDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateIosAppDataStreamRequest.php deleted file mode 100644 index 1cbb9996d3a..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateIosAppDataStreamRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest - */ -class UpdateIosAppDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The iOS app stream to update. - * The `name` field is used to identify the iOS app stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ios_app_data_stream = 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\IosAppDataStream $ios_app_data_stream - * Required. The iOS app stream to update. - * The `name` field is used to identify the iOS app stream 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 iOS app stream to update. - * The `name` field is used to identify the iOS app stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\IosAppDataStream|null - */ - public function getIosAppDataStream() - { - return $this->ios_app_data_stream; - } - - public function hasIosAppDataStream() - { - return isset($this->ios_app_data_stream); - } - - public function clearIosAppDataStream() - { - unset($this->ios_app_data_stream); - } - - /** - * Required. The iOS app stream to update. - * The `name` field is used to identify the iOS app stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\IosAppDataStream $var - * @return $this - */ - public function setIosAppDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\IosAppDataStream::class); - $this->ios_app_data_stream = $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 63b0e3232ff..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,121 +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; - /** - * The list of fields to be updated. Omitted fields will not be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - 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 - * 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; - } - - /** - * The list of fields to be updated. Omitted fields will not be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @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); - } - - /** - * The list of fields to be updated. Omitted fields will not be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @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 320d392417d..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php +++ /dev/null @@ -1,137 +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/UpdateUserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateUserLinkRequest.php deleted file mode 100644 index 65d96c3aff2..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateUserLinkRequest.php +++ /dev/null @@ -1,77 +0,0 @@ -google.analytics.admin.v1alpha.UpdateUserLinkRequest - */ -class UpdateUserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The user link to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\UserLink $user_link - * Required. The user link to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The user link to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\UserLink|null - */ - public function getUserLink() - { - return $this->user_link; - } - - public function hasUserLink() - { - return isset($this->user_link); - } - - public function clearUserLink() - { - unset($this->user_link); - } - - /** - * Required. The user link to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\UserLink $var - * @return $this - */ - public function setUserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\UserLink::class); - $this->user_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateWebDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateWebDataStreamRequest.php deleted file mode 100644 index 1b73dcbd0a9..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateWebDataStreamRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1alpha.UpdateWebDataStreamRequest - */ -class UpdateWebDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The web stream to update. - * The `name` field is used to identify the web stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $web_data_stream = 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\WebDataStream $web_data_stream - * Required. The web stream to update. - * The `name` field is used to identify the web stream 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 web stream to update. - * The `name` field is used to identify the web stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\WebDataStream|null - */ - public function getWebDataStream() - { - return $this->web_data_stream; - } - - public function hasWebDataStream() - { - return isset($this->web_data_stream); - } - - public function clearWebDataStream() - { - unset($this->web_data_stream); - } - - /** - * Required. The web stream to update. - * The `name` field is used to identify the web stream to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\WebDataStream $var - * @return $this - */ - public function setWebDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\WebDataStream::class); - $this->web_data_stream = $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/UserLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UserLink.php deleted file mode 100644 index ea4e239e7d9..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UserLink.php +++ /dev/null @@ -1,180 +0,0 @@ -google.analytics.admin.v1alpha.UserLink - */ -class UserLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Example format: properties/1234/userLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Email address of the user to link - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $email_address = ''; - /** - * Roles directly assigned to this user for this account or property. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * Excludes roles that are inherited from a higher-level entity, group, - * or organization admin role. - * A UserLink that is updated to have an empty list of direct_roles will be - * deleted. - * - * Generated from protobuf field repeated string direct_roles = 3; - */ - private $direct_roles; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Example format: properties/1234/userLinks/5678 - * @type string $email_address - * Immutable. Email address of the user to link - * @type string[]|\Google\Protobuf\Internal\RepeatedField $direct_roles - * Roles directly assigned to this user for this account or property. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * Excludes roles that are inherited from a higher-level entity, group, - * or organization admin role. - * A UserLink that is updated to have an empty list of direct_roles will be - * deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Example format: properties/1234/userLinks/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/userLinks/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. Email address of the user to link - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Immutable. Email address of the user to link - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->email_address = $var; - - return $this; - } - - /** - * Roles directly assigned to this user for this account or property. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * Excludes roles that are inherited from a higher-level entity, group, - * or organization admin role. - * A UserLink that is updated to have an empty list of direct_roles will be - * deleted. - * - * Generated from protobuf field repeated string direct_roles = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDirectRoles() - { - return $this->direct_roles; - } - - /** - * Roles directly assigned to this user for this account or property. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * Excludes roles that are inherited from a higher-level entity, group, - * or organization admin role. - * A UserLink that is updated to have an empty list of direct_roles will be - * deleted. - * - * Generated from protobuf field repeated string direct_roles = 3; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDirectRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->direct_roles = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/WebDataStream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/WebDataStream.php deleted file mode 100644 index c1002db1385..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/WebDataStream.php +++ /dev/null @@ -1,315 +0,0 @@ -google.analytics.admin.v1alpha.WebDataStream - */ -class WebDataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/1000/webDataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Analytics "Measurement ID", without the "G-" prefix. - * Example: "G-1A2BCD345E" would just be "1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 2 [(.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 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * 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; - /** - * Immutable. 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 = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $default_uri = ''; - /** - * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/1000/webDataStreams/2000" - * @type string $measurement_id - * Output only. Analytics "Measurement ID", without the "G-" prefix. - * Example: "G-1A2BCD345E" would just be "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 \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. - * @type string $default_uri - * Immutable. Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * @type string $display_name - * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id} - * Example: "properties/1000/webDataStreams/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; - } - - /** - * Output only. Analytics "Measurement ID", without the "G-" prefix. - * Example: "G-1A2BCD345E" would just be "1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeasurementId() - { - return $this->measurement_id; - } - - /** - * Output only. Analytics "Measurement ID", without the "G-" prefix. - * Example: "G-1A2BCD345E" would just be "1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 2 [(.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 = 3 [(.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 = 3 [(.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; - } - - /** - * 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; - } - - /** - * Immutable. 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 = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getDefaultUri() - { - return $this->default_uri; - } - - /** - * Immutable. 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 = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setDefaultUri($var) - { - GPBUtil::checkString($var, True); - $this->default_uri = $var; - - return $this; - } - - /** - * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for the Data Stream. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - 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 43efa898638..00000000000 --- 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 $accountNameTemplate; - - private static $accountUserLinkNameTemplate; - - private static $androidAppDataStreamNameTemplate; - - private static $conversionEventNameTemplate; - - private static $customDimensionNameTemplate; - - private static $customMetricNameTemplate; - - private static $dataRetentionSettingsNameTemplate; - - private static $dataSharingSettingsNameTemplate; - - private static $dataStreamNameTemplate; - - private static $displayVideo360AdvertiserLinkNameTemplate; - - private static $displayVideo360AdvertiserLinkProposalNameTemplate; - - private static $firebaseLinkNameTemplate; - - private static $globalSiteTagNameTemplate; - - private static $googleAdsLinkNameTemplate; - - private static $googleSignalsSettingsNameTemplate; - - private static $iosAppDataStreamNameTemplate; - - private static $measurementProtocolSecretNameTemplate; - - private static $propertyNameTemplate; - - private static $propertyUserLinkNameTemplate; - - private static $userLinkNameTemplate; - - private static $webDataStreamNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'serviceAddress' => 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 getAccountUserLinkNameTemplate() - { - if (self::$accountUserLinkNameTemplate == null) { - self::$accountUserLinkNameTemplate = new PathTemplate('accounts/{account}/userLinks/{user_link}'); - } - - return self::$accountUserLinkNameTemplate; - } - - private static function getAndroidAppDataStreamNameTemplate() - { - if (self::$androidAppDataStreamNameTemplate == null) { - self::$androidAppDataStreamNameTemplate = new PathTemplate('properties/{property}/androidAppDataStreams/{android_app_data_stream}'); - } - - return self::$androidAppDataStreamNameTemplate; - } - - 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'); - } - - return self::$customDimensionNameTemplate; - } - - private static function getCustomMetricNameTemplate() - { - if (self::$customMetricNameTemplate == null) { - self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics'); - } - - 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 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 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}/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 getIosAppDataStreamNameTemplate() - { - if (self::$iosAppDataStreamNameTemplate == null) { - self::$iosAppDataStreamNameTemplate = new PathTemplate('properties/{property}/iosAppDataStreams/{ios_app_data_stream}'); - } - - return self::$iosAppDataStreamNameTemplate; - } - - private static function getMeasurementProtocolSecretNameTemplate() - { - if (self::$measurementProtocolSecretNameTemplate == null) { - self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/webDataStreams/{web_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 getPropertyUserLinkNameTemplate() - { - if (self::$propertyUserLinkNameTemplate == null) { - self::$propertyUserLinkNameTemplate = new PathTemplate('properties/{property}/userLinks/{user_link}'); - } - - return self::$propertyUserLinkNameTemplate; - } - - private static function getUserLinkNameTemplate() - { - if (self::$userLinkNameTemplate == null) { - self::$userLinkNameTemplate = new PathTemplate('accounts/{account}/userLinks/{user_link}'); - } - - return self::$userLinkNameTemplate; - } - - private static function getWebDataStreamNameTemplate() - { - if (self::$webDataStreamNameTemplate == null) { - self::$webDataStreamNameTemplate = new PathTemplate('properties/{property}/webDataStreams/{web_data_stream}'); - } - - return self::$webDataStreamNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'account' => self::getAccountNameTemplate(), - 'accountUserLink' => self::getAccountUserLinkNameTemplate(), - 'androidAppDataStream' => self::getAndroidAppDataStreamNameTemplate(), - 'conversionEvent' => self::getConversionEventNameTemplate(), - 'customDimension' => self::getCustomDimensionNameTemplate(), - 'customMetric' => self::getCustomMetricNameTemplate(), - 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), - 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), - 'dataStream' => self::getDataStreamNameTemplate(), - 'displayVideo360AdvertiserLink' => self::getDisplayVideo360AdvertiserLinkNameTemplate(), - 'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(), - 'firebaseLink' => self::getFirebaseLinkNameTemplate(), - 'globalSiteTag' => self::getGlobalSiteTagNameTemplate(), - 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), - 'googleSignalsSettings' => self::getGoogleSignalsSettingsNameTemplate(), - 'iosAppDataStream' => self::getIosAppDataStreamNameTemplate(), - 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - 'propertyUserLink' => self::getPropertyUserLinkNameTemplate(), - 'userLink' => self::getUserLinkNameTemplate(), - 'webDataStream' => self::getWebDataStreamNameTemplate(), - ]; - } - - 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 - * 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 - * android_app_data_stream resource. - * - * @param string $property - * @param string $androidAppDataStream - * - * @return string The formatted android_app_data_stream resource. - * - * @experimental - */ - public static function androidAppDataStreamName($property, $androidAppDataStream) - { - return self::getAndroidAppDataStreamNameTemplate()->render([ - 'property' => $property, - 'android_app_data_stream' => $androidAppDataStream, - ]); - } - - /** - * 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 - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName($property) - { - return self::getCustomDimensionNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName($property) - { - return self::getCustomMetricNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * 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 - * 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 - * - * @return string The formatted global_site_tag resource. - * - * @experimental - */ - public static function globalSiteTagName($property) - { - return self::getGlobalSiteTagNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * 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 - * ios_app_data_stream resource. - * - * @param string $property - * @param string $iosAppDataStream - * - * @return string The formatted ios_app_data_stream resource. - * - * @experimental - */ - public static function iosAppDataStreamName($property, $iosAppDataStream) - { - return self::getIosAppDataStreamNameTemplate()->render([ - 'property' => $property, - 'ios_app_data_stream' => $iosAppDataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $webDataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName($property, $webDataStream, $measurementProtocolSecret) - { - return self::getMeasurementProtocolSecretNameTemplate()->render([ - 'property' => $property, - 'web_data_stream' => $webDataStream, - '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_user_link resource. - * - * @param string $property - * @param string $userLink - * - * @return string The formatted property_user_link resource. - * - * @experimental - */ - public static function propertyUserLinkName($property, $userLink) - { - return self::getPropertyUserLinkNameTemplate()->render([ - 'property' => $property, - 'user_link' => $userLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a user_link - * resource. - * - * @param string $account - * @param string $userLink - * - * @return string The formatted user_link resource. - * - * @experimental - */ - public static function userLinkName($account, $userLink) - { - return self::getUserLinkNameTemplate()->render([ - 'account' => $account, - 'user_link' => $userLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * web_data_stream resource. - * - * @param string $property - * @param string $webDataStream - * - * @return string The formatted web_data_stream resource. - * - * @experimental - */ - public static function webDataStreamName($property, $webDataStream) - { - return self::getWebDataStreamNameTemplate()->render([ - 'property' => $property, - 'web_data_stream' => $webDataStream, - ]); - } - - /** - * 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} - * - accountUserLink: accounts/{account}/userLinks/{user_link} - * - androidAppDataStream: properties/{property}/androidAppDataStreams/{android_app_data_stream} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions - * - customMetric: properties/{property}/customMetrics - * - 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} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - globalSiteTag: properties/{property}/globalSiteTag - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - googleSignalsSettings: properties/{property}/googleSignalsSettings - * - iosAppDataStream: properties/{property}/iosAppDataStreams/{ios_app_data_stream} - * - measurementProtocolSecret: properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - property: properties/{property} - * - propertyUserLink: properties/{property}/userLinks/{user_link} - * - userLink: accounts/{account}/userLinks/{user_link} - * - webDataStream: properties/{property}/webDataStreams/{web_data_stream} - * - * 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 $serviceAddress - * 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 - * $serviceAddress 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 via 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]'); - * $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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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]'); - * $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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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. - * - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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: - * - 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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->webDataStreamName('[PROPERTY]', '[WEB_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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: properties/{property}/webDataStreams/{webDataStream} - * @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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * 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. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $userLink = new UserLink(); - * $response = $analyticsAdminServiceClient->createUserLink($formattedParent, $userLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: accounts/1234 - * @param UserLink $userLink Required. The user link 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 RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\UserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createUserLink($parent, $userLink, array $optionalArgs = []) - { - $request = new CreateUserLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setUserLink($userLink); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['notifyNewUser'])) { - $request->setNotifyNewUser($optionalArgs['notifyNewUser']); - } - - $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(); - } - - /** - * Creates a web stream with the specified location and attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $webDataStream = new WebDataStream(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createWebDataStream($webDataStream, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param WebDataStream $webDataStream Required. The web stream to create. - * @param string $parent Required. The parent resource where this web data stream 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\WebDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createWebDataStream($webDataStream, $parent, array $optionalArgs = []) - { - $request = new CreateWebDataStreamRequest(); - $requestParamHeaders = []; - $request->setWebDataStream($webDataStream); - $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('CreateWebDataStream', WebDataStream::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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 android app stream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteAndroidAppDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the android app data stream to delete. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAndroidAppDataStream($name, array $optionalArgs = []) - { - $request = new DeleteAndroidAppDataStreamRequest(); - $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('DeleteAndroidAppDataStream', 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 an iOS app stream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->iosAppDataStreamName('[PROPERTY]', '[IOS_APP_DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteIosAppDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the iOS app data stream to delete. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteIosAppDataStream($name, array $optionalArgs = []) - { - $request = new DeleteIosAppDataStreamRequest(); - $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('DeleteIosAppDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[WEB_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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 an 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 user link on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - * $analyticsAdminServiceClient->deleteUserLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: accounts/1234/userLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteUserLink($name, array $optionalArgs = []) - { - $request = new DeleteUserLinkRequest(); - $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(); - } - - /** - * Deletes a web stream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteWebDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the web data stream to delete. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteWebDataStream($name, array $optionalArgs = []) - { - $request = new DeleteWebDataStreamRequest(); - $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('DeleteWebDataStream', GPBEmpty::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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * Lookup for a single AndroidAppDataStream - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getAndroidAppDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the android app data stream to lookup. - * Format: properties/{property_id}/androidAppDataStreams/{stream_id} - * Example: "properties/123/androidAppDataStreams/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AndroidAppDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAndroidAppDataStream($name, array $optionalArgs = []) - { - $request = new GetAndroidAppDataStreamRequest(); - $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('GetAndroidAppDataStream', AndroidAppDataStream::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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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]'); - * $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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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]'); - * $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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Site Tag for the specified web stream. - * Site Tags are immutable singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->globalSiteTagName('[PROPERTY]'); - * $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}/webDataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/webDataStreams/456/globalSiteTag" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 IosAppDataStream - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->iosAppDataStreamName('[PROPERTY]', '[IOS_APP_DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getIosAppDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the iOS app data stream to lookup. - * Format: properties/{property_id}/iosAppDataStreams/{stream_id} - * Example: "properties/123/iosAppDataStreams/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\IosAppDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getIosAppDataStream($name, array $optionalArgs = []) - { - $request = new GetIosAppDataStreamRequest(); - $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('GetIosAppDataStream', IosAppDataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[WEB_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}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, - * AndroidAppDataStream) may be a parent. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * Gets information about a user's link to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - * $response = $analyticsAdminServiceClient->getUserLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: accounts/1234/userLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\UserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getUserLink($name, array $optionalArgs = []) - { - $request = new GetUserLinkRequest(); - $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(); - } - - /** - * Lookup for a single WebDataStream - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getWebDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the web data stream to lookup. - * Format: properties/{property_id}/webDataStreams/{stream_id} - * Example: "properties/123/webDataStreams/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\WebDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getWebDataStream($name, array $optionalArgs = []) - { - $request = new GetWebDataStreamRequest(); - $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('GetWebDataStream', WebDataStream::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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 child android app streams under the specified parent property. - * - * Android app streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant android app streams are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAndroidAppDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAndroidAppDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the parent property. - * For example, to limit results to app streams under the property with Id - * 123: "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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAndroidAppDataStreams($parent, array $optionalArgs = []) - { - $request = new ListAndroidAppDataStreamsRequest(); - $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('ListAndroidAppDataStreams', $optionalArgs, ListAndroidAppDataStreamsResponse::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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 iOS app data streams under the specified parent property. - * - * iOS app data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant iOS app data streams are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listIosAppDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listIosAppDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the parent property. - * For example, to list results of app streams under the property with Id - * 123: "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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listIosAppDataStreams($parent, array $optionalArgs = []) - { - $request = new ListIosAppDataStreamsRequest(); - $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('ListIosAppDataStreams', $optionalArgs, ListIosAppDataStreamsResponse::class, $request); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->webDataStreamName('[PROPERTY]', '[WEB_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. - * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - * may be a parent. - * Format: - * properties/{property}/webDataStreams/{webDataStream}/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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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) 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. | - * | 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 all user links on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listUserLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listUserLinks($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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listUserLinks($parent, array $optionalArgs = []) - { - $request = new ListUserLinksRequest(); - $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('ListUserLinks', $optionalArgs, ListUserLinksResponse::class, $request); - } - - /** - * Returns child web data streams under the specified parent property. - * - * Web data streams will be excluded if the caller does not have access. - * Returns an empty list if no relevant web data streams are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listWebDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listWebDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the parent property. - * For example, to list results of web streams under the property with Id - * 123: "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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listWebDataStreams($parent, array $optionalArgs = []) - { - $request = new ListWebDataStreamsRequest(); - $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('ListWebDataStreams', $optionalArgs, ListWebDataStreamsResponse::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 Developers Console as a Redirect URI - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 - * (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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 an android app stream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $androidAppDataStream = new AndroidAppDataStream(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAndroidAppDataStream($androidAppDataStream, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param AndroidAppDataStream $androidAppDataStream Required. The android app stream to update. - * The `name` field is used to identify the android app stream 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AndroidAppDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAndroidAppDataStream($androidAppDataStream, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAndroidAppDataStreamRequest(); - $requestParamHeaders = []; - $request->setAndroidAppDataStream($androidAppDataStream); - $request->setUpdateMask($updateMask); - $requestParamHeaders['android_app_data_stream.name'] = $androidAppDataStream->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAndroidAppDataStream', AndroidAppDataStream::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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 an iOS app stream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $iosAppDataStream = new IosAppDataStream(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateIosAppDataStream($iosAppDataStream, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param IosAppDataStream $iosAppDataStream Required. The iOS app stream to update. - * The `name` field is used to identify the iOS app stream 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\IosAppDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateIosAppDataStream($iosAppDataStream, $updateMask, array $optionalArgs = []) - { - $request = new UpdateIosAppDataStreamRequest(); - $requestParamHeaders = []; - $request->setIosAppDataStream($iosAppDataStream); - $request->setUpdateMask($updateMask); - $requestParamHeaders['ios_app_data_stream.name'] = $iosAppDataStream->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateIosAppDataStream', IosAppDataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param array $optionalArgs { - * Optional. - * - * @type FieldMask $updateMask - * The list of fields to be updated. Omitted fields will not be updated. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateMeasurementProtocolSecret($measurementProtocolSecret, array $optionalArgs = []) - { - $request = new UpdateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); - if (isset($optionalArgs['updateMask'])) { - $request->setUpdateMask($optionalArgs['updateMask']); - } - - $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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * Updates a web stream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $webDataStream = new WebDataStream(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateWebDataStream($webDataStream, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param WebDataStream $webDataStream Required. The web stream to update. - * The `name` field is used to identify the web stream 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\WebDataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateWebDataStream($webDataStream, $updateMask, array $optionalArgs = []) - { - $request = new UpdateWebDataStreamRequest(); - $requestParamHeaders = []; - $request->setWebDataStream($webDataStream); - $request->setUpdateMask($updateMask); - $requestParamHeaders['web_data_stream.name'] = $webDataStream->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateWebDataStream', WebDataStream::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 255a3278d51..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json +++ /dev/null @@ -1,438 +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" - ] - }, - "ArchiveCustomDimension": { - "methods": [ - "archiveCustomDimension" - ] - }, - "ArchiveCustomMetric": { - "methods": [ - "archiveCustomMetric" - ] - }, - "AuditUserLinks": { - "methods": [ - "auditUserLinks" - ] - }, - "BatchCreateUserLinks": { - "methods": [ - "batchCreateUserLinks" - ] - }, - "BatchDeleteUserLinks": { - "methods": [ - "batchDeleteUserLinks" - ] - }, - "BatchGetUserLinks": { - "methods": [ - "batchGetUserLinks" - ] - }, - "BatchUpdateUserLinks": { - "methods": [ - "batchUpdateUserLinks" - ] - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "cancelDisplayVideo360AdvertiserLinkProposal" - ] - }, - "CreateConversionEvent": { - "methods": [ - "createConversionEvent" - ] - }, - "CreateCustomDimension": { - "methods": [ - "createCustomDimension" - ] - }, - "CreateCustomMetric": { - "methods": [ - "createCustomMetric" - ] - }, - "CreateDataStream": { - "methods": [ - "createDataStream" - ] - }, - "CreateDisplayVideo360AdvertiserLink": { - "methods": [ - "createDisplayVideo360AdvertiserLink" - ] - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "createDisplayVideo360AdvertiserLinkProposal" - ] - }, - "CreateFirebaseLink": { - "methods": [ - "createFirebaseLink" - ] - }, - "CreateGoogleAdsLink": { - "methods": [ - "createGoogleAdsLink" - ] - }, - "CreateMeasurementProtocolSecret": { - "methods": [ - "createMeasurementProtocolSecret" - ] - }, - "CreateProperty": { - "methods": [ - "createProperty" - ] - }, - "CreateUserLink": { - "methods": [ - "createUserLink" - ] - }, - "CreateWebDataStream": { - "methods": [ - "createWebDataStream" - ] - }, - "DeleteAccount": { - "methods": [ - "deleteAccount" - ] - }, - "DeleteAndroidAppDataStream": { - "methods": [ - "deleteAndroidAppDataStream" - ] - }, - "DeleteConversionEvent": { - "methods": [ - "deleteConversionEvent" - ] - }, - "DeleteDataStream": { - "methods": [ - "deleteDataStream" - ] - }, - "DeleteDisplayVideo360AdvertiserLink": { - "methods": [ - "deleteDisplayVideo360AdvertiserLink" - ] - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "deleteDisplayVideo360AdvertiserLinkProposal" - ] - }, - "DeleteFirebaseLink": { - "methods": [ - "deleteFirebaseLink" - ] - }, - "DeleteGoogleAdsLink": { - "methods": [ - "deleteGoogleAdsLink" - ] - }, - "DeleteIosAppDataStream": { - "methods": [ - "deleteIosAppDataStream" - ] - }, - "DeleteMeasurementProtocolSecret": { - "methods": [ - "deleteMeasurementProtocolSecret" - ] - }, - "DeleteProperty": { - "methods": [ - "deleteProperty" - ] - }, - "DeleteUserLink": { - "methods": [ - "deleteUserLink" - ] - }, - "DeleteWebDataStream": { - "methods": [ - "deleteWebDataStream" - ] - }, - "GetAccount": { - "methods": [ - "getAccount" - ] - }, - "GetAndroidAppDataStream": { - "methods": [ - "getAndroidAppDataStream" - ] - }, - "GetConversionEvent": { - "methods": [ - "getConversionEvent" - ] - }, - "GetCustomDimension": { - "methods": [ - "getCustomDimension" - ] - }, - "GetCustomMetric": { - "methods": [ - "getCustomMetric" - ] - }, - "GetDataRetentionSettings": { - "methods": [ - "getDataRetentionSettings" - ] - }, - "GetDataSharingSettings": { - "methods": [ - "getDataSharingSettings" - ] - }, - "GetDataStream": { - "methods": [ - "getDataStream" - ] - }, - "GetDisplayVideo360AdvertiserLink": { - "methods": [ - "getDisplayVideo360AdvertiserLink" - ] - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "getDisplayVideo360AdvertiserLinkProposal" - ] - }, - "GetGlobalSiteTag": { - "methods": [ - "getGlobalSiteTag" - ] - }, - "GetGoogleSignalsSettings": { - "methods": [ - "getGoogleSignalsSettings" - ] - }, - "GetIosAppDataStream": { - "methods": [ - "getIosAppDataStream" - ] - }, - "GetMeasurementProtocolSecret": { - "methods": [ - "getMeasurementProtocolSecret" - ] - }, - "GetProperty": { - "methods": [ - "getProperty" - ] - }, - "GetUserLink": { - "methods": [ - "getUserLink" - ] - }, - "GetWebDataStream": { - "methods": [ - "getWebDataStream" - ] - }, - "ListAccountSummaries": { - "methods": [ - "listAccountSummaries" - ] - }, - "ListAccounts": { - "methods": [ - "listAccounts" - ] - }, - "ListAndroidAppDataStreams": { - "methods": [ - "listAndroidAppDataStreams" - ] - }, - "ListConversionEvents": { - "methods": [ - "listConversionEvents" - ] - }, - "ListCustomDimensions": { - "methods": [ - "listCustomDimensions" - ] - }, - "ListCustomMetrics": { - "methods": [ - "listCustomMetrics" - ] - }, - "ListDataStreams": { - "methods": [ - "listDataStreams" - ] - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "methods": [ - "listDisplayVideo360AdvertiserLinkProposals" - ] - }, - "ListDisplayVideo360AdvertiserLinks": { - "methods": [ - "listDisplayVideo360AdvertiserLinks" - ] - }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, - "ListGoogleAdsLinks": { - "methods": [ - "listGoogleAdsLinks" - ] - }, - "ListIosAppDataStreams": { - "methods": [ - "listIosAppDataStreams" - ] - }, - "ListMeasurementProtocolSecrets": { - "methods": [ - "listMeasurementProtocolSecrets" - ] - }, - "ListProperties": { - "methods": [ - "listProperties" - ] - }, - "ListUserLinks": { - "methods": [ - "listUserLinks" - ] - }, - "ListWebDataStreams": { - "methods": [ - "listWebDataStreams" - ] - }, - "ProvisionAccountTicket": { - "methods": [ - "provisionAccountTicket" - ] - }, - "SearchChangeHistoryEvents": { - "methods": [ - "searchChangeHistoryEvents" - ] - }, - "UpdateAccount": { - "methods": [ - "updateAccount" - ] - }, - "UpdateAndroidAppDataStream": { - "methods": [ - "updateAndroidAppDataStream" - ] - }, - "UpdateCustomDimension": { - "methods": [ - "updateCustomDimension" - ] - }, - "UpdateCustomMetric": { - "methods": [ - "updateCustomMetric" - ] - }, - "UpdateDataRetentionSettings": { - "methods": [ - "updateDataRetentionSettings" - ] - }, - "UpdateDataStream": { - "methods": [ - "updateDataStream" - ] - }, - "UpdateDisplayVideo360AdvertiserLink": { - "methods": [ - "updateDisplayVideo360AdvertiserLink" - ] - }, - "UpdateGoogleAdsLink": { - "methods": [ - "updateGoogleAdsLink" - ] - }, - "UpdateGoogleSignalsSettings": { - "methods": [ - "updateGoogleSignalsSettings" - ] - }, - "UpdateIosAppDataStream": { - "methods": [ - "updateIosAppDataStream" - ] - }, - "UpdateMeasurementProtocolSecret": { - "methods": [ - "updateMeasurementProtocolSecret" - ] - }, - "UpdateProperty": { - "methods": [ - "updateProperty" - ] - }, - "UpdateUserLink": { - "methods": [ - "updateUserLink" - ] - }, - "UpdateWebDataStream": { - "methods": [ - "updateWebDataStream" - ] - } - } - } - } - } - } -} \ 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 b76dd4b721f..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json +++ /dev/null @@ -1,465 +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" - }, - "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" - }, - "AuditUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BatchCreateUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BatchDeleteUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BatchGetUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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", - "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" - }, - "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" - }, - "CreateUserLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateWebDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "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" - }, - "DeleteIosAppDataStream": { - "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" - }, - "DeleteUserLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteWebDataStream": { - "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" - }, - "GetAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "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" - }, - "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" - }, - "GetIosAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "GetUserLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetWebDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "ListAndroidAppDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "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" - }, - "ListIosAppDataStreams": { - "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" - }, - "ListUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListWebDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ProvisionAccountTicket": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAndroidAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "UpdateDisplayVideo360AdvertiserLink": { - "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" - }, - "UpdateIosAppDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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" - }, - "UpdateUserLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateWebDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_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 9d17c30f182..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php +++ /dev/null @@ -1,188 +0,0 @@ - [ - 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'AuditUserLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUserLinks', - ], - ], - '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', - ], - ], - 'ListAndroidAppDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAndroidAppDataStreams', - ], - ], - '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', - ], - ], - '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', - ], - ], - 'ListIosAppDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getIosAppDataStreams', - ], - ], - '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', - ], - ], - 'ListUserLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUserLinks', - ], - ], - 'ListWebDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWebDataStreams', - ], - ], - '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 475e5260520..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php +++ /dev/null @@ -1,1107 +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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'AuditUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:audit', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:audit', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreateUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeleteUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchDelete', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchDelete', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetUserLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchGet', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchGet', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - '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', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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/*/webDataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties', - 'body' => 'property', - ], - 'CreateUserLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks', - 'body' => 'user_link', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks', - 'body' => 'user_link', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWebDataStream' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/webDataStreams', - 'body' => 'web_data_stream', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAccount' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAndroidAppDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/androidAppDataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/firebaseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/googleAdsLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteIosAppDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/iosAppDataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteUserLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*/userLinks/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/userLinks/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWebDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/webDataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAndroidAppDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/androidAppDataStreams/*}', - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'GetGlobalSiteTag' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleSignalsSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/googleSignalsSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIosAppDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/iosAppDataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetUserLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/userLinks/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/userLinks/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWebDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/webDataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/accountSummaries', - ], - 'ListAccounts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/accounts', - ], - 'ListAndroidAppDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/androidAppDataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListIosAppDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/iosAppDataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/properties', - 'queryParams' => [ - 'filter', - ], - ], - 'ListUserLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWebDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/webDataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ProvisionAccountTicket' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/accounts:provisionAccountTicket', - 'body' => '*', - ], - 'SearchChangeHistoryEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{account=accounts/*}:searchChangeHistoryEvents', - 'body' => '*', - 'placeholders' => [ - 'account' => [ - 'getters' => [ - 'getAccount', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{account.name=accounts/*}', - 'body' => 'account', - 'placeholders' => [ - 'account.name' => [ - 'getters' => [ - 'getAccount', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAndroidAppDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}', - 'body' => 'android_app_data_stream', - 'placeholders' => [ - 'android_app_data_stream.name' => [ - 'getters' => [ - 'getAndroidAppDataStream', - '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', - ], - ], - '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', - ], - ], - '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', - ], - ], - 'UpdateIosAppDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}', - 'body' => 'ios_app_data_stream', - 'placeholders' => [ - 'ios_app_data_stream.name' => [ - 'getters' => [ - 'getIosAppDataStream', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - ], - ], - 'placeholders' => [ - 'measurement_protocol_secret.name' => [ - 'getters' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - ], - 'UpdateProperty' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{property.name=properties/*}', - 'body' => 'property', - 'placeholders' => [ - 'property.name' => [ - 'getters' => [ - 'getProperty', - 'getName', - ], - ], - ], - 'queryParams' => [ - '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', - ], - ], - ], - ], - 'UpdateWebDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}', - 'body' => 'web_data_stream', - 'placeholders' => [ - 'web_data_stream.name' => [ - 'getters' => [ - 'getWebDataStream', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], -]; 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 06d538859df..00000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,5973 +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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $client->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - try { - $client->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $client->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->customDimensionName('[PROPERTY]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->customDimensionName('[PROPERTY]'); - try { - $client->archiveCustomDimension($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->customMetricName('[PROPERTY]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->customMetricName('[PROPERTY]'); - try { - $client->archiveCustomMetric($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function auditUserLinksTest() - { - $transport = $this->createTransport(); - $client = $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 = $client->accountName('[ACCOUNT]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - try { - $client->auditUserLinks($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function batchCreateUserLinksTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $requests = []; - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - $requests = []; - try { - $client->batchCreateUserLinks($formattedParent, $requests); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function batchDeleteUserLinksTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $requests = []; - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - $requests = []; - try { - $client->batchDeleteUserLinks($formattedParent, $requests); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function batchGetUserLinksTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $formattedNames = [ - $client->userLinkName('[ACCOUNT]', '[USER_LINK]'), - ]; - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - $formattedNames = [ - $client->userLinkName('[ACCOUNT]', '[USER_LINK]'), - ]; - try { - $client->batchGetUserLinks($formattedParent, $formattedNames); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function batchUpdateUserLinksTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $requests = []; - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - $requests = []; - try { - $client->batchUpdateUserLinks($formattedParent, $requests); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $client->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->createConversionEvent($conversionEvent, $formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->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 { - $client->createCustomDimension($formattedParent, $customDimension); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->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 { - $client->createCustomMetric($formattedParent, $customMetric); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - try { - $client->createDataStream($formattedParent, $dataStream); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - try { - $client->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - try { - $client->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - try { - $client->createFirebaseLink($formattedParent, $firebaseLink); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - try { - $client->createGoogleAdsLink($formattedParent, $googleAdsLink); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - try { - $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->createProperty($property); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function createUserLinkTest() - { - $transport = $this->createTransport(); - $client = $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 - $formattedParent = $client->accountName('[ACCOUNT]'); - $userLink = new UserLink(); - $response = $client->createUserLink($formattedParent, $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/CreateUserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserLink(); - $this->assertProtobufEquals($userLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function createUserLinkExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - $userLink = new UserLink(); - try { - $client->createUserLink($formattedParent, $userLink); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function createWebDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $measurementId = 'measurementId-223204226'; - $firebaseAppId = 'firebaseAppId605863217'; - $defaultUri = 'defaultUri-436616594'; - $displayName = 'displayName1615086568'; - $expectedResponse = new WebDataStream(); - $expectedResponse->setName($name); - $expectedResponse->setMeasurementId($measurementId); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setDefaultUri($defaultUri); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $webDataStream = new WebDataStream(); - $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; - $webDataStream->setDisplayName($webDataStreamDisplayName); - $formattedParent = $client->propertyName('[PROPERTY]'); - $response = $client->createWebDataStream($webDataStream, $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/CreateWebDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getWebDataStream(); - $this->assertProtobufEquals($webDataStream, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function createWebDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $webDataStream = new WebDataStream(); - $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; - $webDataStream->setDisplayName($webDataStreamDisplayName); - $formattedParent = $client->propertyName('[PROPERTY]'); - try { - $client->createWebDataStream($webDataStream, $formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->accountName('[ACCOUNT]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - try { - $client->deleteAccount($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteAndroidAppDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - $client->deleteAndroidAppDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteAndroidAppDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - try { - $client->deleteAndroidAppDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $client->deleteConversionEvent($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $client->deleteDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - try { - $client->deleteDisplayVideo360AdvertiserLink($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $client->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - try { - $client->deleteFirebaseLink($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - try { - $client->deleteGoogleAdsLink($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteIosAppDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->iosAppDataStreamName('[PROPERTY]', '[IOS_APP_DATA_STREAM]'); - $client->deleteIosAppDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteIosAppDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteIosAppDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->iosAppDataStreamName('[PROPERTY]', '[IOS_APP_DATA_STREAM]'); - try { - $client->deleteIosAppDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->measurementProtocolSecretName('[PROPERTY]', '[WEB_DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->measurementProtocolSecretName('[PROPERTY]', '[WEB_DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $client->deleteMeasurementProtocolSecret($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->deleteProperty($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteUserLinkTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->userLinkName('[ACCOUNT]', '[USER_LINK]'); - $client->deleteUserLink($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); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteUserLinkExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->userLinkName('[ACCOUNT]', '[USER_LINK]'); - try { - $client->deleteUserLink($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteWebDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $client->deleteWebDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteWebDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function deleteWebDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - try { - $client->deleteWebDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->accountName('[ACCOUNT]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - try { - $client->getAccount($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getAndroidAppDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $firebaseAppId = 'firebaseAppId605863217'; - $packageName = 'packageName-1877165340'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AndroidAppDataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setPackageName($packageName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - $response = $client->getAndroidAppDataStream($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/GetAndroidAppDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getAndroidAppDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]'); - try { - $client->getAndroidAppDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $client->getConversionEvent($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->customDimensionName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->customDimensionName('[PROPERTY]'); - try { - $client->getCustomDimension($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->customMetricName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->customMetricName('[PROPERTY]'); - try { - $client->getCustomMetric($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->dataRetentionSettingsName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->dataRetentionSettingsName('[PROPERTY]'); - try { - $client->getDataRetentionSettings($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->dataSharingSettingsName('[ACCOUNT]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->dataSharingSettingsName('[ACCOUNT]'); - try { - $client->getDataSharingSettings($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $client->getDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - try { - $client->getDisplayVideo360AdvertiserLink($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $client->getDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->globalSiteTagName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->globalSiteTagName('[PROPERTY]'); - try { - $client->getGlobalSiteTag($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->googleSignalsSettingsName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->googleSignalsSettingsName('[PROPERTY]'); - try { - $client->getGoogleSignalsSettings($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getIosAppDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $firebaseAppId = 'firebaseAppId605863217'; - $bundleId = 'bundleId-1479583240'; - $displayName = 'displayName1615086568'; - $expectedResponse = new IosAppDataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setBundleId($bundleId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->iosAppDataStreamName('[PROPERTY]', '[IOS_APP_DATA_STREAM]'); - $response = $client->getIosAppDataStream($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/GetIosAppDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getIosAppDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->iosAppDataStreamName('[PROPERTY]', '[IOS_APP_DATA_STREAM]'); - try { - $client->getIosAppDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->measurementProtocolSecretName('[PROPERTY]', '[WEB_DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->measurementProtocolSecretName('[PROPERTY]', '[WEB_DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $client->getMeasurementProtocolSecret($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->getProperty($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getUserLinkTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); - $expectedResponse->setName($name2); - $expectedResponse->setEmailAddress($emailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->userLinkName('[ACCOUNT]', '[USER_LINK]'); - $response = $client->getUserLink($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); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getUserLinkExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->userLinkName('[ACCOUNT]', '[USER_LINK]'); - try { - $client->getUserLink($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getWebDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $measurementId = 'measurementId-223204226'; - $firebaseAppId = 'firebaseAppId605863217'; - $defaultUri = 'defaultUri-436616594'; - $displayName = 'displayName1615086568'; - $expectedResponse = new WebDataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setMeasurementId($measurementId); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setDefaultUri($defaultUri); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $response = $client->getWebDataStream($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/GetWebDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function getWebDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - try { - $client->getWebDataStream($formattedName); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 { - $client->listAccountSummaries(); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 { - $client->listAccounts(); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listAndroidAppDataStreamsTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $androidAppDataStreamsElement = new AndroidAppDataStream(); - $androidAppDataStreams = [ - $androidAppDataStreamsElement, - ]; - $expectedResponse = new ListAndroidAppDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAndroidAppDataStreams($androidAppDataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->propertyName('[PROPERTY]'); - $response = $client->listAndroidAppDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAndroidAppDataStreams()[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/ListAndroidAppDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listAndroidAppDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listAndroidAppDataStreams($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listConversionEvents($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listCustomDimensions($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listCustomMetrics($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listDataStreams($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listDisplayVideo360AdvertiserLinks($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listFirebaseLinks($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->propertyName('[PROPERTY]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listGoogleAdsLinks($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listIosAppDataStreamsTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $iosAppDataStreamsElement = new IosAppDataStream(); - $iosAppDataStreams = [ - $iosAppDataStreamsElement, - ]; - $expectedResponse = new ListIosAppDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setIosAppDataStreams($iosAppDataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->propertyName('[PROPERTY]'); - $response = $client->listIosAppDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getIosAppDataStreams()[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/ListIosAppDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listIosAppDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listIosAppDataStreams($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]'); - try { - $client->listMeasurementProtocolSecrets($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->listProperties($filter); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listUserLinksTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $userLinksElement = new UserLink(); - $userLinks = [ - $userLinksElement, - ]; - $expectedResponse = new ListUserLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setUserLinks($userLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->accountName('[ACCOUNT]'); - $response = $client->listUserLinks($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/ListUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listUserLinksExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - try { - $client->listUserLinks($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listWebDataStreamsTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $webDataStreamsElement = new WebDataStream(); - $webDataStreams = [ - $webDataStreamsElement, - ]; - $expectedResponse = new ListWebDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWebDataStreams($webDataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $client->propertyName('[PROPERTY]'); - $response = $client->listWebDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWebDataStreams()[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/ListWebDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function listWebDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->propertyName('[PROPERTY]'); - try { - $client->listWebDataStreams($formattedParent); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 { - $client->provisionAccountTicket(); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->accountName('[ACCOUNT]'); - $response = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 = $client->accountName('[ACCOUNT]'); - try { - $client->searchChangeHistoryEvents($formattedAccount); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateAccount($account, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateAndroidAppDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $firebaseAppId = 'firebaseAppId605863217'; - $packageName = 'packageName-1877165340'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AndroidAppDataStream(); - $expectedResponse->setName($name); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setPackageName($packageName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $androidAppDataStream = new AndroidAppDataStream(); - $updateMask = new FieldMask(); - $response = $client->updateAndroidAppDataStream($androidAppDataStream, $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/UpdateAndroidAppDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getAndroidAppDataStream(); - $this->assertProtobufEquals($androidAppDataStream, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateAndroidAppDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $androidAppDataStream = new AndroidAppDataStream(); - $updateMask = new FieldMask(); - try { - $client->updateAndroidAppDataStream($androidAppDataStream, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateCustomDimension($updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateCustomMetric($updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateDataStream($updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateDisplayVideo360AdvertiserLink($updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateGoogleAdsLink($updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateIosAppDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $firebaseAppId = 'firebaseAppId605863217'; - $bundleId = 'bundleId-1479583240'; - $displayName = 'displayName1615086568'; - $expectedResponse = new IosAppDataStream(); - $expectedResponse->setName($name); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setBundleId($bundleId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $iosAppDataStream = new IosAppDataStream(); - $iosAppDataStreamBundleId = 'iosAppDataStreamBundleId1694753051'; - $iosAppDataStream->setBundleId($iosAppDataStreamBundleId); - $updateMask = new FieldMask(); - $response = $client->updateIosAppDataStream($iosAppDataStream, $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/UpdateIosAppDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getIosAppDataStream(); - $this->assertProtobufEquals($iosAppDataStream, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateIosAppDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $iosAppDataStream = new IosAppDataStream(); - $iosAppDataStreamBundleId = 'iosAppDataStreamBundleId1694753051'; - $iosAppDataStream->setBundleId($iosAppDataStreamBundleId); - $updateMask = new FieldMask(); - try { - $client->updateIosAppDataStream($iosAppDataStream, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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); - $response = $client->updateMeasurementProtocolSecret($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/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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); - try { - $client->updateMeasurementProtocolSecret($measurementProtocolSecret); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateProperty($property, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateUserLinkTest() - { - $transport = $this->createTransport(); - $client = $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 = $client->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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 { - $client->updateUserLink($userLink); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateWebDataStreamTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $measurementId = 'measurementId-223204226'; - $firebaseAppId = 'firebaseAppId605863217'; - $defaultUri = 'defaultUri-436616594'; - $displayName = 'displayName1615086568'; - $expectedResponse = new WebDataStream(); - $expectedResponse->setName($name); - $expectedResponse->setMeasurementId($measurementId); - $expectedResponse->setFirebaseAppId($firebaseAppId); - $expectedResponse->setDefaultUri($defaultUri); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $webDataStream = new WebDataStream(); - $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; - $webDataStream->setDisplayName($webDataStreamDisplayName); - $updateMask = new FieldMask(); - $response = $client->updateWebDataStream($webDataStream, $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/UpdateWebDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getWebDataStream(); - $this->assertProtobufEquals($webDataStream, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** - * @test - */ - public function updateWebDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $webDataStream = new WebDataStream(); - $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169'; - $webDataStream->setDisplayName($webDataStreamDisplayName); - $updateMask = new FieldMask(); - try { - $client->updateWebDataStream($webDataStream, $updateMask); - // If the $client method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -}